jfig.objects
Class AWTXSplineRenderer

java.lang.Object
  extended byjfig.objects.AWTXSplineRenderer
All Implemented Interfaces:
FigRenderer

public class AWTXSplineRenderer
extends java.lang.Object
implements FigRenderer

AWT 1.1 based renderer for n-points spline objects.

AWTXSplineRenderer renders the basic FIG spline objects for jfig. However, due to AWT restrictions, not all attributes are displayed correctly. While line-thickness and dot/dash attributes are kept internally, only thickness or dots/dashes are displayed, but not both.


Field Summary
(package private)  FigArrow b_arrow
           
(package private)  FigArrow f_arrow
           
(package private)  FigXSpline spline
           
(package private)  long timestamp
           
(package private)  FillWrapper wfill
           
(package private)  LineWrapper wline
           
 
Constructor Summary
AWTXSplineRenderer(FigXSpline spline)
          default constructor: a spline with default attributes at (0,0) Default drawing Color is black, no fill.
 
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

spline

FigXSpline spline

wline

LineWrapper wline

wfill

FillWrapper wfill

b_arrow

FigArrow b_arrow

f_arrow

FigArrow f_arrow

timestamp

long timestamp
Constructor Detail

AWTXSplineRenderer

public AWTXSplineRenderer(FigXSpline spline)
default constructor: a spline with default attributes at (0,0) Default drawing Color is black, no fill.

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