|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.component.layout.Orientation
public class Orientation
Encapsulates internationalized orientation of objects. Static preinstantiated orientation objects are provided for common orientations.
| Field Summary | |
|---|---|
static Orientation |
LEFT_TO_RIGHT_TOP_TO_BOTTOM
Left-to-right line, top-to-bottom page orientation (e.g. |
static Orientation |
RIGHT_TO_LEFT_TOP_TO_BOTTOM
Right-to-left line, top-to-bottom page orientation (e.g. |
static Orientation |
TOP_TO_BOTTOM_RIGHT_TO_LEFT
Top-to-bottom line, right-to-left page orientation (e.g. |
| Constructor Summary | |
|---|---|
Orientation(FlowOrientation lineOrientation,
FlowOrientation pageOrientation)
Flow orientation constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Determines whether the given object is equal to this object. |
Axis |
getAxis(Flow flow)
Determines the axis for the particular flow. |
Border |
getBorder(Side side)
Determines the border that appears on the given side. |
CompassPoint |
getCompassPoint(Flow.End lineEnd,
Flow.End pageEnd)
Retrieves a cardinal or ordinal compass point indicating the absolute direction based upon the given line and/or page ends. |
CompassPoint |
getCompassPoint(Flow flow,
Flow.End end)
Retrieves a cardinal compass point indicating the absolute direction based upon the given flow and end. |
Flow.Direction |
getDirection(Flow flow)
Determines the direction of the particular flow. |
Flow |
getFlow(Axis axis)
Determines the flow (line or page) that is aligned to the given axis. |
FlowOrientation |
getOrientation(Flow flow)
Determines the orientation for the particular flow. |
static Orientation |
getOrientation(java.util.Locale locale)
Retrieves the default orientation for a particular locale. |
Side |
getSide(Border border)
Determines the side for the particular border. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Orientation LEFT_TO_RIGHT_TOP_TO_BOTTOM
public static final Orientation RIGHT_TO_LEFT_TOP_TO_BOTTOM
public static final Orientation TOP_TO_BOTTOM_RIGHT_TO_LEFT
| Constructor Detail |
|---|
public Orientation(FlowOrientation lineOrientation,
FlowOrientation pageOrientation)
lineOrientation - The orientation of the line.pageOrientation - The orientation of the page.
java.lang.NullPointerException - if the line orientation and/or page orientation is null.
java.lang.IllegalArgumentException - if the line orientation and/or page orientation uses the Axis.Z axis.
java.lang.IllegalArgumentException - if both flow orientations specify the same axis.| Method Detail |
|---|
public FlowOrientation getOrientation(Flow flow)
flow - The flow (line or page).
java.lang.NullPointerException - if the given flow is null.public Axis getAxis(Flow flow)
flow - The flow (line or page).
java.lang.NullPointerException - if the given flow is null.public Flow getFlow(Axis axis)
axis - The axis for which flow should be determined.
java.lang.NullPointerException - if the given axis is null.public Flow.Direction getDirection(Flow flow)
flow - The flow (line or page).
java.lang.NullPointerException - if the given flow is null.public Side getSide(Border border)
border - The logical border.
java.lang.NullPointerException - if the given border is null.public Border getBorder(Side side)
side - The side for which the border should be determined.
java.lang.NullPointerException - if the given side is null.
public CompassPoint getCompassPoint(Flow flow,
Flow.End end)
flow - The flow for which the compass point should be returnedend - The end of the flow requested.
java.lang.NullPointerException - if the given flow and/or end is null.CompassPoint.NORTH,
CompassPoint.EAST,
CompassPoint.SOUTH,
CompassPoint.WEST
public CompassPoint getCompassPoint(Flow.End lineEnd,
Flow.End pageEnd)
null.
lineEnd - The end of the line flow, or null if a cardinal direction is requested and a page end is provided.pageEnd - The end of the page flow, or null if a cardinal direction is requested and a line end is provided.
java.lang.NullPointerException - if both the given line end and the given page end are null.CompassPoint.NORTH,
CompassPoint.NORTHEAST,
CompassPoint.EAST,
CompassPoint.SOUTHEAST,
CompassPoint.SOUTH,
CompassPoint.SOUTHWEST,
CompassPoint.WEST,
CompassPoint.NORTHWESTpublic static Orientation getOrientation(java.util.Locale locale)
ar)fa)he, iw)ur)
locale - The locale for which an orientation should be returned.
LEFT_TO_RIGHT_TOP_TO_BOTTOM by default.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - The object to compare to this object.
true if the given object is another orientation with the same line and page directions.public int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||