Package org.apache.xmlgraphics.ps
Class PSProcSets.StdProcSet
- java.lang.Object
-
- org.apache.xmlgraphics.ps.PSResource
-
- org.apache.xmlgraphics.ps.PSProcSet
-
- org.apache.xmlgraphics.ps.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 Summary
Fields Modifier and Type Field Description private static java.util.Map
STANDARD_MACROS
A Mapof standard shorthand macros defined in the PSProcSets.StdProcSet
.-
Fields inherited from class org.apache.xmlgraphics.ps.PSResource
TYPE_CIDFONT, TYPE_CMAP, TYPE_ENCODING, TYPE_FILE, TYPE_FONT, TYPE_FORM, TYPE_PATTERN, TYPE_PROCSET
-
-
Constructor Summary
Constructors Constructor Description StdProcSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
mapCommand(java.lang.String command)
Maps a standard PostScript command (like "setlinejoin" or "setrgbcolor") to a macro.void
writeTo(PSGenerator gen)
-
Methods inherited from class org.apache.xmlgraphics.ps.PSProcSet
getResourceSpecification, getRevision, getVersion
-
-
-
-
Field Detail
-
STANDARD_MACROS
private static final java.util.Map STANDARD_MACROS
A Mapof standard shorthand macros defined in the PSProcSets.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 interfacePSCommandMap
- Parameters:
command
- the command- Returns:
- the mapped command (or the "command" parameter if no mapping is available)
-
-