org.jfree.chart.block
public class EmptyBlock extends AbstractBlock implements Block, Cloneable, PublicCloneable, Serializable
| Constructor Summary | |
|---|---|
| EmptyBlock(double width, double height)
Creates a new block with the specified width and height.
| |
| Method Summary | |
|---|---|
| Size2D | arrange(Graphics2D g2, RectangleConstraint constraint)
Arranges the contents of the block, within the given constraints, and
returns the block size.
|
| Object | clone()
Returns a clone of the block.
|
| void | draw(Graphics2D g2, Rectangle2D area)
Draws the block. |
| Object | draw(Graphics2D g2, Rectangle2D area, Object params)
Draws the block within the specified area. |
Parameters: width the width. height the height.
Parameters: g2 the graphics device. constraint the constraint (null not permitted).
Returns: The block size (in Java2D units, never null).
Returns: A clone.
Throws: CloneNotSupportedException if there is a problem cloning.
Parameters: g2 the graphics device. area the area.
Parameters: g2 the graphics device. area the area. params ignored (null permitted).
Returns: Always null.