public class ColumnArrangement extends java.lang.Object implements Arrangement, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private org.jfree.ui.HorizontalAlignment |
horizontalAlignment
The horizontal alignment of blocks.
|
private double |
horizontalGap
The horizontal gap between columns.
|
private static long |
serialVersionUID
For serialization.
|
private org.jfree.ui.VerticalAlignment |
verticalAlignment
The vertical alignment of blocks within each row.
|
private double |
verticalGap
The vertical gap between items in a column.
|
| 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,
java.lang.Object key)
Adds a block to be managed by this instance.
|
org.jfree.ui.Size2D |
arrange(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Calculates and sets the bounds of all the items in the specified
container, subject to the given constraint.
|
protected org.jfree.ui.Size2D |
arrangeFF(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Calculates and sets the bounds of all the items in the specified
container, subject to the given constraint.
|
protected org.jfree.ui.Size2D |
arrangeNF(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Calculates and sets the bounds of all the items in the specified
container, subject to the given constraint.
|
protected org.jfree.ui.Size2D |
arrangeNN(BlockContainer container,
java.awt.Graphics2D g2)
Arranges the blocks without any constraints.
|
protected org.jfree.ui.Size2D |
arrangeRF(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the blocks in the container using a fixed height and a
range for the width.
|
protected org.jfree.ui.Size2D |
arrangeRR(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges a container with range constraints for both the horizontal
and vertical.
|
void |
clear()
Clears any cached information.
|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
private static final long serialVersionUID
private org.jfree.ui.HorizontalAlignment horizontalAlignment
private org.jfree.ui.VerticalAlignment verticalAlignment
private double horizontalGap
private double verticalGap
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, java.lang.Object key)
BlockContainer, you shouldn't need to call it
directly.add in interface Arrangementblock - the block.key - a key that controls the position of the block.public org.jfree.ui.Size2D arrange(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
Graphics2D
can be used by some items (particularly items containing text) to
calculate sizing parameters.arrange in interface Arrangementcontainer - the container whose items are being arranged.g2 - the graphics device.constraint - the size constraint.protected org.jfree.ui.Size2D arrangeFF(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
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.protected org.jfree.ui.Size2D arrangeNF(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
Graphics2D
can be used by some items (particularly items containing text) to
calculate sizing parameters.container - the container whose items are being arranged.constraint - the size constraint.g2 - the graphics device.protected org.jfree.ui.Size2D arrangeRR(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
container - the container.g2 - the graphics device.constraint - the constraint.protected org.jfree.ui.Size2D arrangeRF(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
container - the container.g2 - the graphics device.constraint - the constraint.protected org.jfree.ui.Size2D arrangeNN(BlockContainer container, java.awt.Graphics2D g2)
container - the container.g2 - the graphics device.public void clear()
clear in interface Arrangementpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).