|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.block.BorderArrangement
An arrangement manager that lays out blocks in a similar way to Swing's BorderLayout class.
Constructor Summary | |
BorderArrangement()
Creates a new instance. |
Method Summary | |
void |
add(Block block,
java.lang.Object key)
Adds a block to the arrangement manager at the specified edge. |
Size2D |
arrange(BlockContainer container,
RectangleConstraint constraint,
java.awt.Graphics2D g2)
Arranges the items in the specified container, subject to the given constraint. |
protected Size2D |
arrangeFF(BlockContainer container,
RectangleConstraint constraint,
java.awt.Graphics2D g2)
Arranges the items within a container. |
protected Size2D |
arrangeFN(BlockContainer container,
double width,
java.awt.Graphics2D g2)
Arranges the container width a fixed width and no constraint on the height. |
protected Size2D |
arrangeFR(BlockContainer container,
RectangleConstraint constraint,
java.awt.Graphics2D g2)
Performs an arrangement with a fixed width and a range for the height. |
protected Size2D |
arrangeNN(BlockContainer container,
java.awt.Graphics2D g2)
Performs an arrangement without constraints. |
protected 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BorderArrangement()
Method Detail |
public void add(Block block, java.lang.Object key)
add
in interface Arrangement
block
- the block (null
permitted).key
- the edge (an instance of RectangleEdge
) or
null
for the center block.public Size2D arrange(BlockContainer container, RectangleConstraint constraint, java.awt.Graphics2D g2)
arrange
in interface Arrangement
container
- the container.constraint
- the constraint.g2
- the graphics device.
protected Size2D arrangeNN(BlockContainer container, java.awt.Graphics2D g2)
container
- the container.g2
- the graphics device.protected Size2D arrangeFR(BlockContainer container, RectangleConstraint constraint, java.awt.Graphics2D g2)
container
- the container.g2
- the graphics device.protected Size2D arrangeFN(BlockContainer container, double width, java.awt.Graphics2D g2)
container
- the container.width
- the fixed width.g2
- the graphics device.
protected 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 Size2D arrangeFF(BlockContainer container, RectangleConstraint constraint, java.awt.Graphics2D g2)
container
- the container.constraint
- the constraint.g2
- the graphics device.public void clear()
clear
in interface Arrangement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |