org.jfree.chart.block
public class GridArrangement extends Object implements Arrangement, Serializable
Constructor Summary | |
---|---|
GridArrangement(int rows, int columns)
Creates a new grid arrangement.
|
Method Summary | |
---|---|
void | add(Block block, Object key)
Adds a block and a key which can be used to determine the position of
the block in the arrangement. |
Size2D | arrange(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arranges the blocks within the specified container, subject to the given
constraint.
|
protected Size2D | arrangeFF(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arranges the container with a fixed overall width and height.
|
protected Size2D | arrangeFN(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arrange with a fixed width and a height within a given range.
|
protected Size2D | arrangeFR(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arrange with a fixed width and a height within a given range.
|
protected Size2D | arrangeNF(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arrange with a fixed height and no constraint for the width.
|
protected Size2D | arrangeNN(BlockContainer container, Graphics2D g2)
Arranges the container with no constraint on the width or height.
|
protected Size2D | arrangeNR(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arrange with a fixed height and no width constraint.
|
protected Size2D | arrangeRF(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arrange with a fixed height and a width within a given range.
|
protected Size2D | arrangeRN(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arrange with a fixed width and no height constraint.
|
protected Size2D | arrangeRR(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arrange with ranges for both the width and height constraints.
|
void | clear()
Clears any cached layout information retained by the arrangement. |
boolean | equals(Object obj)
Compares this layout manager for equality with an arbitrary object.
|
Parameters: rows the row count. columns the column count.
Parameters: block the block. key the key (null
permitted).
Parameters: container the container (null
not permitted). constraint the constraint. g2 the graphics device.
Returns: The size following the arrangement.
Parameters: container the container (null
not permitted). g2 the graphics device. constraint the constraint (null
not permitted).
Returns: The size following the arrangement.
Parameters: container the container. g2 the graphics device. constraint the constraint.
Returns: The size of the arrangement.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size of the arrangement.
Parameters: container the container. g2 the graphics device. constraint the constraint.
Returns: The size of the arrangement.
Parameters: container the container (null
not permitted). g2 the graphics device.
Returns: The size.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size of the arrangement.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size of the arrangement.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size of the arrangement.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size of the arrangement.
Parameters: obj the object.
Returns: A boolean.