public class EmptyBlock extends AbstractBlock implements Block, Cloneable, PublicCloneable, Serializable
Constructor and Description |
---|
EmptyBlock(double width,
double height)
Creates a new block with the specified width and height.
|
Modifier and Type | Method and Description |
---|---|
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.
|
arrange, calculateTotalHeight, calculateTotalWidth, drawBorder, equals, getBounds, getContentXOffset, getContentYOffset, getFrame, getHeight, getID, getMargin, getPadding, getWidth, setBorder, setBounds, setFrame, setHeight, setID, setMargin, setMargin, setPadding, setPadding, setWidth, toContentConstraint, trimBorder, trimMargin, trimPadding, trimToContentHeight, trimToContentWidth
public EmptyBlock(double width, double height)
width
- the width.height
- the height.public Size2D arrange(Graphics2D g2, RectangleConstraint constraint)
arrange
in interface Block
arrange
in class AbstractBlock
g2
- the graphics device.constraint
- the constraint (null
not permitted).null
).public void draw(Graphics2D g2, Rectangle2D area)
public Object draw(Graphics2D g2, Rectangle2D area, Object params)
public Object clone() throws CloneNotSupportedException
clone
in interface PublicCloneable
clone
in class AbstractBlock
CloneNotSupportedException
- if there is a problem cloning.Copyright © 2001–2017 JFree.org. All rights reserved.