|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.Direction
public final class Direction
Class that represents directions. Note: for each direction there exists exactly one object.
Field Summary | |
---|---|
static Direction |
DOWN
Decodes the down direction |
static Direction |
LEFT
Decodes the left direction |
static Direction |
RIGHT
Decodes the right direction |
static Direction |
UP
Decodes the up direction |
Method Summary | |
---|---|
int |
getDirection()
Returns the direction as int value. |
Direction |
getMirror()
Returns the mirror direction (turns the direction two times). |
Direction |
getTurnCCW()
Returns the direction that follows this direction in counterclockwise order. |
Direction |
getTurnCW()
Returns the direction that follows this direction in clockwise order. |
boolean |
isHorizontal()
Returns true if this direction is horizontal (right or left). |
boolean |
isVertical()
Returns true if this direction is vertical (up or down). |
String |
toString()
Returns the current direction as string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Direction UP
public static final Direction RIGHT
public static final Direction DOWN
public static final Direction LEFT
Method Detail |
---|
public Direction getTurnCW()
public Direction getTurnCCW()
public Direction getMirror()
public boolean isHorizontal()
public boolean isVertical()
public int getDirection()
public String toString()
toString
in class Object
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |