public final class IntervalRange extends Range
| Constructor and Description |
|---|
IntervalRange(Project prj,
IntervalDesc d)
Initializes internal data structures.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute(java.lang.Object obj)
Gets the attribute associated with the specified
Object obj. |
IntervalAttribute |
getIntervalValue(Pair<java.lang.Number,java.lang.Number> interval)
Returns the IntervalAttribute associated with the given interval.
|
Attribute |
parseValue(java.lang.String string) |
void |
update(java.util.Observable ob,
java.lang.Object o) |
getProject, setProjectpublic IntervalRange(Project prj, IntervalDesc d)
prj - the project this range belongs tod - the interval description for attributes maintained by this
rangepublic IntervalAttribute getIntervalValue(Pair<java.lang.Number,java.lang.Number> interval)
interval - the value for which the corresponding IntervalAttribute should
be returnedpublic Attribute getAttribute(java.lang.Object obj)
Object obj.
obj is expected to be of type Interval or
String. Returns result of getIntervalValue(Pair) if
obj is of type Interval, result of
Project.getSpecialAttribute(String) if obj is of type
SpecialAttribute, else returns null.getAttribute in class Rangeobj - representing Interval or SpecialAttributepublic void update(java.util.Observable ob,
java.lang.Object o)
public Attribute parseValue(java.lang.String string)
string - the string which should be used for parsing