Positionable, Serializable, Comparable<T>public class Category<T> extends Object implements Positionable, Serializable
| Constructor | Description |
|---|---|
Category(String name,
T value) |
|
Category(String name,
T value,
CategoryRange<T> range) |
|
Category(T value) |
|
Category(T value,
CategoryRange<T> range) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(Positionable o) |
|
boolean |
equals(Object obj) |
|
String |
getName() |
Returns the name of the category which, when set, will be used as a label for the category.
|
CategoryRange<T> |
getRange() |
|
T |
getValue() |
Returns the original value of the category
|
int |
hashCode() |
|
double |
position() |
Returns the position of the category, which will be used to decide where to place a category along an axis.
|
void |
setRange(CategoryRange<T> range) |
|
String |
toString() |
public Category(String name, T value, CategoryRange<T> range)
public Category(T value)
public Category(T value, CategoryRange<T> range)
public CategoryRange<T> getRange()
public void setRange(CategoryRange<T> range)
public double position()
position in interface Positionablepublic T getValue()
public String getName()
public int compareTo(Positionable o)
compareTo in interface Comparable<T>