// No-op
}
@Override
public void paint(Graphics2D graphics) {
Meter meter = (Meter)getComponent();
int width = getWidth();
int height = getHeight();
graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
if (FONT_RENDER_CONTEXT.isAntiAliased()) {
graphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
Platform.getTextAntialiasingHint());
}
if (FONT_RENDER_CONTEXT.usesFractionalMetrics()) {
graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
RenderingHints.VALUE_FRACTIONALMETRICS_ON);
}
if (meter.getOrientation() == Orientation.HORIZONTAL) {
drawMeter(meter, graphics, width, height);
} else {
graphics.rotate(-Math.PI / 2d);
graphics.translate(-height, 0);
drawMeter(meter, graphics, height, width);