|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpicedt.format.input.util.AbstractRegularExpression jpicedt.format.input.util.AlternateExpression jpicedt.format.input.util.RootExpression jpicedt.format.input.pstricks.PstricksParser
public class PstricksParser
Root expression for the Pstricks parser, containing grammar rules for the pstricks format. Pstricks support is pretty ok, though add-ons (like pst-nodes.sty) are still missing.
This class consists of grammar rules, wrapped in a RootExpression which can itself be directly added to the main tree (for instance, using DefaultParser.addGrammar()).
Note : the current parser used across the JPicEdt application can be retrieved using jpicedt.JPicEdt.getParser().
[TODO] : \psgrid, \psaxes, \pscustom, arrow size, dot style.
Field Summary | |
---|---|
static Pool.Key<PicAttributeSet> |
KEY_ATTRIBUTES
key associated with the attribute set which stores PsTricks default graphical parameters (PicAttributeSet) |
static Pool.Key<HashMap<String,String>> |
KEY_NEWPSOBJECTS
\\newpsobject : key associated with the HashMap that associates pairs "macroName -> param_string", e.g. |
static Pool.Key<Double> |
KEY_R_UNIT
key associated with \\psrunit register (double) |
static Pool.Key<HashMap<String,Color>> |
KEY_USER_COLOURS
user-defined colours (a HashMap which gets filled by UserDefinedColorsExpression, see \\newgray, \\newrgbcolor,... in PsTricks documentation p.5) |
static Pool.Key<Double> |
KEY_X_UNIT
key associated with \\psxunit register (double) |
static Pool.Key<Double> |
KEY_Y_UNIT
key associated with \\psyunit register (double) |
Constructor Summary | |
---|---|
PstricksParser(Pool pool)
Creates a new PstricksParser, and build grammar rules |
Method Summary | |
---|---|
void |
reinit()
reinit shared parameters belonging to the Pool |
Methods inherited from class jpicedt.format.input.util.AlternateExpression |
---|
add, getExpressionList, interpret, toString |
Methods inherited from class jpicedt.format.input.util.AbstractRegularExpression |
---|
action |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Pool.Key<Double> KEY_X_UNIT
public static final Pool.Key<Double> KEY_Y_UNIT
public static final Pool.Key<Double> KEY_R_UNIT
public static final Pool.Key<PicAttributeSet> KEY_ATTRIBUTES
public static final Pool.Key<HashMap<String,Color>> KEY_USER_COLOURS
public static final Pool.Key<HashMap<String,String>> KEY_NEWPSOBJECTS
Constructor Detail |
---|
public PstricksParser(Pool pool)
Method Detail |
---|
public void reinit()
reinit
in class RootExpression
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |