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
public static final int CENTERCenter alignment.- See Also:
-
TOP
public static final int TOPTop alignment.- See Also:
-
BOTTOM
public static final int BOTTOMBottom alignment.- See Also:
-
LEFT
public static final int LEFTLeft alignment.- See Also:
-
RIGHT
public static final int RIGHTRight alignment.- See Also:
-
TOP_LEFT
public static final int TOP_LEFTTop/Left alignment.- See Also:
-
TOP_RIGHT
public static final int TOP_RIGHTTop/Right alignment.- See Also:
-
BOTTOM_LEFT
public static final int BOTTOM_LEFTBottom/Left alignment.- See Also:
-
BOTTOM_RIGHT
public static final int BOTTOM_RIGHTBottom/Right alignment.- See Also:
-
FIT_HORIZONTAL
public static final int FIT_HORIZONTALHorizontal fit.- See Also:
-
FIT_VERTICAL
public static final int FIT_VERTICALVertical fit.- See Also:
-
FIT
public static final int FITComplete fit.- See Also:
-
NORTH
public static final int NORTHNorth alignment (same as TOP).- See Also:
-
SOUTH
public static final int SOUTHSouth alignment (same as BOTTOM).- See Also:
-
WEST
public static final int WESTWest alignment (same as LEFT).- See Also:
-
EAST
public static final int EASTEast alignment (same as RIGHT).- See Also:
-
NORTH_WEST
public static final int NORTH_WESTNorth/West alignment (same as TOP_LEFT).- See Also:
-
NORTH_EAST
public static final int NORTH_EASTNorth/East alignment (same as TOP_RIGHT).- See Also:
-
SOUTH_WEST
public static final int SOUTH_WESTSouth/West alignment (same as BOTTOM_LEFT).- See Also:
-
SOUTH_EAST
public static final int SOUTH_EASTSouth/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.
-