| Package | com.yworks.yfiles.layout |
| Class | public class Direction |
| Inheritance | Direction YObject Object |
| Property | Defined By | ||
|---|---|---|---|
| horizontal : Boolean [read-only]
Returns true if this direction is horizontal (right or left). | Direction | ||
| mirror : Direction [read-only]
Returns the mirror direction (turns the direction two times). | Direction | ||
| turnCCW : Direction [read-only]
Returns the direction that follows this direction in counterclockwise order. | Direction | ||
| turnCW : Direction [read-only]
Returns the direction that follows this direction in clockwise order. | Direction | ||
| vertical : Boolean [read-only]
Returns true if this direction is vertical (up or down). | Direction | ||
| Method | Defined By | ||
|---|---|---|---|
Direction(init:Boolean = true) | Direction | ||
![]() | equals(o:Object):Boolean | YObject | |
getClass():Class [override] | Direction | ||
getDirection():int
Returns the direction as int value. | Direction | ||
![]() | hashCode():int | YObject | |
toString():String
Returns the current direction as string. | Direction | ||
| Constant | Defined By | ||
|---|---|---|---|
| DOWN : Direction [static]
Decodes the down direction
| Direction | ||
| LEFT : Direction [static]
Decodes the left direction
| Direction | ||
| RIGHT : Direction [static]
Decodes the right direction
| Direction | ||
| UP : Direction [static]
Decodes the up direction
| Direction | ||
| horizontal | property |
horizontal:Boolean [read-only] Returns true if this direction is horizontal (right or left).
public function get horizontal():Boolean| mirror | property |
mirror:Direction [read-only] Returns the mirror direction (turns the direction two times).
public function get mirror():Direction| turnCCW | property |
turnCCW:Direction [read-only] Returns the direction that follows this direction in counterclockwise order.
public function get turnCCW():Direction| turnCW | property |
turnCW:Direction [read-only] Returns the direction that follows this direction in clockwise order.
public function get turnCW():Direction| vertical | property |
vertical:Boolean [read-only] Returns true if this direction is vertical (up or down).
public function get vertical():Boolean| Direction | () | Constructor |
public function Direction(init:Boolean = true)init:Boolean (default = true) |
| getClass | () | method |
override public function getClass():ClassReturnsClass |
| getDirection | () | method |
public function getDirection():intReturns the direction as int value.
Returnsint — 0 for UP, 1 for RIGHT, 2 for DOWN, and 3 for LEFT.
|
| toString | () | method |
public function toString():StringReturns the current direction as string.
ReturnsString — ^ for UP, > for RIGHT, v for DOWN, and < for LEFT.
|
| DOWN | Constant |
public static const DOWN:DirectionDecodes the down direction
| LEFT | Constant |
public static const LEFT:DirectionDecodes the left direction
| RIGHT | Constant |
public static const RIGHT:DirectionDecodes the right direction
| UP | Constant |
public static const UP:DirectionDecodes the up direction