java.lang.Object | |
↳ | org.jfree.chart.block.CenterArrangement |
Arranges a block in the center of its container. This class is immutable.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a block to be managed by this instance.
| |||||||||||
Calculates and sets the bounds of all the items in the specified
container, subject to the given constraint.
| |||||||||||
Clears any cached information.
| |||||||||||
Tests this instance for equality with an arbitrary object.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Arranges the blocks in the container with the overall height and width
specified as fixed constraints.
| |||||||||||
Arranges the blocks in the container with a fixed width and no height
constraint.
| |||||||||||
Arranges the blocks in the container with a fixed with and a range
constraint on the height.
| |||||||||||
Arranges the blocks with no width constraint and a fixed height
constraint.
| |||||||||||
Arranges the blocks without any constraints.
| |||||||||||
Arranges the blocks in the container with a range constraint on the
width and a fixed height.
| |||||||||||
Arranges the block with a range constraint on the width, and no
constraint on the height.
| |||||||||||
Arranges the blocks with the overall width and height to fit within
specified ranges.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new instance.
Adds a block to be managed by this instance. This method is usually
called by the BlockContainer
, you shouldn't need to call it
directly.
block | the block. |
---|---|
key | a key that controls the position of the block. |
Calculates and sets the bounds of all the items in the specified
container, subject to the given constraint. The Graphics2D
can be used by some items (particularly items containing text) to
calculate sizing parameters.
container | the container whose items are being arranged. |
---|---|
g2 | the graphics device. |
constraint | the size constraint. |
Clears any cached information.
Tests this instance for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Arranges the blocks in the container with the overall height and width specified as fixed constraints.
container | the container. |
---|---|
g2 | the graphics device. |
constraint | the constraint. |
Arranges the blocks in the container with a fixed width and no height constraint.
container | the container. |
---|---|
g2 | the graphics device. |
constraint | the constraint. |
Arranges the blocks in the container with a fixed with and a range constraint on the height.
container | the container. |
---|---|
g2 | the graphics device. |
constraint | the constraint. |
Arranges the blocks with no width constraint and a fixed height constraint. This puts all blocks into a single row.
container | the container. |
---|---|
g2 | the graphics device. |
constraint | the constraint. |
Arranges the blocks without any constraints. This puts all blocks into a single row.
container | the container. |
---|---|
g2 | the graphics device. |
Arranges the blocks in the container with a range constraint on the width and a fixed height.
container | the container. |
---|---|
g2 | the graphics device. |
constraint | the constraint. |
Arranges the block with a range constraint on the width, and no constraint on the height.
container | the container. |
---|---|
g2 | the graphics device. |
constraint | the constraint. |
Arranges the blocks with the overall width and height to fit within specified ranges.
container | the container. |
---|---|
g2 | the graphics device. |
constraint | the constraint. |