if (area instanceof Ellipse2D)
{
final Ellipse2D ellipse2D = (Ellipse2D) area;
if (ellipse2D.getWidth() == ellipse2D.getHeight())
{
return new CircleImageMapEntry((float) (ellipse2D.getCenterX() + dataArea.getX()),
(float) (ellipse2D.getCenterY() + dataArea.getY()), (float) (ellipse2D.getWidth() / 2));
}
}
else if (area instanceof Rectangle2D)
{
final Rectangle2D rect = (Rectangle2D) area;
return (new RectangleImageMapEntry((float) (rect.getX() + dataArea.getX()),
(float) (rect.getY() + dataArea.getY()),
(float) (rect.getX() + rect.getWidth()),
(float) (rect.getY() + rect.getHeight())));
}
}
else
{
if (area instanceof Ellipse2D)
{
final Ellipse2D ellipse2D = (Ellipse2D) area;
if (ellipse2D.getWidth() == ellipse2D.getHeight())
{
return new CircleImageMapEntry((float) (ellipse2D.getCenterX()),
(float) (ellipse2D.getCenterY()), (float) (ellipse2D.getWidth() / 2));
}
}
else if (area instanceof Rectangle2D)
{