|
|||||||||
| Home >> All >> org >> jfree >> chart >> [ block overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jfree.chart.block
Class FlowArrangement

java.lang.Objectorg.jfree.chart.block.FlowArrangement
- All Implemented Interfaces:
- Arrangement, java.io.Serializable
- public class FlowArrangement
- extends java.lang.Object
- implements Arrangement, java.io.Serializable
- extends java.lang.Object
Arranges blocks in a flow layout. This class is immutable.
| Field Summary | |
private org.jfree.ui.HorizontalAlignment |
horizontalAlignment
The horizontal alignment of blocks. |
private double |
horizontalGap
The horizontal gap between items within rows. |
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 rows. |
| Constructor Summary | |
FlowArrangement()
Creates a new instance. |
|
FlowArrangement(org.jfree.ui.HorizontalAlignment hAlign,
org.jfree.ui.VerticalAlignment vAlign,
double hGap,
double vGap)
Creates a new instance. |
|
| Method Summary | |
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)
Arranges the blocks in the container with the overall height and width specified as fixed constraints. |
protected org.jfree.ui.Size2D |
arrangeFN(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the blocks in the container with a fixed width and no height constraint. |
protected org.jfree.ui.Size2D |
arrangeFR(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the blocks in the container with a fixed width and a range constraint on the height. |
protected org.jfree.ui.Size2D |
arrangeNF(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the blocks with no width constraint and a fixed height 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 with a range constraint on the width and a fixed height. |
protected org.jfree.ui.Size2D |
arrangeRN(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the block with a range constraint on the width, and no constraint on the height. |
protected org.jfree.ui.Size2D |
arrangeRR(BlockContainer container,
java.awt.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(java.lang.Object obj)
Tests this instance for equality with an arbitrary object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- For serialization.
- See Also:
- Constant Field Values
horizontalAlignment
private org.jfree.ui.HorizontalAlignment horizontalAlignment
- The horizontal alignment of blocks.
verticalAlignment
private org.jfree.ui.VerticalAlignment verticalAlignment
- The vertical alignment of blocks within each row.
horizontalGap
private double horizontalGap
- The horizontal gap between items within rows.
verticalGap
private double verticalGap
- The vertical gap between rows.
| Constructor Detail |
FlowArrangement
public FlowArrangement()
- Creates a new instance.
FlowArrangement
public FlowArrangement(org.jfree.ui.HorizontalAlignment hAlign, org.jfree.ui.VerticalAlignment vAlign, double hGap, double vGap)
- Creates a new instance.
| Method Detail |
add
public void add(Block block, java.lang.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.
- Specified by:
addin interfaceArrangement
arrange
public 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. The
Graphics2Dcan be used by some items (particularly items containing text) to calculate sizing parameters.- Specified by:
arrangein interfaceArrangement
arrangeFN
protected org.jfree.ui.Size2D arrangeFN(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
- Arranges the blocks in the container with a fixed width and no height
constraint.
arrangeFR
protected org.jfree.ui.Size2D arrangeFR(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
- Arranges the blocks in the container with a fixed width and a range
constraint on the height.
arrangeFF
protected org.jfree.ui.Size2D arrangeFF(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
- Arranges the blocks in the container with the overall height and width
specified as fixed constraints.
arrangeRR
protected org.jfree.ui.Size2D arrangeRR(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
- Arranges the blocks with the overall width and height to fit within
specified ranges.
arrangeRF
protected org.jfree.ui.Size2D arrangeRF(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
- Arranges the blocks in the container with a range constraint on the
width and a fixed height.
arrangeRN
protected org.jfree.ui.Size2D arrangeRN(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
- Arranges the block with a range constraint on the width, and no
constraint on the height.
arrangeNN
protected org.jfree.ui.Size2D arrangeNN(BlockContainer container, java.awt.Graphics2D g2)
- Arranges the blocks without any constraints. This puts all blocks
into a single row.
arrangeNF
protected org.jfree.ui.Size2D arrangeNF(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
- Arranges the blocks with no width constraint and a fixed height
constraint. This puts all blocks into a single row.
clear
public void clear()
- Clears any cached information.
- Specified by:
clearin interfaceArrangement
equals
public boolean equals(java.lang.Object obj)
- Tests this instance for equality with an arbitrary object.
|
|||||||||
| Home >> All >> org >> jfree >> chart >> [ block overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.jfree.chart.block.FlowArrangement