org.jfree.chart.block
Class BorderArrangement
java.lang.Object
org.jfree.chart.block.BorderArrangement
- Arrangement, Serializable
An arrangement manager that lays out blocks in a similar way to
Swing's BorderLayout class.
void | add(Block block, Object key) - Adds a block to the arrangement manager at the specified edge.
|
Size2D | arrange(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) - Arranges the items in the specified container, subject to the given
constraint.
|
protected Size2D | arrangeFF(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) - Arranges the items within a container.
|
protected Size2D | arrangeFN(BlockContainer container, Graphics2D g2, double width) - Arranges the container width a fixed width and no constraint on the
height.
|
protected Size2D | arrangeFR(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) - Performs an arrangement with a fixed width and a range for the height.
|
protected Size2D | arrangeNN(BlockContainer container, Graphics2D g2) - Performs an arrangement without constraints.
|
protected Size2D | arrangeRR(BlockContainer container, Range widthRange, Range heightRange, Graphics2D g2) - Performs an arrangement with range constraints on both the vertical
and horizontal sides.
|
void | clear() - Clears the layout.
|
boolean | equals(Object obj) - Tests this arrangement for equality with an arbitrary object.
|
add
public void add(Block block,
Object key)
Adds a block to the arrangement manager at the specified edge.
- add in interface Arrangement
block
- the block (null
permitted).key
- the edge (an instance of RectangleEdge
) or
null
for the center block.
arrange
public Size2D arrange(BlockContainer container,
Graphics2D g2,
RectangleConstraint constraint)
Arranges the items in the specified container, subject to the given
constraint.
- arrange in interface Arrangement
container
- the container.g2
- the graphics device.constraint
- the constraint.
arrangeFF
protected Size2D arrangeFF(BlockContainer container,
Graphics2D g2,
RectangleConstraint constraint)
Arranges the items within a container.
container
- the container.g2
- the graphics device.constraint
- the constraint.
- The container size after the arrangement.
arrangeFN
protected Size2D arrangeFN(BlockContainer container,
Graphics2D g2,
double width)
Arranges the container width a fixed width and no constraint on the
height.
container
- the container.g2
- the graphics device.width
- the fixed width.
- The container size after arranging the contents.
arrangeFR
protected Size2D arrangeFR(BlockContainer container,
Graphics2D g2,
RectangleConstraint constraint)
Performs an arrangement with a fixed width and a range for the height.
container
- the container.g2
- the graphics device.constraint
- the constraint.
- The container size after the arrangement.
arrangeNN
protected Size2D arrangeNN(BlockContainer container,
Graphics2D g2)
Performs an arrangement without constraints.
container
- the container.g2
- the graphics device.
- The container size after the arrangement.
arrangeRR
protected Size2D arrangeRR(BlockContainer container,
Range widthRange,
Range heightRange,
Graphics2D g2)
Performs an arrangement with range constraints on both the vertical
and horizontal sides.
container
- the container.widthRange
- the allowable range for the container width.heightRange
- the allowable range for the container height.g2
- the graphics device.
equals
public boolean equals(Object obj)
Tests this arrangement for equality with an arbitrary object.
obj
- the object (null
permitted).