Back to index

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

List of all members.

Public Member Functions

 LatexOutput (PrintWriter out)
void open (double w, double h, double dpi, String picfilename)
void close ()
boolean println (String s, double x, double y, boolean force)
boolean println (String s, double x, double y)
double round (double x)
boolean printDollar ()

Package Attributes

PrintWriter Out
double W
double H
boolean DoubleDollar
boolean Dollar
boolean NoDollar

Detailed Description

Definition at line 11 of file LatexOutput.java.


Constructor & Destructor Documentation

rene.zirkel.graphics.LatexOutput.LatexOutput ( PrintWriter  out) [inline]

Definition at line 16 of file LatexOutput.java.

       {      Out=out;
              DoubleDollar=Global.getParameter("options.doubledollar",true);
              Dollar=Global.getParameter("options.dollar",true);
              NoDollar=Global.getParameter("options.nodollar",false);
       }

Here is the call graph for this function:


Member Function Documentation

Definition at line 34 of file LatexOutput.java.

       {      Out.println("\\end{picture}");
              Out.close();
       }
void rene.zirkel.graphics.LatexOutput.open ( double  w,
double  h,
double  dpi,
String  picfilename 
) [inline]

Definition at line 23 of file LatexOutput.java.

       {      W=w; H=h;
              Out.println("\\setlength{\\unitlength}{"+(2.54/dpi)+"cm}");
              Out.println("\\begin{picture}("+round(w)+","+round(h)+")");
              String s=picfilename.replace('\\','/');
              Out.println("\\put(0,0){\\includegraphics[width="+
                            round(w/dpi*2.54)+"cm]{"+s+"}}");
              Out.println("%\\put(0,0){\\includegraphics[width="+
                            round(w/dpi*2.54)+"cm,bb=0 0 "+((int)w)+" "+((int)h)+"]{"+s+"}}");
       }

Here is the call graph for this function:

Definition at line 65 of file LatexOutput.java.

       {      return Dollar;
       }

Here is the caller graph for this function:

boolean rene.zirkel.graphics.LatexOutput.println ( String  s,
double  x,
double  y,
boolean  force 
) [inline]

Definition at line 39 of file LatexOutput.java.

       {      if (s.startsWith("$$"))
              {      if (!DoubleDollar) return false;
                     s=s.substring(1);
                     if (s.endsWith("$$")) s=s.substring(0,s.length()-1);
                     if (!s.endsWith("$")) s=s+"$";
              }
              else if (!force && s.startsWith("$"))
              {      if (!Dollar) return false;
                     if (!s.endsWith("$")) s=s+"$";
              }
              else if (!force)
              {      if (!NoDollar) return false;
              }
              // Out.println("\\put("+round(x)+","+round(H-y)+"){\\makebox(0,0)[lt]{"+s+"}}");
              Out.println("\\put("+round(x)+","+round(H-y)+"){"+s+"}");
              return true;
       }

Here is the call graph for this function:

Here is the caller graph for this function:

boolean rene.zirkel.graphics.LatexOutput.println ( String  s,
double  x,
double  y 
) [inline]

Definition at line 57 of file LatexOutput.java.

       {      return println(s,x,y,false);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

double rene.zirkel.graphics.LatexOutput.round ( double  x) [inline]

Definition at line 61 of file LatexOutput.java.

       {      return Math.floor(x*1000+0.5)/1000;
       }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 14 of file LatexOutput.java.

Definition at line 14 of file LatexOutput.java.

Definition at line 13 of file LatexOutput.java.

Definition at line 14 of file LatexOutput.java.

PrintWriter rene.zirkel.graphics.LatexOutput.Out [package]

Definition at line 12 of file LatexOutput.java.

Definition at line 13 of file LatexOutput.java.


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