|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.block.GridArrangement
Arranges blocks in a grid within their container.
Constructor Summary | |
GridArrangement(int rows,
int columns)
Creates a new grid arrangement. |
Method Summary | |
void |
add(Block block,
java.lang.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,
RectangleConstraint constraint,
java.awt.Graphics2D g2)
Arranges the blocks within the specified container, subject to the given constraint. |
protected Size2D |
arrangeFF(BlockContainer container,
RectangleConstraint constraint,
java.awt.Graphics2D g2)
Arranges the container with a fixed overall width and height. |
protected Size2D |
arrangeNN(BlockContainer container,
java.awt.Graphics2D g2)
Arranges the container with no constraint on the width or height. |
void |
clear()
Clears any cached layout information retained by the arrangement. |
boolean |
equals(java.lang.Object obj)
Compares this layout manager for equality with an arbitrary object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GridArrangement(int rows, int columns)
rows
- the row count.columns
- the column count.Method Detail |
public void add(Block block, java.lang.Object key)
add
in interface Arrangement
block
- the block.key
- the key (null
permitted).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 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
public boolean equals(java.lang.Object obj)
obj
- the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |