|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
X - public interface BiDirectional<X>
This generic interface allows you to specify a bi-directional, optionally directed from-to relationships, where from and to are both objects of generic class X.
| Method Summary | |
|---|---|
Direction |
getDrawDirection()
Indicates the layout of from/to for the bi-directional item. |
Direction |
getDrawDirectionFrom(X from)
|
X |
getFrom()
|
X |
getTo()
|
boolean |
meets(BiDirectional<X> e)
|
boolean |
meets(X v)
|
X |
otherEnd(X end)
Returns from, if to is the argument, or to if from is the argument. |
void |
setDrawDirection(Direction d)
|
void |
setDrawDirectionFrom(Direction d,
X from)
|
void |
setFrom(X v)
|
void |
setTo(X v)
|
| Method Detail |
|---|
X getFrom()
X getTo()
void setFrom(X v)
void setTo(X v)
X otherEnd(X end)
end -
boolean meets(BiDirectional<X> e)
boolean meets(X v)
Direction getDrawDirection()
Direction getDrawDirectionFrom(X from)
void setDrawDirection(Direction d)
void setDrawDirectionFrom(Direction d,
X from)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||