Back to index

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

List of all members.

Public Member Functions

 MyGraphics13 (Graphics g, double factor, Component zc, LatexOutput lout)
 MyGraphics13 (Graphics g)
 MyGraphics13 (Graphics g, Component zc)
 MyGraphics13 (Graphics g, double factor)
void setColor (Color c)
void setColor (ConstructionObject o)
void clearRect (int x, int y, int w, int h, Color c)
void setFillColor (ConstructionObject o)
void setLabelColor (ConstructionObject o)
void drawRect (double x, double y, double w, double h)
void drawMarkerRect (double x, double y, double w, double h)
void drawLine (double x, double y, double x1, double y1)
void drawThickLine (double x, double y, double x1, double y1)
void drawMarkerLine (double x, double y, double x1, double y1)
void drawLine (double x, double y, double x1, double y1, ConstructionObject o)
boolean test (double x)
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 drawCircle (double x, double y, double r, ConstructionObject o)
void drawMarkerArc (double x, double y, double r, double a, double b)
void drawCircleArc (double x, double y, double r, double a, double b, ConstructionObject o)
void fillRect (double x, double y, double w, double h, boolean outline, boolean transparent, ConstructionObject o)
void fillOval (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 arcb, 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 ()
void computeString (String s)
int stringWidth (String s)
int stringHeight (String s)
boolean isTex (String s)
int drawStringExtended (String s, double x, double y)
String translateDollar (String s)
int stringAscent (String s)
void setHotEqn (String s)
int paintHotEqn (int c, int r, Graphics g)
int heightHotEqn (Graphics g)
int ascentHotEqn (Graphics g)
int widthHotEqn (Graphics g)
void setSize (double w, double h)

Package Functions

void drawLargeCircleArc (double x, double y, double r, double a, double b)

Package Attributes

Graphics2D G
BasicStroke Thin
BasicStroke Normal
BasicStroke Thick
BasicStroke SuperThick
AlphaComposite C
AlphaComposite CO
Component ZC = null
LatexOutput LOut
int xx [] = new int[64]
int yy [] = new int[64]
FontStruct FS = new FontStruct()
int fsize
boolean flarge
boolean fbold
int ffactor = Global.getParameter("ffactor",130)
int StrH = 0
int StrW = 0
int StrAsc = 0
boolean StrTex = false
String Str = null
sHotEqn HE = null
double W = 1000
double H = 1000

Detailed Description

Definition at line 13 of file MyGraphics13.java.


Constructor & Destructor Documentation

rene.zirkel.graphics.MyGraphics13.MyGraphics13 ( Graphics  g,
double  factor,
Component  zc,
LatexOutput  lout 
) [inline]

Definition at line 20 of file MyGraphics13.java.

       {      LOut=lout;
              G=(Graphics2D)g;
              if (Global.getParameter("quality",true))
              {      G.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
                     G.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
                            RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
                     G.setRenderingHint(RenderingHints.KEY_RENDERING,
                            RenderingHints.VALUE_RENDER_QUALITY);
                     G.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                            RenderingHints.VALUE_INTERPOLATION_BICUBIC);
              }
              float dash[]={(float)(factor*15.0),(float)(factor*15.0)};
              if (factor<Global.getParameter("minlinesize",1.0)) 
                     factor=Global.getParameter("minlinesize",1.0);
              Thin=new BasicStroke((float)(factor*2.0),BasicStroke.CAP_BUTT,
                     BasicStroke.JOIN_MITER,10.0f,dash,0.0f);
              Normal=new BasicStroke((float)(factor));
              Thick=new BasicStroke((float)(factor*4.0),BasicStroke.CAP_ROUND,
                            BasicStroke.JOIN_MITER);
              SuperThick=new BasicStroke((float)(20),BasicStroke.CAP_ROUND,
                            BasicStroke.JOIN_ROUND);
              C=AlphaComposite.getInstance(AlphaComposite.SRC_OVER,(float)0.5);
              CO=AlphaComposite.getInstance(AlphaComposite.SRC_OVER,(float)1.0);
              G.setComposite(CO);
              ZC=zc;
       }

Here is the call graph for this function:

Definition at line 49 of file MyGraphics13.java.

       {      this(g,0.5,null,null);
       }
rene.zirkel.graphics.MyGraphics13.MyGraphics13 ( Graphics  g,
Component  zc 
) [inline]

Definition at line 53 of file MyGraphics13.java.

       {      this(g,0.5,zc,null);
       }
rene.zirkel.graphics.MyGraphics13.MyGraphics13 ( Graphics  g,
double  factor 
) [inline]

Definition at line 57 of file MyGraphics13.java.

       {      this(g,factor,null,null);
       }

Member Function Documentation

int rene.zirkel.graphics.MyGraphics13.ascentHotEqn ( Graphics  g) [inline]

Definition at line 535 of file MyGraphics13.java.

       {      if (HE==null) return 0;
              return HE.getAscent(HE.getEquation(),g);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 93 of file MyGraphics13.java.

       {      G.setColor(c);
              G.fillRect(x,y,w,h);
       }

Definition at line 394 of file MyGraphics13.java.

       {      if (s.equals(Str)) return;
              StrH=StrW=StrAsc=0;
              StrTex=false;
              Str=s;
              while (s!="") 
              {      int n=s.indexOf('$');
                     while (n>0 && s.charAt(n-1)=='\\') n=s.indexOf('$',n+1);
                     if (n<0)
                     {      StrH=Math.max(StrH,getFontMetrics().getHeight());
                            StrW+=getFontMetrics().stringWidth(s);
                            StrAsc=Math.max(StrAsc,getFontMetrics().getAscent());
                            break;
                     }
                     else
                     {      StrTex=true;
                            String ss=s.substring(0,n);
                            s=s.substring(n+1);
                            StrH=Math.max(StrH,getFontMetrics().getHeight());
                            StrW+=getFontMetrics().stringWidth(ss);
                            StrAsc=Math.max(StrAsc,getFontMetrics().getAscent());
                            n=s.indexOf('$');
                            while (n>0 && s.charAt(n-1)=='\\') n=s.indexOf('$',n+1);
                            ss=s;
                            if (n>=0)
                            {      ss=s.substring(0,n); s=s.substring(n+1);
                            }
                            else
                            {      s="";
                            }
                            if (HE==null || !HE.getEquation().equals(ss))
                                   setHotEqn(ss);
                            StrH=Math.max(StrH,heightHotEqn(G));
                            StrW+=widthHotEqn(G);
                            StrAsc=Math.max(StrAsc,ascentHotEqn(G));
                     }
              }             
       }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 180 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(w) || test(h)) return;
              G.setStroke(Normal);
              G.draw(new Arc2D.Double(x,y,w,h,a,b,Arc2D.OPEN));
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphics13.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 186 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(w) || test(h))
                     return;
              else
                     G.draw(new Arc2D.Double(x,y,w,h,a,b,Arc2D.OPEN));
       }

Here is the call graph for this function:

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

Reimplemented from rene.zirkel.graphics.MyGraphics.

Definition at line 217 of file MyGraphics13.java.

       {      if (r>10*(W+H))
                     drawLargeCircleArc(x,y,r,0,360);
              else
                     G.draw(new Ellipse2D.Double(x-r,y-r,2*r,2*r));          
       }

Here is the call graph for this function:

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

Reimplemented from rene.zirkel.graphics.MyGraphics.

Definition at line 232 of file MyGraphics13.java.

       {      if (r>10*(W+H))
                     drawLargeCircleArc(x,y,r,a,b);
              else
                     G.draw(new Arc2D.Double(x-r,y-r,2*r,2*r,a,b,Arc2D.OPEN));
       }

Here is the call graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 335 of file MyGraphics13.java.

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 339 of file MyGraphics13.java.

       {      G.drawImage(i,x,y,w,h,o);
       }      
void rene.zirkel.graphics.MyGraphics13.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 376 of file MyGraphics13.java.

       {      try
              {      int w=i.getWidth(o),h=i.getHeight(o);
                     AffineTransform AT=new AffineTransform((x1-x)/w,(y1-y)/w,(x2-x)/h,(y2-y)/h,x,y);
                     G.drawImage(i,AT,o);
              }
              catch (Exception e) {}
       }
void rene.zirkel.graphics.MyGraphics13.drawLargeCircleArc ( double  x,
double  y,
double  r,
double  a,
double  b 
) [inline, package]

Definition at line 240 of file MyGraphics13.java.

       {      double dw=Math.sqrt((W+H)/r/10);
              double w=a;
              double x0=x+r*Math.cos(w/180*Math.PI);
              double y0=y-r*Math.sin(w/180*Math.PI);
              w=w+dw;              
              while (w<a+b+dw)
              {      if (w>a+b) w=a+b;
                     double x1=x+r*Math.cos(w/180*Math.PI);
                     double y1=y-r*Math.sin(w/180*Math.PI);
                     double dx=(x0+x1)/2,dy=(y0+y1)/2;
                     if (Math.sqrt(dx*dx+dy*dy)<=10*(W+H)) 
                            G.draw(new Line2D.Double(x0,y0,x1,y1));
                     x0=x1; y0=y1;
                     w+=dw;
              }
       }

Here is the caller graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 150 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(x1) || test(y1)) return;
              G.setStroke(Normal);
              G.draw(new Line2D.Double(x,y,x1,y1));
       }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 171 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(x1) || test(y1)) return;
              G.draw(new Line2D.Double(x,y,x1,y1));
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphics13.drawMarkerArc ( double  x,
double  y,
double  r,
double  a,
double  b 
) [inline]

Definition at line 225 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(r)) return;
              G.setColor(ZirkelFrame.IndicateColor);
              G.setStroke(SuperThick);
              G.draw(new Arc2D.Double(x-r,y-r,2*r,2*r,a,b,Arc2D.OPEN));
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphics13.drawMarkerLine ( double  x,
double  y,
double  x1,
double  y1 
) [inline]

Definition at line 163 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(x1) || test(y1)) return;
              G.setColor(ZirkelFrame.IndicateColor);
              G.setStroke(SuperThick);
              G.draw(new Line2D.Double(x,y,x1,y1));
              G.setStroke(Normal);
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphics13.drawMarkerRect ( double  x,
double  y,
double  w,
double  h 
) [inline]

Definition at line 142 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(x+w) || test(y+h)) return;
              G.setColor(ZirkelFrame.IndicateColor);
              G.setStroke(SuperThick);
              G.draw(new Rectangle2D.Double(x,y,w,h));
              G.setStroke(Normal);
       }

Here is the call graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 203 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(w) || test(h)) return;
              G.setStroke(Normal);
              G.draw(new Ellipse2D.Double(x,y,w,h));           
       }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 209 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(w) || test(h))
                     return;
              else
                     G.draw(new Ellipse2D.Double(x,y,w,h));           
       }

Here is the call graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 136 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(x+w) || test(y+h)) return;
              G.setStroke(Normal);
              G.draw(new Rectangle2D.Double(x,y,w,h));
       }

Here is the call graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 198 of file MyGraphics13.java.

       {      if (test(x) || test(y)) return;
              G.drawString(s,(float)x,(float)y);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 448 of file MyGraphics13.java.

       {      if (s.startsWith("$$"))
              {      s=s.substring(2);
                     if (s.endsWith("$$")) s=s.substring(0,s.length()-2);
                     if (HE==null || !HE.getEquation().equals(s))
                            setHotEqn(s);
                     if (LOut==null || 
                                   !LOut.println("$$"+s+"$$",x,y+ascentHotEqn(G)))
                            return paintHotEqn((int)x,(int)y,G);
                     else
                            return heightHotEqn(G);
              }
              computeString(s);
              if (LOut!=null)
              {      if (StrTex && LOut.printDollar())
                     {      LOut.println(s,x,y+StrAsc,true);
                            return StrH;
                     }
                     else if (!StrTex)
                     {      if (LOut.println(s,x,y+StrAsc))
                                   return StrH;
                     }
              }
              int w=0;
              while (s!="") 
              {      int n=s.indexOf('$');
                     while (n>0 && s.charAt(n-1)=='\\') n=s.indexOf('$',n+1);
                     if (n<0)
                     {      drawString(translateDollar(s),x+w,y+StrAsc);
                            w+=getFontMetrics().stringWidth(s);
                            break;
                     }
                     else
                     {      String ss=s.substring(0,n);
                            s=s.substring(n+1);
                            drawString(translateDollar(ss),x+w,y+StrAsc);
                            w+=getFontMetrics().stringWidth(ss);
                            n=s.indexOf('$');
                            while (n>0 && s.charAt(n-1)=='\\') n=s.indexOf('$',n+1);
                            ss=s;
                            if (n>=0)
                            {      ss=s.substring(0,n); s=s.substring(n+1);
                            }
                            else
                            {      s="";
                            }
                            if (HE==null || !HE.getEquation().equals(ss))
                                   setHotEqn(ss);
                            paintHotEqn((int)x+w,(int)y+StrAsc-ascentHotEqn(G),G);
                            w+=widthHotEqn(G);
                     }
              }
              return StrH;
       }

Here is the call graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 156 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(x1) || test(y1)) return;
              G.setStroke(Thick);
              G.draw(new Line2D.Double(x,y,x1,y1));
              G.setStroke(Normal);
       }

Here is the call graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 289 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(w) || test(h)) return;
              setFillColor(o);
              if (transparent && !o.isSolid()) G.setComposite(C);
              Arc2D arc=new Arc2D.Double(x,y,w,h,a,b,arcb?Arc2D.PIE:Arc2D.CHORD);
              G.fill(arc);
              if (transparent && !o.isSolid()) G.setComposite(CO);
              if (outline)
              {      setColor(o);
                     arc.setArcType(Arc2D.OPEN);
                     G.setStroke(Normal);
                     G.draw(arc);
              }
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphics13.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 271 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(w) || test(h)) return;
              if (o.getColorType()!=ConstructionObject.INVISIBLE)
              {      setFillColor(o);
                     if (transparent && !o.isSolid()) G.setComposite(C);
                     try
                     {      G.fill(new Ellipse2D.Double(x,y,w,h));           
                     }
                     catch (Exception e) {}
                     if (transparent && !o.isSolid()) G.setComposite(CO);
              }
              if (outline)
              {      setColor(o);
                     drawOval(x,y,w,h);
              }
       }

Here is the call graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 307 of file MyGraphics13.java.

       {      if (o.getColorType()!=ConstructionObject.INVISIBLE)
              {      setFillColor(o);
                     if (transparent && !o.isSolid()) G.setComposite(C);
              }
              if (n>xx.length)
              {      xx=new int[n]; yy=new int[n];
              }
              for (int i=0; i<n; i++) 
              {      xx[i]=(int)(x[i]);
                     if (test(x[i])) return;
                     yy[i]=(int)(y[i]);
                     if (test(y[i])) return;
              }
              if (o.getColorType()!=ConstructionObject.INVISIBLE)
              {      G.fillPolygon(xx,yy,n);
                     if (transparent && !o.isSolid()) G.setComposite(CO);
              }
              if (outline)
              {      setColor(o);
                     G.setStroke(Normal);
                     for (int i=0; i<n-1; i++)
                            drawLine(xx[i],yy[i],xx[i+1],yy[i+1]);
                     drawLine(xx[n-1],yy[n-1],xx[0],yy[0]);                  
              }
       }

Here is the call graph for this function:

void rene.zirkel.graphics.MyGraphics13.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 258 of file MyGraphics13.java.

       {      if (test(x) || test(y) || test(w) || test(h)) return;
              setFillColor(o);
              if (transparent && !o.isSolid()) G.setComposite(C);
              G.fill(new Rectangle2D.Double(x,y,w,h));
              if (transparent && !o.isSolid()) G.setComposite(CO);
              if (outline)
              {      setColor(o);
                     G.draw(new Rectangle2D.Double(x,y,w,h));
              }
       }

Here is the call graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 194 of file MyGraphics13.java.

       {      return G.getFontMetrics();
       }

Here is the caller graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 386 of file MyGraphics13.java.

       {      return G;
       }
int rene.zirkel.graphics.MyGraphics13.heightHotEqn ( Graphics  g) [inline]

Definition at line 530 of file MyGraphics13.java.

       {      if (HE==null) return 0;
              return HE.getSizeof(HE.getEquation(),g).height;
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 443 of file MyGraphics13.java.

       {      computeString(s);
              return StrTex;
       }

Here is the call graph for this function:

int rene.zirkel.graphics.MyGraphics13.paintHotEqn ( int  c,
int  r,
Graphics  g 
) [inline]

Definition at line 525 of file MyGraphics13.java.

       {      if (HE==null) return 0;
              return HE.paint(c,r,g);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 61 of file MyGraphics13.java.

       {      G.setColor(c);
       }

Here is the caller graph for this function:

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 65 of file MyGraphics13.java.

       {      G.setStroke(Normal);
              if (o.isJobTarget()) setColor(ZirkelFrame.TargetColor);
              else if (o.indicated()) setColor(ZirkelFrame.IndicateColor);
              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)
              {      G.setStroke(Thin);
              }
              else if (o.getColorType()==ConstructionObject.THICK)
              {      G.setStroke(Thick);
              }
              else
              {      G.setStroke(Normal);
              }
       }

Here is the call graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 363 of file MyGraphics13.java.

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

Here is the call graph for this function:

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 98 of file MyGraphics13.java.

       {      G.setStroke(Normal);
              if (o.isJobTarget()) setColor(ZirkelFrame.TargetColor);
              else if ((o instanceof PointObject) && o.indicated()) setColor(ZirkelFrame.IndicateColor);
              else
              {      if (o.getColorType()!=ConstructionObject.THICK)
                     {      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)
                     {      G.setStroke(Thin);
                     }
                     else if (o.getColorType()==ConstructionObject.THICK)
                     {      G.setStroke(Thick);
                     }
                     else
                     {      G.setStroke(Normal);
                     }
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 346 of file MyGraphics13.java.

       {      Font f=FS.getFont(h,bold);
              if (f!=null) G.setFont(f);
              else
              {      f=new Font(
                            Global.getParameter("font.name","dialog"),
                            bold?Font.BOLD:Font.PLAIN,
                            h);
                     FS.storeFont(h,bold,f);
                     G.setFont(f);
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 369 of file MyGraphics13.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:

void rene.zirkel.graphics.MyGraphics13.setHotEqn ( String  s) [inline]

Definition at line 517 of file MyGraphics13.java.

       {      if (ZC==null) return;
              if (HE==null)
              {      HE=new sHotEqn(ZC);
              }
              HE.setEquation(s);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 125 of file MyGraphics13.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.MyGraphics13.stringAscent ( String  s) [inline, virtual]

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 511 of file MyGraphics13.java.

       {      return getFontMetrics().getAscent();
       }

Here is the call graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 438 of file MyGraphics13.java.

       {      computeString(s);
              return StrH;
       }

Here is the call graph for this function:

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

Implements rene.zirkel.graphics.MyGraphics.

Definition at line 433 of file MyGraphics13.java.

       {      computeString(s);
              return StrW;
       }

Here is the call graph for this function:

Definition at line 176 of file MyGraphics13.java.

       {      return Math.abs(x)>1e5;
       }

Here is the caller graph for this function:

Definition at line 503 of file MyGraphics13.java.

       {      int n;
              while ((n=s.indexOf("\\$"))>=0)
              {      s=s.substring(0,n)+"$"+s.substring(n+2);
              }
              return s;
       }

Here is the caller graph for this function:

int rene.zirkel.graphics.MyGraphics13.widthHotEqn ( Graphics  g) [inline]

Definition at line 540 of file MyGraphics13.java.

       {      if (HE==null) return 0;
              return HE.getSizeof(HE.getEquation(),g).width;
       }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

AlphaComposite rene.zirkel.graphics.MyGraphics13.C [package]

Definition at line 16 of file MyGraphics13.java.

AlphaComposite rene.zirkel.graphics.MyGraphics13.CO [package]

Definition at line 16 of file MyGraphics13.java.

Definition at line 360 of file MyGraphics13.java.

Definition at line 361 of file MyGraphics13.java.

Definition at line 360 of file MyGraphics13.java.

Definition at line 344 of file MyGraphics13.java.

Definition at line 359 of file MyGraphics13.java.

Definition at line 14 of file MyGraphics13.java.

double rene.zirkel.graphics.MyGraphics.H = 1000 [package, inherited]

Reimplemented in rene.zirkel.graphics.MyGraphicsPDF, and rene.zirkel.graphics.MyGraphicsSvg.

Definition at line 9 of file MyGraphics.java.

Definition at line 515 of file MyGraphics13.java.

Definition at line 18 of file MyGraphics13.java.

Definition at line 15 of file MyGraphics13.java.

String rene.zirkel.graphics.MyGraphics13.Str = null [package]

Definition at line 392 of file MyGraphics13.java.

Definition at line 390 of file MyGraphics13.java.

Definition at line 390 of file MyGraphics13.java.

Definition at line 391 of file MyGraphics13.java.

Definition at line 390 of file MyGraphics13.java.

Definition at line 15 of file MyGraphics13.java.

Definition at line 15 of file MyGraphics13.java.

Definition at line 15 of file MyGraphics13.java.

double rene.zirkel.graphics.MyGraphics.W = 1000 [package, inherited]

Reimplemented in rene.zirkel.graphics.MyGraphicsPDF, and rene.zirkel.graphics.MyGraphicsSvg.

Definition at line 9 of file MyGraphics.java.

int rene.zirkel.graphics.MyGraphics13.xx[] = new int[64] [package]

Definition at line 305 of file MyGraphics13.java.

int rene.zirkel.graphics.MyGraphics13.yy[] = new int[64] [package]

Definition at line 305 of file MyGraphics13.java.

Component rene.zirkel.graphics.MyGraphics13.ZC = null [package]

Definition at line 17 of file MyGraphics13.java.


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