|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
org.graphstream.ui.graphicGraph.stylesheet.Value
public class Value
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.
Field Summary | |
---|---|
StyleConstants.Units |
units
The value units. |
double |
value
The value. |
Constructor Summary | |
---|---|
Value(StyleConstants.Units units,
double value)
New value. |
|
Value(Value other)
New copy of another value. |
Method Summary | |
---|---|
double |
doubleValue()
|
boolean |
equals(Value o)
|
float |
floatValue()
|
int |
intValue()
|
long |
longValue()
|
String |
toString()
|
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double value
public StyleConstants.Units units
Constructor Detail |
---|
public Value(StyleConstants.Units units, double value)
units
- The value units.value
- The value.public Value(Value other)
other
- The other value to copy.Method Detail |
---|
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public int intValue()
intValue
in class Number
public long longValue()
longValue
in class Number
public String toString()
toString
in class Object
public boolean equals(Value o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |