org.jfree.chart.block
public class FlowArrangement extends Object implements Arrangement, Serializable
Constructor Summary | |
---|---|
FlowArrangement()
Creates a new instance. | |
FlowArrangement(HorizontalAlignment hAlign, VerticalAlignment vAlign, double hGap, double vGap)
Creates a new instance.
|
Method Summary | |
---|---|
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)
Arranges the blocks in the container with the overall height and width
specified as fixed constraints.
|
protected Size2D | arrangeFN(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arranges the blocks in the container with a fixed width and no height
constraint.
|
protected Size2D | arrangeFR(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arranges the blocks in the container with a fixed width and a range
constraint on the height.
|
protected Size2D | arrangeNF(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arranges the blocks with no width constraint and a fixed height
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 with a range constraint on the
width and a fixed height.
|
protected Size2D | arrangeRN(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arranges the block with a range constraint on the width, and no
constraint on the height.
|
protected Size2D | arrangeRR(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arranges the blocks with the overall width and height to fit within
specified ranges.
|
void | clear()
Clears any cached information. |
boolean | equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
Parameters: hAlign the horizontal alignment (currently ignored). vAlign the vertical alignment (currently ignored). hGap the horizontal gap. vGap the vertical gap.
Parameters: block the block. key a key that controls the position of the block.
Graphics2D
can be used by some items (particularly items containing text) to
calculate sizing parameters.
Parameters: container the container whose items are being arranged. constraint the size constraint. g2 the graphics device.
Returns: The size of the container after arrangement of the contents.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size following the arrangement.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size following the arrangement.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size after the arrangement.
Parameters: container the container. g2 the graphics device.
Returns: The size after the arrangement.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size following the arrangement.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size following the arrangement.
Parameters: container the container. constraint the constraint. g2 the graphics device.
Returns: The size after the arrangement.
Parameters: obj the object (null
permitted).
Returns: A boolean.