ilog.views.maps.measures
Class IlvDistanceAttribute

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

public class IlvDistanceAttribute
extends IlvDoubleAttribute

Feature attribute containing a distance value. It uses the current manager's formatter to display the value.

Since:
JViews 7.5

Constructor Summary
IlvDistanceAttribute(IlvDistanceAttribute source)
          Creates a copy of the source object.
IlvDistanceAttribute(IlvInputStream stream)
          Reads an IlvDistanceAttribute from an IlvInputStream.
IlvDistanceAttribute(IlvManager manager, double value)
          Creates a distance attribute using the specified manager to format the distance 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

IlvDistanceAttribute

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

Parameters:
manager -
value -

IlvDistanceAttribute

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

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

IlvDistanceAttribute

public IlvDistanceAttribute(IlvDistanceAttribute 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.