Package org.jfree.chart.ui
Class Align
java.lang.Object
org.jfree.chart.ui.Align
public final class Align extends Object
A utility class for aligning rectangles.
-
Field Summary
Fields Modifier and Type Field Description static intBOTTOMBottom alignment.static intBOTTOM_LEFTBottom/Left alignment.static intBOTTOM_RIGHTBottom/Right alignment.static intCENTERCenter alignment.static intEASTEast alignment (same as RIGHT).static intFITComplete fit.static intFIT_HORIZONTALHorizontal fit.static intFIT_VERTICALVertical fit.static intLEFTLeft alignment.static intNORTHNorth alignment (same as TOP).static intNORTH_EASTNorth/East alignment (same as TOP_RIGHT).static intNORTH_WESTNorth/West alignment (same as TOP_LEFT).static intRIGHTRight alignment.static intSOUTHSouth alignment (same as BOTTOM).static intSOUTH_EASTSouth/East alignment (same as BOTTOM_RIGHT).static intSOUTH_WESTSouth/West alignment (same as BOTTOM_LEFT).static intTOPTop alignment.static intTOP_LEFTTop/Left alignment.static intTOP_RIGHTTop/Right alignment.static intWESTWest alignment (same as LEFT). -
Method Summary
Modifier and Type Method Description static voidalign(Rectangle2D rect, Rectangle2D frame, int align)Aligns one rectangle (rect) relative to another rectangle (frame).
-
Field Details
-
CENTER
Center alignment.- See Also:
- Constant Field Values
-
TOP
Top alignment.- See Also:
- Constant Field Values
-
BOTTOM
Bottom alignment.- See Also:
- Constant Field Values
-
LEFT
Left alignment.- See Also:
- Constant Field Values
-
RIGHT
Right alignment.- See Also:
- Constant Field Values
-
TOP_LEFT
Top/Left alignment.- See Also:
- Constant Field Values
-
TOP_RIGHT
Top/Right alignment.- See Also:
- Constant Field Values
-
BOTTOM_LEFT
Bottom/Left alignment.- See Also:
- Constant Field Values
-
BOTTOM_RIGHT
Bottom/Right alignment.- See Also:
- Constant Field Values
-
FIT_HORIZONTAL
Horizontal fit.- See Also:
- Constant Field Values
-
FIT_VERTICAL
Vertical fit.- See Also:
- Constant Field Values
-
FIT
Complete fit.- See Also:
- Constant Field Values
-
NORTH
North alignment (same as TOP).- See Also:
- Constant Field Values
-
SOUTH
South alignment (same as BOTTOM).- See Also:
- Constant Field Values
-
WEST
West alignment (same as LEFT).- See Also:
- Constant Field Values
-
EAST
East alignment (same as RIGHT).- See Also:
- Constant Field Values
-
NORTH_WEST
North/West alignment (same as TOP_LEFT).- See Also:
- Constant Field Values
-
NORTH_EAST
North/East alignment (same as TOP_RIGHT).- See Also:
- Constant Field Values
-
SOUTH_WEST
South/West alignment (same as BOTTOM_LEFT).- See Also:
- Constant Field Values
-
SOUTH_EAST
South/East alignment (same as BOTTOM_RIGHT).- See Also:
- Constant Field Values
-
-
Method Details
-
align
Aligns one rectangle (rect) relative to another rectangle (frame).- Parameters:
rect- the rectangle to be aligned (nullnot permitted).frame- the reference frame (nullnot permitted).align- the alignment code.
-