An empty block with a fixed size.
| Method from org.jfree.chart.block.EmptyBlock Detail: |
public Size2D arrange(Graphics2D g2,
RectangleConstraint constraint) {
Size2D base = new Size2D(calculateTotalWidth(getWidth()),
calculateTotalHeight(getHeight()));
return constraint.calculateConstrainedSize(base);
}
Arranges the contents of the block, within the given constraints, and
returns the block size. |
public Object clone() throws CloneNotSupportedException {
return super.clone();
}
Returns a clone of the block. |
public void draw(Graphics2D g2,
Rectangle2D area) {
draw(g2, area, null);
}
Draws the block. Since the block is empty, there is nothing to draw
except the optional border. |
public Object draw(Graphics2D g2,
Rectangle2D area,
Object params) {
area = trimMargin(area);
drawBorder(g2, area);
return null;
}
Draws the block within the specified area. Since the block is empty,
there is nothing to draw except the optional border. |