Rectangle2D arcRectInner = DialPlot.rectangleByRadius(frame,
this.getInnerRadius(), this.getInnerRadius());
Rectangle2D arcRectOuter = DialPlot.rectangleByRadius(frame,
this.getOuterRadius(), this.getOuterRadius());
DialScale scale = plot.getScale(this.getScaleIndex());
if (scale == null) {
throw new RuntimeException("No scale for scaleIndex = "
+ this.getScaleIndex());
}
double angleMin = scale.valueToAngle(this.getLowerBound());
double angleMax = scale.valueToAngle(this.getUpperBound());
Arc2D arcInner = new Arc2D.Double(arcRectInner, angleMin,
angleMax - angleMin, Arc2D.OPEN);
Arc2D arcOuter = new Arc2D.Double(arcRectOuter, angleMax,
angleMin - angleMax, Arc2D.OPEN);