|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.block.ColumnArrangement
Arranges blocks in a column layout. This class is immutable.
Constructor Summary | |
ColumnArrangement()
Creates a new instance. |
|
ColumnArrangement(HorizontalAlignment hAlign,
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. |
Size2D |
arrange(BlockContainer container,
RectangleConstraint constraint,
java.awt.Graphics2D g2)
Calculates and sets the bounds of all the items in the specified container, subject to the given constraint. |
protected Size2D |
arrangeFF(BlockContainer container,
RectangleConstraint constraint,
java.awt.Graphics2D g2)
Calculates and sets the bounds of all the items in the specified container, subject to the given constraint. |
protected Size2D |
arrangeNF(BlockContainer container,
RectangleConstraint constraint,
java.awt.Graphics2D g2)
Calculates and sets the bounds of all the items in the specified container, subject to the given constraint. |
protected Size2D |
arrangeNN(BlockContainer container,
java.awt.Graphics2D g2)
Arranges the blocks without any constraints. |
protected Size2D |
arrangeRF(BlockContainer container,
RectangleConstraint constraint,
java.awt.Graphics2D g2)
|
protected Size2D |
arrangeRR(BlockContainer container,
RectangleConstraint constraint,
java.awt.Graphics2D g2)
|
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 |
Constructor Detail |
public ColumnArrangement()
public ColumnArrangement(HorizontalAlignment hAlign, 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.Method Detail |
public void add(Block block, java.lang.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 Size2D arrange(BlockContainer container, RectangleConstraint constraint, java.awt.Graphics2D g2)
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.constraint
- the size constraint.g2
- the graphics device.
protected Size2D arrangeFF(BlockContainer container, RectangleConstraint constraint, java.awt.Graphics2D g2)
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 Size2D arrangeNF(BlockContainer container, RectangleConstraint constraint, java.awt.Graphics2D g2)
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 Size2D arrangeRR(BlockContainer container, RectangleConstraint constraint, java.awt.Graphics2D g2)
protected Size2D arrangeRF(BlockContainer container, RectangleConstraint constraint, java.awt.Graphics2D g2)
protected Size2D arrangeNN(BlockContainer container, java.awt.Graphics2D g2)
container
- the container.g2
- the graphics device.
public void clear()
clear
in interface Arrangement
public boolean equals(java.lang.Object obj)
obj
- the object (null
permitted).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |