|
Cytoscape 3.0.0-beta1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cytoscape.view.model.DiscreteRange<T>
T - The generic type of this DiscreteRange.public class DiscreteRange<T>
Defines a discrete range of values for VisualPropertys.
| Constructor Summary | |
|---|---|
DiscreteRange(Class<T> type,
Set<T> values)
Constructor for this DiscreteRange. |
|
| Method Summary | |
|---|---|
void |
addRangeValue(T newValue)
Add a value to this DiscreteRange. |
Class<T> |
getType()
Type of object used in this range. |
boolean |
inRange(T value)
Return true if the given value is in the range defined in this class. |
boolean |
isDiscrete()
If this range is a set of discrete values, return true. |
Set<T> |
values()
Returns a Set of all the values for this DiscreteRange. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiscreteRange(Class<T> type,
Set<T> values)
type - the type of this DiscreteRange.values - the initial values of this DiscreteRange.| Method Detail |
|---|
public Class<T> getType()
Range
getType in interface Range<T>public boolean isDiscrete()
Range
isDiscrete in interface Range<T>public Set<T> values()
public void addRangeValue(T newValue)
newValue - the value to add to the range.public boolean inRange(T value)
Range
inRange in interface Range<T>value - any value to be tested.
|
Cytoscape 3.0.0-beta1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||