org.jfree.chart.block
Class BorderArrangement
- java.lang.Object
-
- org.jfree.chart.block.BorderArrangement
-
- All Implemented Interfaces:
- java.io.Serializable, Arrangement
public class BorderArrangement extends java.lang.Object implements Arrangement, java.io.Serializable
An arrangement manager that lays out blocks in a similar way to Swing's BorderLayout class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BorderArrangement()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 the arrangement manager at the specified edge.org.jfree.ui.Size2Darrange(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)Arranges the items in the specified container, subject to the given constraint.voidclear()Clears the layout.booleanequals(java.lang.Object obj)Tests this arrangement for equality with an arbitrary object.
-
-
-
Method Detail
-
add
public void add(Block block, java.lang.Object key)
Adds a block to the arrangement manager at the specified edge. If the key is not an instance ofRectangleEdgethe block will be added in the center.- Specified by:
addin interfaceArrangement- Parameters:
block- the block (nullpermitted).key- the edge (an instance ofRectangleEdge) ornullfor the center block.
-
arrange
public org.jfree.ui.Size2D arrange(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
Arranges the items in the specified container, subject to the given constraint.- Specified by:
arrangein interfaceArrangement- Parameters:
container- the container.g2- the graphics device.constraint- the constraint.- Returns:
- The block size.
-
clear
public void clear()
Clears the layout.- Specified by:
clearin interfaceArrangement
-
equals
public boolean equals(java.lang.Object obj)
Tests this arrangement 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