org.jfree.chart.block
Class GridArrangement
- java.lang.Object
-
- org.jfree.chart.block.GridArrangement
-
- All Implemented Interfaces:
- java.io.Serializable, Arrangement
public class GridArrangement extends java.lang.Object implements Arrangement, java.io.Serializable
Arranges blocks in a grid within their container.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description GridArrangement(int rows, int columns)Creates a new grid arrangement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(Block block, java.lang.Object key)Adds a block and a key which can be used to determine the position of the block in the arrangement.org.jfree.ui.Size2Darrange(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)Arranges the blocks within the specified container, subject to the given constraint.voidclear()Clears any cached layout information retained by the arrangement.booleanequals(java.lang.Object obj)Compares this layout manager for equality with an arbitrary object.
-
-
-
Constructor Detail
-
GridArrangement
public GridArrangement(int rows, int columns)Creates a new grid arrangement.- Parameters:
rows- the row count.columns- the column count.
-
-
Method Detail
-
add
public void add(Block block, java.lang.Object key)
Adds a block and a key which can be used to determine the position of the block in the arrangement. This method is called by the container (you don't need to call this method directly) and gives the arrangement an opportunity to record the details if they are required.- Specified by:
addin interfaceArrangement- Parameters:
block- the block.key- the key (nullpermitted).
-
arrange
public org.jfree.ui.Size2D arrange(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
Arranges the blocks within the specified container, subject to the given constraint.- Specified by:
arrangein interfaceArrangement- Parameters:
container- the container (nullnot permitted).constraint- the constraint.g2- the graphics device.- Returns:
- The size following the arrangement.
-
clear
public void clear()
Clears any cached layout information retained by the arrangement.- Specified by:
clearin interfaceArrangement
-
equals
public boolean equals(java.lang.Object obj)
Compares this layout manager for equality with an arbitrary object.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object.- Returns:
- A boolean.
-
-
DMelt 3.0 © DataMelt by jWork.ORG