Class PSProcSets.StdProcSet

  • All Implemented Interfaces:
    java.lang.Comparable, PSCommandMap
    Enclosing class:
    PSProcSets

    private static class PSProcSets.StdProcSet
    extends PSProcSet
    implements PSCommandMap
    The standard procset used by XML Graphics Commons.
    • Field Detail

      • STANDARD_MACROS

        private static final java.util.Map STANDARD_MACROS
        A Map of standard shorthand macros defined in the PSProcSets.StdProcSet.
    • Constructor Detail

      • StdProcSet

        public StdProcSet()
    • Method Detail

      • writeTo

        public void writeTo​(PSGenerator gen)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • mapCommand

        public java.lang.String mapCommand​(java.lang.String command)
        Maps a standard PostScript command (like "setlinejoin" or "setrgbcolor") to a macro. If no mapping is available, the command itself is returned again.
        Specified by:
        mapCommand in interface PSCommandMap
        Parameters:
        command - the command
        Returns:
        the mapped command (or the "command" parameter if no mapping is available)