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