Back to index

wims  3.65+svn20090927
Public Member Functions | Public Attributes | Static Public Attributes | Package Attributes
rene.zirkel.graphics.PolygonDrawer Class Reference
Collaboration diagram for rene.zirkel.graphics.PolygonDrawer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PolygonDrawer (MyGraphics g, ConstructionObject o)
void startPolygon (double c, double r)
void drawTo (double c, double r, boolean dodraw)
void drawTo (double c, double r)
void finishPolygon ()
boolean hasStarted ()
double c ()
double r ()
void useAsMarker ()

Public Attributes

boolean Marker = false
boolean Started

Static Public Attributes

static int step = 9

Package Attributes

MyGraphics G
ConstructionObject O
double C
double R
double C1
double R1
boolean HaveToFinish
boolean Solid

Detailed Description

Author:
Rene

Definition at line 13 of file PolygonDrawer.java.


Constructor & Destructor Documentation

Definition at line 24 of file PolygonDrawer.java.

       {      G=g; O=o;
              Started=false;
       }

Member Function Documentation

Definition at line 69 of file PolygonDrawer.java.

       {      return C;
       }

Here is the caller graph for this function:

void rene.zirkel.graphics.PolygonDrawer.drawTo ( double  c,
double  r,
boolean  dodraw 
) [inline]

Definition at line 35 of file PolygonDrawer.java.

       {      if (!Started)
              {      startPolygon(c,r);
                     return;
              }
              if (dodraw || (c-C)*(c-C)+(r-R)*(r-R)>step)
              {      if (Marker) ((MyGraphics13)G).drawMarkerLine(C,R,c,r);
                     else G.drawLine(C,R,c,r,O);
                     C=c; R=r;
                     HaveToFinish=false;
              }
              else
              {      C1=c; R1=r;
                     HaveToFinish=true;
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.zirkel.graphics.PolygonDrawer.drawTo ( double  c,
double  r 
) [inline]

Definition at line 52 of file PolygonDrawer.java.

       {      drawTo(c,r,false);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 56 of file PolygonDrawer.java.

       {      if (HaveToFinish)
              {      if (Marker) ((MyGraphics13)G).drawMarkerLine(C,R,C1,R1);
                     else G.drawLine(C,R,C1,R1,O);
                     HaveToFinish=false;
              }      
              Started=false;
       }

Here is the caller graph for this function:

Definition at line 65 of file PolygonDrawer.java.

       {      return Started;
       }

Here is the caller graph for this function:

Definition at line 73 of file PolygonDrawer.java.

       {      return R;
       }

Here is the caller graph for this function:

void rene.zirkel.graphics.PolygonDrawer.startPolygon ( double  c,
double  r 
) [inline]

Definition at line 29 of file PolygonDrawer.java.

       {      C=c; R=r;
              HaveToFinish=false;
              Started=true;
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 77 of file PolygonDrawer.java.

       {      Marker=true;
              step=18;
       }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 16 of file PolygonDrawer.java.

Definition at line 17 of file PolygonDrawer.java.

Definition at line 14 of file PolygonDrawer.java.

Definition at line 18 of file PolygonDrawer.java.

Definition at line 20 of file PolygonDrawer.java.

Definition at line 15 of file PolygonDrawer.java.

Definition at line 16 of file PolygonDrawer.java.

Definition at line 17 of file PolygonDrawer.java.

Definition at line 22 of file PolygonDrawer.java.

Definition at line 21 of file PolygonDrawer.java.

Definition at line 19 of file PolygonDrawer.java.


The documentation for this class was generated from the following file: