public void layout() {
// No-op
}
public void paint(Graphics2D graphics) {
Rollup rollup = (Rollup)TerraRollupSkin.this.getComponent();
graphics.setStroke(new BasicStroke(0));
graphics.setPaint(buttonColor);
graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
if (rollup.getContent() == null && useBullet) {
// Paint the bullet
RoundRectangle2D.Double shape = new RoundRectangle2D.Double(1, 1, 4, 4, 2, 2);
graphics.draw(shape);
graphics.fill(shape);
} else if (rollup.isExpanded()) {
// Paint the collapse image
int[] xPoints = {0, 3, 6};
int[] yPoints = {0, 6, 0};
graphics.fillPolygon(xPoints, yPoints, 3);
graphics.drawPolygon(xPoints, yPoints, 3);