public class Point<S extends Number,T extends Number> extends Object implements Serializable
ValueEntry couples (String, Value).
The type T declares the number format of entries (e.g. int, double...).
Usage:
// Here a point is represented by integer values on the
// X axis and floats on the relative Y axis values.
new Point<Integer, Float>("Avg 2010",
2010, // The value of column entry
// The rows associated to this column
new ValueEntry<Float>("Entry1", 500.34f),
new ValueEntry<Float>("Entry2", 230.56f));
| Constructor and Description |
|---|
Point() |
Point(S value) |
Point(String label,
S value) |
Point(String label,
S value,
ValueEntry<T>... entries) |
Point(S value,
ValueEntry<T>... entries) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(ValueEntry<T> entry) |
List<ValueEntry<T>> |
getEntries() |
String |
getLabel() |
S |
getValue() |
void |
setEntries(ValueEntry<T>... entries) |
void |
setLabel(String label) |
void |
setValue(S value) |
void |
sortEntries() |
String |
toString() |
public Point()
public Point(S value) throws InvalidParameterException
InvalidParameterExceptionpublic Point(String label, S value) throws InvalidParameterException
InvalidParameterExceptionpublic Point(S value, ValueEntry<T>... entries) throws InvalidParameterException
InvalidParameterExceptionpublic Point(String label, S value, ValueEntry<T>... entries) throws InvalidParameterException
InvalidParameterExceptionpublic final void setLabel(String label)
public final void setValue(S value) throws InvalidParameterException
InvalidParameterExceptionpublic final S getValue()
public final void addEntry(ValueEntry<T> entry)
public final void setEntries(ValueEntry<T>... entries)
public final void sortEntries()
public final List<ValueEntry<T>> getEntries()
public final String getLabel()
Copyright © 2016. All Rights Reserved.