Package org.jfree.chart.ui
Class Align
java.lang.Object
org.jfree.chart.ui.Align
A utility class for aligning rectangles.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Bottom alignment.static final int
Bottom/Left alignment.static final int
Bottom/Right alignment.static final int
Center alignment.static final int
East alignment (same as RIGHT).static final int
Complete fit.static final int
Horizontal fit.static final int
Vertical fit.static final int
Left alignment.static final int
North alignment (same as TOP).static final int
North/East alignment (same as TOP_RIGHT).static final int
North/West alignment (same as TOP_LEFT).static final int
Right alignment.static final int
South alignment (same as BOTTOM).static final int
South/East alignment (same as BOTTOM_RIGHT).static final int
South/West alignment (same as BOTTOM_LEFT).static final int
Top alignment.static final int
Top/Left alignment.static final int
Top/Right alignment.static final int
West alignment (same as LEFT). -
Method Summary
Modifier and TypeMethodDescriptionstatic void
align
(Rectangle2D rect, Rectangle2D frame, int align) Aligns one rectangle (rect
) relative to another rectangle (frame
).
-
Field Details
-
CENTER
Center alignment.- See Also:
-
TOP
Top alignment.- See Also:
-
BOTTOM
Bottom alignment.- See Also:
-
LEFT
Left alignment.- See Also:
-
RIGHT
Right alignment.- See Also:
-
TOP_LEFT
Top/Left alignment.- See Also:
-
TOP_RIGHT
Top/Right alignment.- See Also:
-
BOTTOM_LEFT
Bottom/Left alignment.- See Also:
-
BOTTOM_RIGHT
Bottom/Right alignment.- See Also:
-
FIT_HORIZONTAL
Horizontal fit.- See Also:
-
FIT_VERTICAL
Vertical fit.- See Also:
-
FIT
Complete fit.- See Also:
-
NORTH
North alignment (same as TOP).- See Also:
-
SOUTH
South alignment (same as BOTTOM).- See Also:
-
WEST
West alignment (same as LEFT).- See Also:
-
EAST
East alignment (same as RIGHT).- See Also:
-
NORTH_WEST
North/West alignment (same as TOP_LEFT).- See Also:
-
NORTH_EAST
North/East alignment (same as TOP_RIGHT).- See Also:
-
SOUTH_WEST
South/West alignment (same as BOTTOM_LEFT).- See Also:
-
SOUTH_EAST
South/East alignment (same as BOTTOM_RIGHT).- See Also:
-
-
Method Details
-
align
Aligns one rectangle (rect
) relative to another rectangle (frame
).- Parameters:
rect
- the rectangle to be aligned (null
not permitted).frame
- the reference frame (null
not permitted).align
- the alignment code.
-