http://www.jpicedt.org

jpicedt.format.input.pstricks
Class PsBox

java.lang.Object
  extended by jpicedt.format.input.util.AbstractRegularExpression
      extended by jpicedt.format.input.util.SequenceExpression
          extended by jpicedt.format.input.pstricks.PsBox

public class PsBox
extends SequenceExpression

Parses PsTricks boxes, i.e. (depending on the "type" parameter of the constructor)

This expression is to be used as a child expression of either jpicedt.format.input.latex.LaTeXPutExpression or PsRPutExpression.

The parsing code makes use of the following Pool's key/value pairs (as set by the enclosing XXXPutExpression beforehands):

For each of these four keys, permitted values are the same as in PicAttributeSet. For instance, the value associated with KEY_RPUT_VALIGN may be TEXT_VALIGN_BOTTOM, TEXT_VALIGN_BASELINE, ...

Since:
jpicedt 1.4pre2
Version:
$Id: PsBox.java,v 1.10 2013/03/31 06:55:09 vincentb1 Exp $
Author:
Sylvain Reynal

Field Summary
static String CIRCLE_BOX
          expects a \\pscirclebox macro
static String OVAL_BOX
          expects a \\psovalbox macro
static String RECTANGLE_BOX
          expects a \\psframebox macro
 
Constructor Summary
PsBox(Pool pl, String type)
           
 
Method Summary
 void action(ParserEvent e)
          Called in the course of the interpret operation at the end of a SUCCESSFUL interpret operation.
 
Methods inherited from class jpicedt.format.input.util.SequenceExpression
add, interpret, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RECTANGLE_BOX

public static final String RECTANGLE_BOX
expects a \\psframebox macro

See Also:
Constant Field Values

CIRCLE_BOX

public static final String CIRCLE_BOX
expects a \\pscirclebox macro

See Also:
Constant Field Values

OVAL_BOX

public static final String OVAL_BOX
expects a \\psovalbox macro

See Also:
Constant Field Values
Constructor Detail

PsBox

public PsBox(Pool pl,
             String type)
Parameters:
type - RECTANGLE_BOX, CIRCLE_BOX or OVAL_BOX depending on the expected box type.
Method Detail

action

public void action(ParserEvent e)
Description copied from class: AbstractRegularExpression
Called in the course of the interpret operation at the end of a SUCCESSFUL interpret operation. Should be overriden by daughter classes to process proper action, e.g. set Element's attributes… Current implementation does nothing, but sending a debugging string.

Overrides:
action in class AbstractRegularExpression

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org