public class IlvDoubleAttribute extends IlvFeatureAttribute
double.| Constructor and Description |
|---|
IlvDoubleAttribute(double value)
Creates a floating point double attribute.
|
IlvDoubleAttribute(IlvDoubleAttribute source)
Copies this map attribute.
|
IlvDoubleAttribute(IlvInputStream stream)
Reads an
IlvDoubleAttribute from an
IlvInputStream. |
| Modifier and Type | Method and Description |
|---|---|
IlvFeatureAttribute |
copy()
Returns a copy of the object.
|
static double |
DoubleValue(IlvAttributeProperty attributes,
String name)
Returns the
double value of the
IlvDoubleAttribute whose name is specified. |
double |
getValue()
Returns the double value of the attribute.
|
void |
setValue(double value)
Sets the value of the attribute.
|
String |
toString()
Converts the attribute into a string.
|
void |
write(IlvOutputStream stream)
Writes this to an
IlvOutputStream. |
public IlvDoubleAttribute(double value)
value - the value of this attribute.public IlvDoubleAttribute(IlvInputStream stream) throws IlvReadFileException
IlvDoubleAttribute from an
IlvInputStream.stream - the input stream.IlvReadFileException - if the format is not correct.public IlvDoubleAttribute(IlvDoubleAttribute source)
source - the object to be copied.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream.write in interface IlvPersistentObjectwrite in class IlvFeatureAttributestream - the output stream.IOException - if an error occurs.public double getValue()
public void setValue(double value)
value - the new value to be set.public String toString()
public IlvFeatureAttribute copy()
copy in class IlvFeatureAttributeIlvFeatureAttribute.public static double DoubleValue(IlvAttributeProperty attributes, String name)
double value of the
IlvDoubleAttribute whose name is specified.attributes - The IlvAttributeProperty that stores the
attributes.name - The name of the attribute.IlvDoubleAttribute as a
double or Double.NaN, if the attribute is
null.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.