public class

BorderArrangement

extends Object
implements Serializable Arrangement
java.lang.Object
   ↳ org.jfree.chart.block.BorderArrangement

Class Overview

An arrangement manager that lays out blocks in a similar way to Swing's BorderLayout class.

Summary

Public Constructors
BorderArrangement()
Creates a new instance.
Public Methods
void add(Block block, Object key)
Adds a block to the arrangement manager at the specified edge.
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.
Protected Methods
Size2D arrangeFF(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Arranges the items within a container.
Size2D arrangeFN(BlockContainer container, Graphics2D g2, double width)
Arranges the container width a fixed width and no constraint on the height.
Size2D arrangeFR(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)
Performs an arrangement with a fixed width and a range for the height.
Size2D arrangeNN(BlockContainer container, Graphics2D g2)
Performs an arrangement without constraints.
Size2D arrangeRR(BlockContainer container, Range widthRange, Range heightRange, Graphics2D g2)
Performs an arrangement with range constraints on both the vertical and horizontal sides.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.jfree.chart.block.Arrangement

Public Constructors

public BorderArrangement ()

Creates a new instance.

Public Methods

public void add (Block block, Object key)

Adds a block to the arrangement manager at the specified edge.

Parameters
block the block (null permitted).
key the edge (an instance of RectangleEdge) or null for the center block.

public Size2D arrange (BlockContainer container, Graphics2D g2, RectangleConstraint constraint)

Arranges the items in the specified container, subject to the given constraint.

Parameters
container the container.
g2 the graphics device.
constraint the constraint.
Returns
  • The block size.

public void clear ()

Clears the layout.

public boolean equals (Object obj)

Tests this arrangement for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

Protected Methods

protected Size2D arrangeFF (BlockContainer container, Graphics2D g2, RectangleConstraint constraint)

Arranges the items within a container.

Parameters
container the container.
g2 the graphics device.
constraint the constraint.
Returns
  • The container size after the arrangement.

protected Size2D arrangeFN (BlockContainer container, Graphics2D g2, double width)

Arranges the container width a fixed width and no constraint on the height.

Parameters
container the container.
g2 the graphics device.
width the fixed width.
Returns
  • The container size after arranging the contents.

protected Size2D arrangeFR (BlockContainer container, Graphics2D g2, RectangleConstraint constraint)

Performs an arrangement with a fixed width and a range for the height.

Parameters
container the container.
g2 the graphics device.
constraint the constraint.
Returns
  • The container size after the arrangement.

protected Size2D arrangeNN (BlockContainer container, Graphics2D g2)

Performs an arrangement without constraints.

Parameters
container the container.
g2 the graphics device.
Returns
  • The container size after the arrangement.

protected Size2D arrangeRR (BlockContainer container, Range widthRange, Range heightRange, Graphics2D g2)

Performs an arrangement with range constraints on both the vertical and horizontal sides.

Parameters
container the container.
widthRange the allowable range for the container width.
heightRange the allowable range for the container height.
g2 the graphics device.
Returns
  • The container size.