Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| # Header And More
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`BorderArrangement()` Creates a new instance.

Method Summary
`void` | `add(Block block, java.lang.Object key)` Adds a block to the arrangement manager at the specified edge.
`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.
`protected org.jfree.ui.Size2D` | `arrangeFF(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)` Arranges the items within a container.
`protected org.jfree.ui.Size2D` | `arrangeFN(BlockContainer container, java.awt.Graphics2D g2, double width)` Arranges the container width a fixed width and no constraint on the height.
`protected org.jfree.ui.Size2D` | `arrangeFR(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)` Performs an arrangement with a fixed width and a range for the height.
`protected org.jfree.ui.Size2D` | `arrangeNN(BlockContainer container, java.awt.Graphics2D g2)` Performs an arrangement without constraints.
`protected org.jfree.ui.Size2D` | `arrangeRR(BlockContainer container, Range widthRange, Range heightRange, java.awt.Graphics2D g2)` Performs an arrangement with range constraints on both the vertical and horizontal sides.
`void` | `clear()` Clears the layout.
`boolean` | `equals(java.lang.Object obj)` Tests this arrangement for equality with an arbitrary object.

Methods inherited from class java.lang.Object
`clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BorderArrangement

    public BorderArrangement()

  Creates a new instance.

Method Detail

### add

    public void add(Block block,
                    java.lang.Object key)

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

  Specified by:
    `add` in interface `Arrangement`
  Parameters:
    `block` - the block (`null` permitted).
    `key` - the edge (an instance of `RectangleEdge`) or `null` for 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:
    `arrange` in interface `Arrangement`
  Parameters:
    `container` - the container.
    `g2` - the graphics device.
    `constraint` - the constraint.
  Returns:
    The block size.

### arrangeNN

    protected org.jfree.ui.Size2D arrangeNN(BlockContainer container,
                                            java.awt.Graphics2D g2)

  Performs an arrangement without constraints.

  Parameters:
    `container` - the container.
    `g2` - the graphics device.
  Returns:
    The container size after the arrangement.

### arrangeFR

    protected org.jfree.ui.Size2D arrangeFR(BlockContainer container,
                                            java.awt.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.

### arrangeFN

    protected org.jfree.ui.Size2D arrangeFN(BlockContainer container,
                                            java.awt.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.

### arrangeRR

    protected org.jfree.ui.Size2D arrangeRR(BlockContainer container,
                                            Range widthRange,
                                            Range heightRange,
                                            java.awt.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.

### arrangeFF

    protected org.jfree.ui.Size2D arrangeFF(BlockContainer container,
                                            java.awt.Graphics2D g2,
                                            RectangleConstraint constraint)

  Arranges the items within a container.

  Parameters:
    `container` - the container.
    `constraint` - the constraint.
    `g2` - the graphics device.
  Returns:
    The container size after the arrangement.

### clear

    public void clear()

  Clears the layout.

  Specified by:
    `clear` in interface `Arrangement`

### equals

    public boolean equals(java.lang.Object obj)

  Tests this arrangement for equality with an arbitrary object.

  Overrides:
    `equals` in class `java.lang.Object`
  Parameters:
    `obj` - the object (`null` permitted).
  Returns:
    A boolean.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| # Footer And More
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.