org.jfree.chart.block
Class ColumnArrangement
- java.lang.Object
-
- org.jfree.chart.block.ColumnArrangement
-
- All Implemented Interfaces:
- java.io.Serializable, Arrangement
public class ColumnArrangement extends java.lang.Object implements Arrangement, java.io.Serializable
Arranges blocks in a column layout. This class is immutable.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(Block block, java.lang.Object key)Adds a block to be managed by this instance.org.jfree.ui.Size2Darrange(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.voidclear()Clears any cached information.booleanequals(java.lang.Object obj)Tests this instance for equality with an arbitrary object.
-
-
-
Constructor Detail
-
ColumnArrangement
public ColumnArrangement()
Creates a new instance.
-
ColumnArrangement
public ColumnArrangement(org.jfree.ui.HorizontalAlignment hAlign, org.jfree.ui.VerticalAlignment vAlign, double hGap, double vGap)Creates a new instance.- Parameters:
hAlign- the horizontal alignment (currently ignored).vAlign- the vertical alignment (currently ignored).hGap- the horizontal gap.vGap- the vertical gap.
-
-
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 theBlockContainer, you shouldn't need to call it directly.- Specified by:
addin interfaceArrangement- Parameters:
block- the block.key- a key that controls the position of the block.
-
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. TheGraphics2Dcan be used by some items (particularly items containing text) to calculate sizing parameters.- Specified by:
arrangein interfaceArrangement- Parameters:
container- the container whose items are being arranged.g2- the graphics device.constraint- the size constraint.- Returns:
- The size of the container after arrangement of the contents.
-
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.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
-
DMelt 3.0 © DataMelt by jWork.ORG