Documentation of 'net.sf.jtikz.TikzGraphics2D' Java class
TikzGraphics2D
net.sf.jtikz

Class TikzGraphics2D

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable


    public class TikzGraphics2D
    extends AbstractGraphicsInterface
    A Graphics2D replacement for outputting in TikZ/PGF. Here is an example:
    TikzGraphics2D t = new TikzGraphics2D();
    panel.paint(t);
    
    or, alternatively,
    t.paintComponent(frame);
    
    • Field Detail

      • VERSION

        public static final java.lang.String VERSION
        The version of JTikZ.
        See Also:
        Constant Field Values
      • REV_DATE

        public static final java.lang.String REV_DATE
        The revision date for this version of JTikZ.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TikzGraphics2D

        public TikzGraphics2D()
        Creates a new TikzGraphics2D object that will output the code to system.out.
      • TikzGraphics2D

        public TikzGraphics2D(java.io.OutputStream os)
        Creates a new TikzGraphics2D object that will output the code to the given output stream. If os is null then it will default to system.out.
    • Method Detail

      • toTeX

        public java.lang.String toTeX(java.lang.String s)
        Converts an arbitrary string to TeX. This will strip/replace/escape all necessary TeX commands. For example, "\n" will be replaced by "\\".
      • drawImage

        public boolean drawImage(java.awt.Image img,
                                 java.awt.geom.AffineTransform xform,
                                 java.awt.image.ImageObserver obs)
        Specified by:
        drawImage in class AbstractGraphicsInterface

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.