case RENDERTYPE_OFFSET:
if (!proj.isPlotable(center)) {
setNeedToRegenerate(true);//HMMM not the best flag
return false;
}
Point p1 = proj.forward(center.radlat_,
center.radlon_,
new Point(),
true);
x1 = p1.x + off_x;
y1 = p1.y + off_y;
case RENDERTYPE_XY:
float fwidth = (float) width;
float fheight = (float) height;
float transx = (float) x1;
float transy = (float) y1;
float x = transx - fwidth / 2f;
float y = transy - fheight / 2f;
Shape arcShape = createArcShape(x, y, fwidth, fheight);
if (rotationAngle != DEFAULT_ROTATIONANGLE) {
af = new AffineTransform();
af.rotate(rotationAngle, transx, transy);
}
pi = arcShape.getPathIterator(af);
gp = new GeneralPath();
gp.append(pi, false);
// In X/Y or Offset RenderType, there is only one shape.
setShape(gp);
break;
case RENDERTYPE_LATLON:
ArrayList coordLists = getCoordLists(proj, center, radius, nverts);
Point p = proj.forward(center.radlat_,
center.radlon_,
new Point(),
true);
x1 = p.x;
y1 = p.y;
int size = coordLists.size();