public class BorderArrangement extends java.lang.Object implements Arrangement, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private Block |
bottomBlock
The block (if any) at the bottom of the layout.
|
private Block |
centerBlock
The block (if any) at the center of the layout.
|
private Block |
leftBlock
The block (if any) at the left of the layout.
|
private Block |
rightBlock
The block (if any) at the right of the layout.
|
private static long |
serialVersionUID
For serialization.
|
private Block |
topBlock
The block (if any) at the top of the layout.
|
| Constructor and Description |
|---|
BorderArrangement()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Block block,
java.lang.Object key)
Adds a block to the arrangement manager at the specified edge.
|
org.jfree.ui.Size2D |
arrange(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the items in the specified container, subject to the given
constraint.
|
protected org.jfree.ui.Size2D |
arrangeFF(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the items within a container.
|
protected org.jfree.ui.Size2D |
arrangeFN(BlockContainer container,
java.awt.Graphics2D g2,
double width)
Arranges the container width a fixed width and no constraint on the
height.
|
protected org.jfree.ui.Size2D |
arrangeFR(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Performs an arrangement with a fixed width and a range for the height.
|
protected org.jfree.ui.Size2D |
arrangeNN(BlockContainer container,
java.awt.Graphics2D g2)
Performs an arrangement without constraints.
|
protected org.jfree.ui.Size2D |
arrangeRR(BlockContainer container,
Range widthRange,
Range heightRange,
java.awt.Graphics2D g2)
Performs an arrangement with range constraints on both the vertical
and horizontal sides.
|
void |
clear()
Clears the layout.
|
boolean |
equals(java.lang.Object obj)
Tests this arrangement for equality with an arbitrary object.
|
private static final long serialVersionUID
private Block centerBlock
private Block topBlock
private Block bottomBlock
private Block leftBlock
private Block rightBlock
public void add(Block block, java.lang.Object key)
RectangleEdge the block will
be added in the center.add in interface Arrangementblock - the block (null permitted).key - the edge (an instance of RectangleEdge) or
null for the center block.public org.jfree.ui.Size2D arrange(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
arrange in interface Arrangementcontainer - the container.g2 - the graphics device.constraint - the constraint.protected org.jfree.ui.Size2D arrangeNN(BlockContainer container, java.awt.Graphics2D g2)
container - the container.g2 - the graphics device.protected org.jfree.ui.Size2D arrangeFR(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
container - the container.g2 - the graphics device.constraint - the constraint.protected org.jfree.ui.Size2D arrangeFN(BlockContainer container, java.awt.Graphics2D g2, double width)
container - the container.g2 - the graphics device.width - the fixed width.protected org.jfree.ui.Size2D arrangeRR(BlockContainer container, Range widthRange, Range heightRange, java.awt.Graphics2D g2)
container - the container.widthRange - the allowable range for the container width.heightRange - the allowable range for the container height.g2 - the graphics device.protected org.jfree.ui.Size2D arrangeFF(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
container - the container.constraint - the constraint.g2 - the graphics device.public void clear()
clear in interface Arrangementpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).