public class ColumnArrangement extends Object implements Arrangement, Serializable
Constructor and Description |
---|
ColumnArrangement()
Creates a new instance.
|
ColumnArrangement(org.jfree.ui.HorizontalAlignment hAlign,
org.jfree.ui.VerticalAlignment vAlign,
double hGap,
double vGap)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Block block,
Object key)
Adds a block to be managed by this instance.
|
org.jfree.ui.Size2D |
arrange(BlockContainer container,
Graphics2D g2,
RectangleConstraint constraint)
Calculates and sets the bounds of all the items in the specified
container, subject to the given constraint.
|
void |
clear()
Clears any cached information.
|
boolean |
equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
public ColumnArrangement()
public ColumnArrangement(org.jfree.ui.HorizontalAlignment hAlign, org.jfree.ui.VerticalAlignment vAlign, double hGap, double vGap)
hAlign
- the horizontal alignment (currently ignored).vAlign
- the vertical alignment (currently ignored).hGap
- the horizontal gap.vGap
- the vertical gap.public void add(Block block, Object key)
BlockContainer
, you shouldn't need to call it
directly.add
in interface Arrangement
block
- the block.key
- a key that controls the position of the block.public org.jfree.ui.Size2D arrange(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Graphics2D
can be used by some items (particularly items containing text) to
calculate sizing parameters.arrange
in interface Arrangement
container
- the container whose items are being arranged.g2
- the graphics device.constraint
- the size constraint.public void clear()
clear
in interface Arrangement
Jas4pp 1.5 © Java Analysis Studio for Particle Physics