Class JPICFormatter.DrawingFormatter

  • All Implemented Interfaces:
    Formatter
    Enclosing class:
    JPICFormatter

    protected class JPICFormatter.DrawingFormatter
    extends java.lang.Object
    implements Formatter
    A Drawing's formatter for the JPIC-XML language.
    • Constructor Summary

      Constructors 
      Constructor Description
      DrawingFormatter​(Drawing drawing, java.lang.Object outputConstraint)
      init this formatter for the given drawing
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format()
      Create a String representing an Element in the format of this formatter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DrawingFormatter

        public DrawingFormatter​(Drawing drawing,
                                java.lang.Object outputConstraint)
        init this formatter for the given drawing
        Parameters:
        outputConstraint - if MAKE_STANDALONE_FILE, prepend/append prolog and epilog.
    • Method Detail

      • format

        public java.lang.String format()
        Description copied from interface: Formatter
        Create a String representing an Element in the format of this formatter
        Specified by:
        format in interface Formatter
        Returns:
        a String representing this Drawing in the PsTricks format !!! PsTricks's default unit = 1cm !!!