jfig.objects
Class AWTEllipseRenderer

java.lang.Object
  extended byjfig.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.


Field Summary
(package private)  FigEllipse ellipse
           
(package private)  long timestamp
           
(package private)  java.awt.Point[] wcp
           
(package private)  java.awt.Point[] wcp_ellipse
           
(package private)  LineWrapper wellipse
           
(package private)  FillWrapper wfill
           
 
Constructor Summary
AWTEllipseRenderer(FigEllipse ellipse)
           
 
Method Summary
 void paint(java.awt.Graphics g)
           
 void paint(java.awt.Graphics g, FigTrafo2D trafo)
           
 void rebuild()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ellipse

FigEllipse ellipse

wcp_ellipse

java.awt.Point[] wcp_ellipse

wcp

java.awt.Point[] wcp

wellipse

LineWrapper wellipse

wfill

FillWrapper wfill

timestamp

long timestamp
Constructor Detail

AWTEllipseRenderer

public AWTEllipseRenderer(FigEllipse ellipse)
Method Detail

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