| Method from org.jfree.chart.block.ColorBlock Detail: |
public Size2D arrange(Graphics2D g2,
RectangleConstraint constraint) {
return new Size2D(calculateTotalWidth(getWidth()),
calculateTotalHeight(getHeight()));
}
Arranges the contents of the block, within the given constraints, and
returns the block size. |
public void draw(Graphics2D g2,
Rectangle2D area) {
area = trimMargin(area);
drawBorder(g2, area);
area = trimBorder(area);
area = trimPadding(area);
g2.setPaint(this.paint);
g2.fill(area);
}
|
public Object draw(Graphics2D g2,
Rectangle2D area,
Object params) {
draw(g2, area);
return null;
}
Draws the block within the specified area. |
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ColorBlock)) {
return false;
}
ColorBlock that = (ColorBlock) obj;
if (!PaintUtilities.equal(this.paint, that.paint)) {
return false;
}
return super.equals(obj);
}
Tests this block for equality with an arbitrary object. |
public Paint getPaint() {
return this.paint;
}
|