Class Value
java.lang.Object
java.lang.Number
org.graphstream.ui.graphicGraph.stylesheet.Value
- All Implemented Interfaces:
Serializable
public class Value extends Number
A value and the units of the value.
As a style sheet may express values in several different units. This class purpose is to pack the value and the units it is expressed in into a single object.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description StyleConstants.UnitsunitsThe value units.doublevalueThe value. -
Constructor Summary
Constructors Constructor Description Value(StyleConstants.Units units, double value)New value.Value(Value other)New copy of another value. -
Method Summary
Modifier and Type Method Description doubledoubleValue()booleanequals(Value o)floatfloatValue()intintValue()longlongValue()StringtoString()
-
Field Details
-
Constructor Details
-
Method Details
-
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
intValue
public int intValue() -
longValue
public long longValue() -
toString
-
equals
-