jfig.objects
Class AWTPolylineRenderer

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

public class AWTPolylineRenderer
extends java.lang.Object
implements FigRenderer

AWT 1.1 based renderer for n-points polyline objects.

AWTPolylineRenderer renders the basic FIG polyline 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)  FigPolyline polyline
           
(package private)  long timestamp
           
(package private)  FillWrapper wfill
           
(package private)  LineWrapper wline
           
 
Constructor Summary
AWTPolylineRenderer(FigPolyline polyline)
          default constructor: a polyline 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

polyline

FigPolyline polyline

wline

LineWrapper wline

wfill

FillWrapper wfill

b_arrow

FigArrow b_arrow

f_arrow

FigArrow f_arrow

timestamp

long timestamp
Constructor Detail

AWTPolylineRenderer

public AWTPolylineRenderer(FigPolyline polyline)
default constructor: a polyline 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