|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.range.Category<T>
public class Category<T>
This class is really an adapter because it takes any object and allows it to be used as a Category.
Constructor Summary | |
---|---|
Category(String name,
T value)
|
|
Category(String name,
T value,
CategoryRange<T> range)
|
|
Category(T value)
|
|
Category(T value,
CategoryRange<T> range)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Category(String name, T value)
public Category(String name, T value, CategoryRange<T> range)
public Category(T value)
public Category(T value, CategoryRange<T> range)
Method Detail |
---|
public CategoryRange<T> getRange()
public void setRange(CategoryRange<T> range)
public double position()
position
in interface Positionable
public T getValue()
public String getName()
public int compareTo(Positionable o)
compareTo
in interface Comparable<Positionable>
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |