jfig.objects
Class AWTEllipseRenderer
java.lang.Object
jfig.objects.AWTEllipseRenderer
- All Implemented Interfaces:
- FigRenderer
- public class AWTEllipseRenderer
- extends java.lang.Object
- implements FigRenderer
AWT 1.1 renderer for FIG circle and ellipse objects.
In order to render as many FIG object attributes as possible, we don't
call the AWT drawEllipse method, which also does not support rotated
ellipses. Instead, we use a polyline approximation to the circle and
ellipse, which allows us to at least suppport either thick (>1 pixel wide)
line styles, or dash/dotted line style. As circles and ellipses are
usually rare objects, this should not be a performance problem.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ellipse
FigEllipse ellipse
wcp_ellipse
java.awt.Point[] wcp_ellipse
wcp
java.awt.Point[] wcp
wellipse
LineWrapper wellipse
wfill
FillWrapper wfill
timestamp
long timestamp
AWTEllipseRenderer
public AWTEllipseRenderer(FigEllipse ellipse)
rebuild
public void rebuild()
- Specified by:
rebuild
in interface FigRenderer
paint
public void paint(java.awt.Graphics g)
- Specified by:
paint
in interface FigRenderer
paint
public void paint(java.awt.Graphics g,
FigTrafo2D trafo)
- Specified by:
paint
in interface FigRenderer