org.jfree.chart.block
Class ColumnArrangement
java.lang.Object
org.jfree.chart.block.ColumnArrangement
- Arrangement, Serializable
Arranges blocks in a column layout. This class is immutable.
void | add(Block block, Object key) - Adds a block to be managed by this instance.
|
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.
|
protected Size2D | arrangeFF(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) - Calculates and sets the bounds of all the items in the specified
container, subject to the given constraint.
|
protected Size2D | arrangeNF(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) - Calculates and sets the bounds of all the items in the specified
container, subject to the given constraint.
|
protected Size2D | arrangeNN(BlockContainer container, Graphics2D g2) - Arranges the blocks without any constraints.
|
protected Size2D | arrangeRF(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) - Arranges the blocks in the container using a fixed height and a
range for the width.
|
protected Size2D | arrangeRR(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
|
void | clear() - Clears any cached information.
|
boolean | equals(Object obj) - Tests this instance for equality with an arbitrary object.
|
ColumnArrangement
public ColumnArrangement(HorizontalAlignment hAlign,
VerticalAlignment vAlign,
double hGap,
double vGap)
Creates a new instance.
hAlign
- the horizontal alignment (currently ignored).vAlign
- the vertical alignment (currently ignored).hGap
- the horizontal gap.vGap
- the vertical gap.
add
public void add(Block block,
Object key)
Adds a block to be managed by this instance. This method is usually
called by the
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.
arrange
public 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. The 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.
- The size of the container after arrangement of the contents.
arrangeFF
protected Size2D arrangeFF(BlockContainer container,
Graphics2D g2,
RectangleConstraint constraint)
Calculates and sets the bounds of all the items in the specified
container, subject to the given constraint. The Graphics2D
can be used by some items (particularly items containing text) to
calculate sizing parameters.
container
- the container whose items are being arranged.g2
- the graphics device.constraint
- the size constraint.
- The container size after the arrangement.
arrangeNF
protected Size2D arrangeNF(BlockContainer container,
Graphics2D g2,
RectangleConstraint constraint)
Calculates and sets the bounds of all the items in the specified
container, subject to the given constraint. The Graphics2D
can be used by some items (particularly items containing text) to
calculate sizing parameters.
container
- the container whose items are being arranged.g2
- the graphics device.constraint
- the size constraint.
- The container size after the arrangement.
arrangeNN
protected Size2D arrangeNN(BlockContainer container,
Graphics2D g2)
Arranges the blocks without any constraints. This puts all blocks
into a single column.
container
- the container.g2
- the graphics device.
- The size after the arrangement.
arrangeRF
protected Size2D arrangeRF(BlockContainer container,
Graphics2D g2,
RectangleConstraint constraint)
Arranges the blocks in the container using a fixed height and a
range for the width.
container
- the container.g2
- the graphics device.constraint
- the constraint.
- The size of the container after arrangement.
equals
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
obj
- the object (null
permitted).