Back to index

wims  3.65+svn20090927
Public Member Functions | Package Attributes | Static Package Attributes
rene.zirkel.graphics.MyGraphicsSvg Class Reference

This is the Graphics class, you need to implement. More...

Inheritance diagram for rene.zirkel.graphics.MyGraphicsSvg:
Inheritance graph
[legend]
Collaboration diagram for rene.zirkel.graphics.MyGraphicsSvg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MyGraphicsSvg (PrintWriter out, int w, int h)
void close ()
void setColor (Color c)
void setFillcolor (Color c)
void setColor (ConstructionObject o)
void setFillColor (ConstructionObject o)
void setLabelColor (ConstructionObject o)
void clearRect (int x, int y, int w, int h, Color c)
void drawRect (double x, double y, double w, double h)
String rgb ()
String frgb ()
void drawLine (double x, double y, double x1, double y1)
void drawThickLine (double x, double y, double x1, double y1)
void drawLine (double x, double y, double x1, double y1, ConstructionObject o)
void drawArc (double x, double y, double w, double h, double a, double b)
void drawArc (double x, double y, double w, double h, double a, double b, ConstructionObject o)
FontMetrics getFontMetrics ()
void drawString (String s, double x, double y)
void drawOval (double x, double y, double w, double h)
void drawOval (double x, double y, double w, double h, ConstructionObject o)
void fillRect (double x, double y, double w, double h, boolean outline, boolean transparent, ConstructionObject o)
void fillArc (double x, double y, double w, double h, double a, double b, boolean outline, boolean transparent, boolean arc, ConstructionObject o)
void fillOval (double x, double y, double w, double h, boolean outline, boolean transparent, ConstructionObject o)
void fillPolygon (double x[], double y[], int n, boolean outline, boolean transparent, ConstructionObject o)
void drawImage (Image i, int x, int y, ImageObserver o)
void drawImage (Image i, int x, int y, int w, int h, ImageObserver o)
void setFont (int h, boolean bold)
void setDefaultFont (int h, boolean large, boolean bold)
void setFont (boolean large, boolean bold)
void drawImage (Image i, double x, double y, double x1, double y1, double x2, double y2, ImageObserver o)
Graphics getGraphics ()
int stringWidth (String s)
int stringHeight (String s)
int drawStringExtended (String s, double x, double y)
int stringAscent (String s)
void setSize (double w, double h)
void drawCircleArc (double x, double y, double r, double a, double b, ConstructionObject o)
void drawCircle (double x, double y, double r, ConstructionObject o)

Package Attributes

int W
int H
PrintWriter Out
int Stroke = STROKE_NORMAL
Color col
Color fillcol
SvgFontMetrics MFM = new SvgFontMetrics()
int yoffset = 6000
int FontH = 12
SVGWriter svg
int fsize
boolean flarge
boolean fbold
int ffactor = Global.getParameter("ffactor",130)

Static Package Attributes

static final int STROKE_NORMAL = 0
static final int STROKE_THIN = 1
static final int STROKE_THICK = 2
static final int STYLE_NORMAL = 0
static final int STYLE_THIN = 1
static final int STYLE_THICK = 0

Detailed Description

This is the Graphics class, you need to implement.

Definition at line 35 of file MyGraphicsSvg.java.


Constructor & Destructor Documentation

rene.zirkel.graphics.MyGraphicsSvg.MyGraphicsSvg ( PrintWriter  out,
int  w,
int  h 
) [inline]

Definition at line 49 of file MyGraphicsSvg.java.

       {      svg=new SVGWriter(out);
              svg.startSVG(w,h);
              W=w; H=h; 
       }

Member Function Documentation

void rene.zirkel.graphics.MyGraphicsSvg.clearRect ( int  x,
int  y,
int  w,
int  h,
Color  c 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 124 of file MyGraphicsSvg.java.

{}

Definition at line 55 of file MyGraphicsSvg.java.

       {      svg.endTagNewLine("svg");
       }
void rene.zirkel.graphics.MyGraphicsSvg.drawArc ( double  x,
double  y,
double  w,
double  h,
double  a,
double  b 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 183 of file MyGraphicsSvg.java.

       {      double x0=Math.round(x+w/2.0+w*Math.cos(a/180*Math.PI)/2);
              double y0=Math.round(y+h/2.0-h*Math.sin(a/180*Math.PI)/2);
              double x1=Math.round(x+w/2.0+w*Math.cos((a+b)/180*Math.PI)/2);
              double y1=Math.round(y+h/2.0-h*Math.sin((a+b)/180*Math.PI)/2);
              int f=0;
              if (b>180) f=1;
              svg.startTagStart("path");
              svg.printArg("d","M "+x0+" "+y0+" A "+(w/2)+" "+(h/2)+" 0 "+f+" 0 "+x1+" "+y1);
              svg.printArg("style","stroke:"+rgb()+";stroke-width:1;fill:none");
              svg.finishTagNewLine();
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.drawArc ( double  x,
double  y,
double  w,
double  h,
double  a,
double  b,
ConstructionObject  o 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 196 of file MyGraphicsSvg.java.

       {      w=w/2; h=h/2; x+=w; y+=h;
              double x0=Math.round(x+w*Math.cos(a/180*Math.PI));
              double y0=Math.round(y-h*Math.sin(a/180*Math.PI));
              double x1=Math.round(x+w*Math.cos((a+b)/180*Math.PI));
              double y1=Math.round(y-h*Math.sin((a+b)/180*Math.PI));
              int f=0;
              if (b>180) f=1;
              svg.startTagStart("path");
              svg.printArg("d","M "+x0+" "+y0+" A "+w+" "+h+" 0 "+f+" 0 "+x1+" "+y1);
              switch (Stroke)             
              {      case STROKE_NORMAL :
                            svg.printArg("style","stroke:"+rgb()+";stroke-width:1;fill:none");
                            break;
                     case STROKE_THICK :
                            svg.printArg("style","stroke:"+rgb()+";stroke-width:3;fill:none");
                            break;
                     case STROKE_THIN :
                            svg.printArg("style","stroke:"+rgb()+";stroke-width:1;fill:none;stroke-dasharray:5,5");
                            break;
              }
              svg.finishTagNewLine();
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphics.drawCircle ( double  x,
double  y,
double  r,
ConstructionObject  o 
) [inline, inherited]

Reimplemented in rene.zirkel.graphics.MyGraphics13.

Definition at line 33 of file MyGraphics.java.

       {      drawOval(x-r,y-r,2*r,2*r,o);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.zirkel.graphics.MyGraphics.drawCircleArc ( double  x,
double  y,
double  r,
double  a,
double  b,
ConstructionObject  o 
) [inline, inherited]

Reimplemented in rene.zirkel.graphics.MyGraphics13.

Definition at line 25 of file MyGraphics.java.

       {      drawArc(x-r,y-r,2*r,2*r,a,b,o);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.drawImage ( Image  i,
int  x,
int  y,
ImageObserver  o 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 379 of file MyGraphicsSvg.java.

       {
       }
void rene.zirkel.graphics.MyGraphicsSvg.drawImage ( Image  i,
int  x,
int  y,
int  w,
int  h,
ImageObserver  o 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 382 of file MyGraphicsSvg.java.

       {
       }
void rene.zirkel.graphics.MyGraphicsSvg.drawImage ( Image  i,
double  x,
double  y,
double  x1,
double  y1,
double  x2,
double  y2,
ImageObserver  o 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 407 of file MyGraphicsSvg.java.

       {
       }
void rene.zirkel.graphics.MyGraphicsSvg.drawLine ( double  x,
double  y,
double  x1,
double  y1 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 143 of file MyGraphicsSvg.java.

       {      svg.startTagStart("line");
              svg.printArg("x1",""+x);
              svg.printArg("y1",""+y);
              svg.printArg("x2",""+x1);
              svg.printArg("y2",""+y1);
              switch (Stroke)             
              {      case STROKE_NORMAL :
                            svg.printArg("style","stroke:"+rgb()+";stroke-width:1");
                            break;
                     case STROKE_THICK :
                            svg.printArg("style","stroke:"+rgb()+";stroke-width:3");
                            break;
                     case STROKE_THIN :
                            svg.printArg("style","stroke:"+rgb()+";stroke-width:1;fill:none;stroke-dasharray:5,5");
                            break;
              }
              svg.finishTagNewLine();
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.drawLine ( double  x,
double  y,
double  x1,
double  y1,
ConstructionObject  o 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 173 of file MyGraphicsSvg.java.

       {      svg.startTagStart("line");
              svg.printArg("x1",""+x);
              svg.printArg("y1",""+y);
              svg.printArg("x2",""+x1);
              svg.printArg("y2",""+y1);
              svg.printArg("style","stroke:"+rgb()+";stroke-width:1");
              svg.finishTagNewLine();
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.drawOval ( double  x,
double  y,
double  w,
double  h 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 236 of file MyGraphicsSvg.java.

       {      svg.startTagStart("ellipse");
              w=w/2; h=h/2; x+=w; y+=h;
              svg.printArg("cx",""+x);
              svg.printArg("cy",""+y);
              svg.printArg("rx",""+w);
              svg.printArg("ry",""+h);
              svg.printArg("style","stroke:"+rgb()+";stroke-width:1;fill:none");
              svg.finishTagNewLine();
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.drawOval ( double  x,
double  y,
double  w,
double  h,
ConstructionObject  o 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 247 of file MyGraphicsSvg.java.

       {      svg.startTagStart("ellipse");
              w=w/2; h=h/2; x+=w; y+=h;
              svg.printArg("cx",""+x);
              svg.printArg("cy",""+y);
              svg.printArg("rx",""+w);
              svg.printArg("ry",""+h);
              switch (Stroke)             
              {      case STROKE_NORMAL :
                            svg.printArg("style","stroke:"+rgb()+";fill:none;stroke-width:1");
                            break;
                     case STROKE_THICK :
                            svg.printArg("style","stroke:"+rgb()+";fill:none;stroke-width:3");
                            break;
                     case STROKE_THIN :
                            svg.printArg("style","stroke:"+rgb()+";stroke-width:1;fill:none;stroke-dasharray:5,5");
                            break;
              }
              svg.finishTagNewLine();
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.drawRect ( double  x,
double  y,
double  w,
double  h 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 126 of file MyGraphicsSvg.java.

       {      svg.startTagStart("path");
              w--; h--;
              svg.printArg("d","M "+x+" "+y+" H "+(x+w)+
                     " V "+(y+h)+" H "+x+" Z");
              svg.printArg("style","fill:none;stroke:"+rgb()+";stroke-width:1");
              svg.finishTagNewLine();     
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.drawString ( String  s,
double  x,
double  y 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 225 of file MyGraphicsSvg.java.

       {      svg.startTagStart("text");
              svg.printArg("x",""+x);
              svg.printArg("y",""+(y+10));
              svg.printArg("style","font-size:"+FontH+";fill:"+rgb()+";font-weight:"+
                     (Global.getParameter("font.bold",false)?"gold":"normal"));
              svg.startTagEnd();
              svg.print(s);
              svg.endTag("text");
       }

Here is the call graph for this function:

Here is the caller graph for this function:

int rene.zirkel.graphics.MyGraphicsSvg.drawStringExtended ( String  s,
double  x,
double  y 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 424 of file MyGraphicsSvg.java.

       {      drawString(s,x,y+getFontMetrics().getAscent());
              return getFontMetrics().getHeight(); 
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.drawThickLine ( double  x,
double  y,
double  x1,
double  y1 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 163 of file MyGraphicsSvg.java.

       {      svg.startTagStart("line");
              svg.printArg("x1",""+x);
              svg.printArg("y1",""+y);
              svg.printArg("x2",""+x1);
              svg.printArg("y2",""+y1);
              svg.printArg("style","stroke:"+rgb()+";stroke-width:3");
              svg.finishTagNewLine();
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.fillArc ( double  x,
double  y,
double  w,
double  h,
double  a,
double  b,
boolean  outline,
boolean  transparent,
boolean  arc,
ConstructionObject  o 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 279 of file MyGraphicsSvg.java.

       {      setFillColor(o);
              int x0=(int)(Math.round(x+w/2.0+w*Math.cos(a/180*Math.PI)/2));
              int y0=(int)(Math.round(y+h/2.0-h*Math.sin(a/180*Math.PI)/2));
              int x1=(int)(Math.round(x+w/2.0+w*Math.cos((a+b)/180*Math.PI)/2));
              int y1=(int)(Math.round(y+h/2.0-h*Math.sin((a+b)/180*Math.PI)/2));
              int f=0;
              if (b>180) f=1;
              svg.startTagStart("path");
              if (arc)
                     svg.printArg("d","M "+(x+w/2)+" "+(y+h/2)+
                            " L "+x0+" "+y0+
                            " A "+(w/2)+" "+(h/2)+" 0 "+f+" 0 "+x1+" "+y1+
                            " L "+(x+w/2)+" "+(y+h/2));
              else
                     svg.printArg("d",
                            "M "+x0+" "+y0+
                            " A "+(w/2)+" "+(h/2)+" 0 "+f+" 0 "+x1+" "+y1+
                            " L "+x0+" "+y0);                  
              switch (Stroke)             
              {      case STROKE_NORMAL :
                            svg.printArg("style","fill:"+frgb()+
                                   (transparent && !o.isSolid()?";fill-opacity:0.5":""));
                            break;
                     case STROKE_THICK :
                            svg.printArg("style","fill:"+frgb());
                            break;
                     case STROKE_THIN :
                            svg.printArg("style","fill:"+frgb()+
                                   (transparent && !o.isSolid()?";fill-opacity:0.5":""));
                            break;
              }
              svg.finishTagNewLine();
              if (outline)
              {      setColor(o);
                     drawArc(x,y,w,h,a,b);
              }
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.fillOval ( double  x,
double  y,
double  w,
double  h,
boolean  outline,
boolean  transparent,
ConstructionObject  o 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 319 of file MyGraphicsSvg.java.

       {      setFillColor(o);
              svg.startTagStart("ellipse");
              svg.printArg("cx",""+(x+w/2));
              svg.printArg("cy",""+(y+h/2));
              svg.printArg("rx",""+(w/2));
              svg.printArg("ry",""+(h/2));
              switch (Stroke)             
              {      case STROKE_NORMAL :
                            svg.printArg("style","fill:"+frgb()+
                                   (transparent && !o.isSolid()?";fill-opacity:0.5":""));
                            break;
                     case STROKE_THICK :
                            svg.printArg("style","fill:"+frgb());
                            break;
                     case STROKE_THIN :
                            svg.printArg("style","fill:"+frgb()+
                                   (transparent && !o.isSolid()?";fill-opacity:0.5":""));
                            break;
              }
              svg.finishTagNewLine();
              if (outline)
              {      setColor(o);
                     drawOval(x,y,w,h);
              }
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.fillPolygon ( double  x[],
double  y[],
int  n,
boolean  outline,
boolean  transparent,
ConstructionObject  o 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 347 of file MyGraphicsSvg.java.

       {      setFillColor(o);
              svg.startTagStart("path");
              String s="M "+x[0]+" "+y[0];
              for (int i=1; i<n; i++)
                     s=s+" L "+x[i]+" "+y[i];
              s=s+" L "+x[0]+" "+y[0];
              svg.printArg("d",s);
              switch (Stroke)             
              {      case STROKE_NORMAL :
                            svg.printArg("style","fill:"+frgb()+
                                   (transparent && !o.isSolid()?";fill-opacity:0.5":""));
                            break;
                     case STROKE_THICK :
                            svg.printArg("style","fill:"+frgb());
                            break;
                     case STROKE_THIN :
                            svg.printArg("style","fill:"+frgb()+
                                   (transparent && !o.isSolid()?";fill-opacity:0.5":""));
                            break;
              }
              svg.finishTagNewLine();
              if (outline)
              {      svg.startTagStart("path");
                     svg.printArg("d",s);
                     setColor(o);
                     svg.printArg("style","fill:none;stroke:"+rgb()+";stroke-width:1");
                     svg.finishTagNewLine();
              }
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.fillRect ( double  x,
double  y,
double  w,
double  h,
boolean  outline,
boolean  transparent,
ConstructionObject  o 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 269 of file MyGraphicsSvg.java.

       {      svg.startTagStart("path");
              w--; h--;
              svg.printArg("d","M "+x+" "+y+" H "+(x+w)+
                     " V "+(y+h)+" H "+x+" Z");
              svg.printArg("style","fill:"+rgb()+";stroke:"+rgb()+";stroke-width:1");
              svg.finishTagNewLine();     
       }

Here is the call graph for this function:

Definition at line 139 of file MyGraphicsSvg.java.

       {      return "rgb("+fillcol.getRed()+","+fillcol.getGreen()+","+fillcol.getBlue()+")";
       }

Here is the caller graph for this function:

FontMetrics rene.zirkel.graphics.MyGraphicsSvg.getFontMetrics ( ) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 221 of file MyGraphicsSvg.java.

       {      return MFM; 
       }

Here is the caller graph for this function:

Graphics rene.zirkel.graphics.MyGraphicsSvg.getGraphics ( ) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 412 of file MyGraphicsSvg.java.

                                     {
              return null;
       }

Definition at line 135 of file MyGraphicsSvg.java.

       {      return "rgb("+col.getRed()+","+col.getGreen()+","+col.getBlue()+")";
       }

Here is the caller graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.setColor ( Color  c) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 59 of file MyGraphicsSvg.java.

       {      col=c;
       }

Here is the caller graph for this function:

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 67 of file MyGraphicsSvg.java.

       {
              if (o.isJobTarget()) setColor(ZirkelFrame.TargetColor); 
              else if (o.selected()) setColor(ZirkelFrame.SelectColor); 
              else
              {      if (o.getColorType()==ConstructionObject.THIN)
                     {      int i=o.getColorIndex(); 
                            if (o.isHidden()) setColor(ZirkelFrame.BrighterLightColors[i]); 
                            else setColor(ZirkelFrame.LightColors[i]); 
                     }
                     else
                     {      int i=o.getColorIndex(); 
                            if (o.isHidden()) setColor(ZirkelFrame.BrighterColors[i]); 
                            else setColor(ZirkelFrame.Colors[i]); 
                     }
                     if (o.getColorType()==ConstructionObject.THIN)
                     {
                            Stroke=STROKE_THIN; 
                     }
                     else if (o.getColorType()==ConstructionObject.THICK)
                     {
                            Stroke=STROKE_THICK; 
                     }
                     else
                     {
                            Stroke=STROKE_NORMAL; 
                     }
              }
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.setDefaultFont ( int  h,
boolean  large,
boolean  bold 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 394 of file MyGraphicsSvg.java.

       {      fsize=h; flarge=large; fbold=bold;
              ffactor=Global.getParameter("ffactor",130);
              setFont(large,bold);
       }

Here is the call graph for this function:

Definition at line 63 of file MyGraphicsSvg.java.

       {      fillcol=c;
       }

Here is the caller graph for this function:

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 97 of file MyGraphicsSvg.java.

       {      if (o.isJobTarget()) setFillcolor(ZirkelFrame.TargetColor); 
              else
              {      if (o.getColorType()!=ConstructionObject.THICK)
                     {      int i=o.getColorIndex(); 
                            if (o.isHidden()) setFillcolor(ZirkelFrame.BrighterLightColors[i]); 
                            else setFillcolor(ZirkelFrame.LightColors[i]); 
                     }
                     else
                     {      int i=o.getColorIndex(); 
                            if (o.isHidden()) setFillcolor(ZirkelFrame.BrighterColors[i]); 
                            else setFillcolor(ZirkelFrame.Colors[i]); 
                     }
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.setFont ( int  h,
boolean  bold 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 386 of file MyGraphicsSvg.java.

       {      FontH=h;
       }

Here is the caller graph for this function:

void rene.zirkel.graphics.MyGraphicsSvg.setFont ( boolean  large,
boolean  bold 
) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 400 of file MyGraphicsSvg.java.

       {      int size=fsize;
              if (large) size=size*ffactor/100;
              if (flarge) size=size*ffactor/100;
              setFont(size,bold || fbold);
       }

Here is the call graph for this function:

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 113 of file MyGraphicsSvg.java.

       {      if (o.labelSelected()) setColor(ZirkelFrame.SelectColor);
              else if (o.isFilled())
              {      int type=o.getColorType();
                     o.setColorType(ConstructionObject.NORMAL);
                     setColor(o);
                     o.setColorType(type);
              }
              else setColor(o);
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphics.setSize ( double  w,
double  h 
) [inline, inherited]

Definition at line 10 of file MyGraphics.java.

       {      W=w; H=h;
       } 
int rene.zirkel.graphics.MyGraphicsSvg.stringAscent ( String  s) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 429 of file MyGraphicsSvg.java.

       {      return getFontMetrics().getAscent();
       }

Here is the call graph for this function:

int rene.zirkel.graphics.MyGraphicsSvg.stringHeight ( String  s) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 420 of file MyGraphicsSvg.java.

       {      return getFontMetrics().getHeight();
       }

Here is the call graph for this function:

int rene.zirkel.graphics.MyGraphicsSvg.stringWidth ( String  s) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 416 of file MyGraphicsSvg.java.

       {      return getFontMetrics().stringWidth(s);
       }

Here is the call graph for this function:


Member Data Documentation

Definition at line 42 of file MyGraphicsSvg.java.

Definition at line 391 of file MyGraphicsSvg.java.

Definition at line 392 of file MyGraphicsSvg.java.

Definition at line 42 of file MyGraphicsSvg.java.

Definition at line 391 of file MyGraphicsSvg.java.

Definition at line 45 of file MyGraphicsSvg.java.

Definition at line 390 of file MyGraphicsSvg.java.

Reimplemented from rene.zirkel.graphics.MyGraphics.

Definition at line 36 of file MyGraphicsSvg.java.

Definition at line 43 of file MyGraphicsSvg.java.

Definition at line 38 of file MyGraphicsSvg.java.

Definition at line 41 of file MyGraphicsSvg.java.

final int rene.zirkel.graphics.MyGraphicsSvg.STROKE_NORMAL = 0 [static, package]

Definition at line 39 of file MyGraphicsSvg.java.

final int rene.zirkel.graphics.MyGraphicsSvg.STROKE_THICK = 2 [static, package]

Definition at line 39 of file MyGraphicsSvg.java.

final int rene.zirkel.graphics.MyGraphicsSvg.STROKE_THIN = 1 [static, package]

Definition at line 39 of file MyGraphicsSvg.java.

final int rene.zirkel.graphics.MyGraphicsSvg.STYLE_NORMAL = 0 [static, package]

Definition at line 40 of file MyGraphicsSvg.java.

final int rene.zirkel.graphics.MyGraphicsSvg.STYLE_THICK = 0 [static, package]

Definition at line 40 of file MyGraphicsSvg.java.

final int rene.zirkel.graphics.MyGraphicsSvg.STYLE_THIN = 1 [static, package]

Definition at line 40 of file MyGraphicsSvg.java.

Definition at line 47 of file MyGraphicsSvg.java.

Reimplemented from rene.zirkel.graphics.MyGraphics.

Definition at line 36 of file MyGraphicsSvg.java.

Definition at line 44 of file MyGraphicsSvg.java.


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