public class BorderArrangement extends Object implements Arrangement, Serializable
Constructor and Description |
---|
BorderArrangement()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Block block,
Object key)
Adds a block to the arrangement manager at the specified edge.
|
org.jfree.ui.Size2D |
arrange(BlockContainer container,
Graphics2D g2,
RectangleConstraint constraint)
Arranges the items in the specified container, subject to the given
constraint.
|
void |
clear()
Clears the layout.
|
boolean |
equals(Object obj)
Tests this arrangement for equality with an arbitrary object.
|
public void add(Block block, Object key)
RectangleEdge
the block will
be added in the center.add
in interface Arrangement
block
- the block (null
permitted).key
- the edge (an instance of RectangleEdge
) or
null
for the center block.public org.jfree.ui.Size2D arrange(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
arrange
in interface Arrangement
container
- the container.g2
- the graphics device.constraint
- the constraint.public void clear()
clear
in interface Arrangement
Jas4pp 1.5 © Java Analysis Studio for Particle Physics