Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.format.pstricks
Class PstricksFormatter  view PstricksFormatter download PstricksFormatter.java

java.lang.Object
  extended byjpicedt.format.pstricks.PstricksFormatter
All Implemented Interfaces:
jpicedt.graphic.io.formatter.FormatterFactory, jpicedt.graphic.model.PicObjectConstants, PstricksConstants

public class PstricksFormatter
extends java.lang.Object
implements jpicedt.graphic.io.formatter.FormatterFactory, jpicedt.graphic.model.PicObjectConstants, PstricksConstants

FormatterFactory that produces formatters for the Pstricks macro package.

Version:
$Id: PstricksFormatter.java,v 1.2 2002/08/05 16:44:10 reynal Exp $

Nested Class Summary
 class PstricksFormatter.DrawingFormatter
          "begin{pspicture}(x0,y0)(x1,y1)" (PsTricks) where (x0,y0)=lower-left corner and (x1,y1)=upper-right corner
 class PstricksFormatter.ParameterString
          an inner class that represents a PsTricks parameter string (useful especially to handle User Defined Colours) the basic problem is that, if a new colour has to be defined, this has to be done through e.g.
 
Field Summary
protected static java.lang.String fileWrapperEpilog
           
protected static java.lang.String fileWrapperProlog
           
 
Fields inherited from interface jpicedt.graphic.io.formatter.FormatterFactory
MAKE_STANDALONE_FILE
 
Fields inherited from interface jpicedt.graphic.model.PicObjectConstants
CROSSHATCH, CROSSHATCH_FILLED, DASH_OPAQUE, DASH_TRANSPARENT, DASH1, DASH2, DASH3, DASHED, DIMEN, DOT_SEP, DOT_SEP1, DOT_SEP2, DOT_SEP3, DOTTED, DOUBLE_COLOR, DOUBLE_LINE, DOUBLE_SEP, FILL_COLOR, FILL_STYLE, HATCH_ANGLE, HATCH_COLOR, HATCH_SEP, HATCH_WIDTH, HLINES, HLINES_FILLED, INNER, LEFT_ARROW, LINE_COLOR, LINE_STYLE, LINE_WIDTH, MaxAttributeNameIndex, MIDDLE, NONE, OUTER, POLYGON_DOTS, POLYGON_SOLID, POLYGON_STYLE, PS_POINT, RIGHT_ARROW, SHADOW, SHADOW_ANGLE, SHADOW_COLOR, SHADOW_SIZE, SOLID, VLINES, VLINES_FILLED
 
Fields inherited from interface jpicedt.format.pstricks.PstricksConstants
CR_LF, DEFAULT_FILE_WRAPPER_EPILOG, DEFAULT_FILE_WRAPPER_PROLOG, KEY_FILE_WRAPPER_EPILOG, KEY_FILE_WRAPPER_PROLOG, PST_ARROWS, PST_ARROWS_LEFT, PST_ARROWS_RIGHT, PST_COLORNAMES, PST_COLORS
 
Constructor Summary
PstricksFormatter()
           
 
Method Summary
static void configure(java.util.Properties preferences)
          Configure static fields using the given Properties object
 jpicedt.graphic.io.formatter.Formatter createFormatter(jpicedt.graphic.model.Drawing d, java.lang.Object outputConstraint)
           
 jpicedt.graphic.io.formatter.Formatter createFormatter(jpicedt.graphic.model.Element e)
           
 PstricksFormatter.ParameterString createParameterString(jpicedt.graphic.model.Element obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileWrapperProlog

protected static java.lang.String fileWrapperProlog

fileWrapperEpilog

protected static java.lang.String fileWrapperEpilog
Constructor Detail

PstricksFormatter

public PstricksFormatter()
Method Detail

createFormatter

public jpicedt.graphic.io.formatter.Formatter createFormatter(jpicedt.graphic.model.Element e)
Specified by:
createFormatter in interface jpicedt.graphic.io.formatter.FormatterFactory

configure

public static void configure(java.util.Properties preferences)
Configure static fields using the given Properties object


createFormatter

public jpicedt.graphic.io.formatter.Formatter createFormatter(jpicedt.graphic.model.Drawing d,
                                                              java.lang.Object outputConstraint)
Specified by:
createFormatter in interface jpicedt.graphic.io.formatter.FormatterFactory

createParameterString

public PstricksFormatter.ParameterString createParameterString(jpicedt.graphic.model.Element obj)