|
|||||||||
| 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 GridArrangement

java.lang.Objectorg.jfree.chart.block.GridArrangement
- All Implemented Interfaces:
- Arrangement, java.io.Serializable
- public class GridArrangement
- extends java.lang.Object
- implements Arrangement, java.io.Serializable
- extends java.lang.Object
Arranges blocks in a grid within their container.
| Field Summary | |
private int |
columns
The columns. |
private int |
rows
The rows. |
private static long |
serialVersionUID
For serialization. |
| Constructor Summary | |
GridArrangement(int rows,
int columns)
Creates a new grid arrangement. |
|
| Method Summary | |
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. |
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. |
protected org.jfree.ui.Size2D |
arrangeFF(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the container with a fixed overall width and height. |
protected org.jfree.ui.Size2D |
arrangeFN(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arrange with a fixed width and a height within a given range. |
protected org.jfree.ui.Size2D |
arrangeFR(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arrange with a fixed width and a height within a given range. |
protected org.jfree.ui.Size2D |
arrangeNN(BlockContainer container,
java.awt.Graphics2D g2)
Arranges the container with no constraint on the width or height. |
void |
clear()
Clears any cached layout information retained by the arrangement. |
boolean |
equals(java.lang.Object obj)
Compares this layout manager 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
rows
private int rows
- The rows.
columns
private int columns
- The columns.
| Constructor Detail |
GridArrangement
public GridArrangement(int rows,
int columns)
- Creates a new grid arrangement.
| 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
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
arrangeNN
protected org.jfree.ui.Size2D arrangeNN(BlockContainer container, java.awt.Graphics2D g2)
- Arranges the container with no constraint on the width or height.
arrangeFF
protected org.jfree.ui.Size2D arrangeFF(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
- Arranges the container with a fixed overall width and height.
arrangeFR
protected org.jfree.ui.Size2D arrangeFR(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
- Arrange with a fixed width and a height within a given range.
arrangeFN
protected org.jfree.ui.Size2D arrangeFN(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
- Arrange with a fixed width and a height within a given range.
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.
|
|||||||||
| 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.GridArrangement