ilog.views.maps.measures
Class IlvAltitudeAttribute

java.lang.Object
  extended by ilog.views.maps.IlvFeatureAttribute
      extended by ilog.views.maps.attribute.IlvDoubleAttribute
          extended by ilog.views.maps.measures.IlvAltitudeAttribute
All Implemented Interfaces:
IlvPersistentObject

public class IlvAltitudeAttribute
extends IlvDoubleAttribute

Feature attribute containing an altitude value. It uses the current manager's formatter to display the value.

Since:
JViews 8.1

Constructor Summary
IlvAltitudeAttribute(IlvAltitudeAttribute source)
          Creates a copy of the source object.
IlvAltitudeAttribute(IlvInputStream stream)
          Reads an IlvAltitudeAttribute from an IlvInputStream.
IlvAltitudeAttribute(IlvManager manager, double value)
          Creates a altitude attribute using the specified manager to format the altitude value.
 
Method Summary
 IlvFeatureAttribute copy()
          Returns a copy of the object.
 IlvManager getManager()
          Returns the manager associated with this attribute formatting.
 String toString()
          Formats the value using the manager's display preferences.
 void write(IlvOutputStream stream)
          Writes this to an IlvOutputStream.
 
Methods inherited from class ilog.views.maps.attribute.IlvDoubleAttribute
DoubleValue, getValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvAltitudeAttribute

public IlvAltitudeAttribute(IlvManager manager,
                            double value)
Creates a altitude attribute using the specified manager to format the altitude value.

Parameters:
manager -
value -

IlvAltitudeAttribute

public IlvAltitudeAttribute(IlvInputStream stream)
                     throws IlvReadFileException
Reads an IlvAltitudeAttribute from an IlvInputStream.

Parameters:
stream - the input stream.
Throws:
IlvReadFileException - if the format is not correct.

IlvAltitudeAttribute

public IlvAltitudeAttribute(IlvAltitudeAttribute source)
Creates a copy of the source object.

Parameters:
source - source to copy.
Method Detail

copy

public IlvFeatureAttribute copy()
Returns a copy of the object.

Overrides:
copy in class IlvDoubleAttribute
Returns:
Returns a copy of the object.

toString

public String toString()
Formats the value using the manager's display preferences.

Overrides:
toString in class IlvDoubleAttribute
See Also:
IlvDoubleAttribute.toString()

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this to an IlvOutputStream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvDoubleAttribute
Parameters:
stream - the output stream.
Throws:
IOException - if an error occurs.

getManager

public IlvManager getManager()
Returns the manager associated with this attribute formatting.

Returns:
the manager associated with this attribute formatting.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.