public class GridArrangement extends Object implements Arrangement, Serializable
Constructor and Description |
---|
GridArrangement(int rows,
int columns)
Creates a new grid arrangement.
|
Modifier and Type | Method and Description |
---|---|
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.
|
org.jfree.ui.Size2D |
arrange(BlockContainer container,
Graphics2D g2,
RectangleConstraint constraint)
Arranges the blocks within the specified container, subject to the given
constraint.
|
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.
|
public GridArrangement(int rows, int columns)
rows
- the row count.columns
- the column count.public void add(Block block, Object key)
add
in interface Arrangement
block
- the block.key
- the key (null
permitted).public org.jfree.ui.Size2D arrange(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
arrange
in interface Arrangement
container
- the container (null
not permitted).constraint
- the constraint.g2
- the graphics device.public void clear()
clear
in interface Arrangement
Jas4pp 1.5 © Java Analysis Studio for Particle Physics