ilog.views.maps.measures
Class IlvAngleAttribute

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

public class IlvAngleAttribute
extends IlvDoubleAttribute

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

Since:
JViews 7.5

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

IlvAngleAttribute

public IlvAngleAttribute(IlvManager manager,
                         double value)
Creates an angle attribute using the specified manager to format the angle value.

Parameters:
manager -
value -

IlvAngleAttribute

public IlvAngleAttribute(IlvAngleAttribute source)
Creates a copy of the source attribute.

Parameters:
source - source to copy.

IlvAngleAttribute

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

Parameters:
stream - the input stream.
Throws:
IlvReadFileException - if the format is not correct.
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.