Enum FlowOrientation
- All Implemented Interfaces:
Serializable
,Comparable<FlowOrientation>
The orientation of a particular flow; its axis and direction.
- Author:
- Garret Wilson
-
Enum Constant Summary
Enum ConstantDescriptionFlow.Direction.DECREASING
flow on theAxis.Y
axis.Flow.Direction.INCREASING
flow on theAxis.X
axis.Flow.Direction.DECREASING
flow on theAxis.X
axis.Flow.Direction.INCREASING
flow on theAxis.Y
axis. -
Method Summary
Modifier and TypeMethodDescriptiongetAxis()
getCompassPoint
(Flow.End end) Retrieves a cardinal compass point indicating the absolute direction based upon the given flow end.getGlyph()
static FlowOrientation
Returns the enum constant of this type with the specified name.static FlowOrientation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LEFT_TO_RIGHT
Flow.Direction.INCREASING
flow on theAxis.X
axis. -
RIGHT_TO_LEFT
Flow.Direction.DECREASING
flow on theAxis.X
axis. -
TOP_TO_BOTTOM
Flow.Direction.INCREASING
flow on theAxis.Y
axis. -
BOTTOM_TO_TOP
Flow.Direction.DECREASING
flow on theAxis.Y
axis.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getGlyph
- Returns:
- The resource reference for the glyph, using the session's default orientation.
-
getAxis
- Returns:
- The axis of the flow.
-
getDirection
- Returns:
- The direction of the flow on the axis.
-
getCompassPoint
Retrieves a cardinal compass point indicating the absolute direction based upon the given flow end.- Parameters:
end
- The end of the flow.- Returns:
- The cardinal compass point indicating the absolute direction of the given end.
- Throws:
NullPointerException
- if the given end isnull
.- See Also:
-