jfig.objects
Class AWTSplineRenderer

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

public class AWTSplineRenderer
extends java.lang.Object
implements FigRenderer

AWT 1.1 renderer for quadratic approximated spline objects.

Parts of the following code were translated directly from the xfig (version 3.1.3) code of w_spline.c. That part of the code is protected by the following copyright conditions: FIG : Facility for Interactive Generation of figures Copyright (c) 1985 by Supoj Sutanthavibul Parts Copyright (c) 1994 by Brian V. Smith Parts Copyright (c) 1991 by Paul King


Field Summary
(package private)  FigArrow b_arrow
           
(package private)  FigArrow f_arrow
           
(package private)  FigSpline spline
           
(package private)  long timestamp
           
(package private)  java.awt.Point[] wcp
           
(package private)  java.awt.Point[] wcp_spline
           
(package private)  FillWrapper wfill
           
(package private)  LineWrapper wspline
           
 
Constructor Summary
AWTSplineRenderer(FigSpline spline)
           
 
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

FigSpline spline

wcp_spline

java.awt.Point[] wcp_spline

wcp

java.awt.Point[] wcp

wspline

LineWrapper wspline

wfill

FillWrapper wfill

f_arrow

FigArrow f_arrow

b_arrow

FigArrow b_arrow

timestamp

long timestamp
Constructor Detail

AWTSplineRenderer

public AWTSplineRenderer(FigSpline spline)
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