|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.misc.PropertyObservableBase
de.jaret.util.ui.timebars.model.IntervalRelation
public class IntervalRelation
Implementation of the IIntervalRelation. Handles the references itself, i.e. setting ine end to null
will remove the relation from the interval.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface de.jaret.util.ui.timebars.model.IIntervalRelation |
|---|
IIntervalRelation.Direction, IIntervalRelation.Type |
| Field Summary | |
|---|---|
protected IIntervalRelation.Direction |
_direction
the direction of the relation. |
protected IRelationalInterval |
_endInterval
end interval. |
protected IRelationalInterval |
_startInterval
start interval. |
protected IIntervalRelation.Type |
_type
type of the relation. |
| Fields inherited from class de.jaret.util.misc.PropertyObservableBase |
|---|
_propertyChangeSupport |
| Fields inherited from interface de.jaret.util.ui.timebars.model.IIntervalRelation |
|---|
DIRECTION, ENDINTERVAL, STARTINTERVAL, TYPE |
| Constructor Summary | |
|---|---|
IntervalRelation(IRelationalInterval startInterval,
IRelationalInterval endInterval)
Construct a releation between two intervals (forward, end-begin). |
|
| Method Summary | |
|---|---|
IIntervalRelation.Direction |
getDirection()
Retrieve the direction of the relation. |
IRelationalInterval |
getEndInterval()
Retrieve the end interval. |
IRelationalInterval |
getStartInterval()
Retrieve the start interval. |
IIntervalRelation.Type |
getType()
Retrieve the type of the relation. |
void |
setDirection(IIntervalRelation.Direction direction)
Set the direction of the realtion. |
void |
setEndInterval(IRelationalInterval interval)
Set the end interval. |
void |
setStartInterval(IRelationalInterval interval)
Set the start interval. |
void |
setType(IIntervalRelation.Type type)
Set the type of the relation. |
| Methods inherited from class de.jaret.util.misc.PropertyObservableBase |
|---|
addPropertyChangeListener, firePropertyChange, isRealModification, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IIntervalRelation.Direction _direction
protected IRelationalInterval _startInterval
protected IRelationalInterval _endInterval
protected IIntervalRelation.Type _type
| Constructor Detail |
|---|
public IntervalRelation(IRelationalInterval startInterval,
IRelationalInterval endInterval)
startInterval - first intervalendInterval - second interval| Method Detail |
|---|
public IIntervalRelation.Direction getDirection()
getDirection in interface IIntervalRelationpublic void setDirection(IIntervalRelation.Direction direction)
setDirection in interface IIntervalRelationdirection - directionpublic IRelationalInterval getEndInterval()
getEndInterval in interface IIntervalRelationpublic void setEndInterval(IRelationalInterval interval)
setEndInterval in interface IIntervalRelationinterval - the end intervalpublic IRelationalInterval getStartInterval()
getStartInterval in interface IIntervalRelationpublic void setStartInterval(IRelationalInterval interval)
setStartInterval in interface IIntervalRelationinterval - the start intervalpublic IIntervalRelation.Type getType()
getType in interface IIntervalRelationpublic void setType(IIntervalRelation.Type type)
setType in interface IIntervalRelationtype - the type to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||