Class PstricksFormatter

    • Field Detail

      • fileWrapperEpilog

        protected static java.lang.String fileWrapperEpilog
      • fileWrapperProlog

        protected static java.lang.String fileWrapperProlog
    • Constructor Detail

      • PstricksFormatter

        public PstricksFormatter()
    • Method Detail

      • configure

        public static void configure​(java.util.Properties preferences)
        Configure static fields using the given Properties object
        Parameters:
        properties - used to read shared parameters If null, default values are used.
      • createFormatter

        public Formatter createFormatter​(Drawing d,
                                         java.lang.Object outputConstraint)
        Specified by:
        createFormatter in interface FormatterFactory
        Parameters:
        outputConstraint - constraint used by the factory to create a specific Formatter on-the-fly
        Returns:
        a Formatter able to format the given Drawing in the PsTricks format ; this may reliy on calls to createFormatter(Element e) on the elements of the drawing, plus creating auxiliary
      • createParameterString

        public PstricksFormatter.ParameterString createParameterString​(Element obj)
        Returns PsTricks's "standard" parameter string for the given Element:
        • linewidth=xxx, linecolor=xxxx, doubleline=true/false and rel.
        • if dash non-nul : linestyle=dashed, dash=xx yy
        • if object if filled : fillstyle=solid, fillcolor=xxxx + possibly shadow and hatch parameters.
        Note that leading and trailing brackets must be added by the caller ! (this allows the caller to add its own set of parameters)

        Since jpicedt 1.3.3: border is supported (not bordercolor), custom parameters are included verbatim

        Returns:
        an object encapsulating the parameter string as well as one or more \\newrgbcolor commands whenever deemed necessary.
      • createDefaultParameterString

        public java.lang.StringBuffer createDefaultParameterString()
        Returns a "\\psset{...}" buffer containing default parameters (useful if these differ from PsTricks's ones) This is very similar to createParameterString() except that a default attribute set is used, and dimensional parameters are taken into account, for which jPicEdt's default values slightly differ from PsTricks's default (mostly due to the use of mm instead of postscript points as the basic unit).
      • main

        public static void main​(java.lang.String[] args)