public class EmptyBlock extends AbstractBlock implements Block, Cloneable, org.jfree.util.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 |
|---|---|
org.jfree.ui.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, getBorder, getBounds, getContentXOffset, getContentYOffset, getFrame, getHeight, getID, getMargin, getPadding, getWidth, setBorder, setBorder, setBounds, setFrame, setHeight, setID, setMargin, setMargin, setPadding, setPadding, setWidth, toContentConstraint, trimBorder, trimMargin, trimPadding, trimToContentHeight, trimToContentWidthpublic EmptyBlock(double width,
double height)
width - the width.height - the height.public org.jfree.ui.Size2D arrange(Graphics2D g2, RectangleConstraint constraint)
arrange in interface Blockarrange in class AbstractBlockg2 - the graphics device.constraint - the constraint (null not permitted).null).public void draw(Graphics2D g2, Rectangle2D area)
draw in interface org.jfree.ui.Drawableg2 - the graphics device.area - the area.public Object draw(Graphics2D g2, Rectangle2D area, Object params)
public Object clone() throws CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractBlockCloneNotSupportedException - if there is a problem cloning.Copyright © 2001–2014 JFree.org. All rights reserved.