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

Quick Search    Search Deep

jpicedt.format.pstricks.parser
Class PsRPutExpression  view PsRPutExpression download PsRPutExpression.java

java.lang.Object
  extended byjpicedt.graphic.io.parser.AbstractRegularExpression
      extended byjpicedt.graphic.io.parser.SequenceExpression
          extended byjpicedt.format.pstricks.parser.PsRPutExpression
All Implemented Interfaces:
jpicedt.graphic.io.parser.ExpressionConstants

public class PsRPutExpression
extends jpicedt.graphic.io.parser.SequenceExpression
implements jpicedt.graphic.io.parser.ExpressionConstants

\\rput[refpoint]{rotation}(x,y){stuff}
\\rput*[refpoint]{rotation}(x,y){stuff}
(line-breaks being allowed b/w each "block"), where :

Depending on the "stuff" found, instanciates :

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

Nested Class Summary
(package private)  class PsRPutExpression.Alignment
          [hv] alignment string for \\rput, provided that stuff is an HR-argument, or a box.
(package private)  class PsRPutExpression.EnclosedText
          handles {text} content (for PsFrameBox) by setting PicText's text content, replacing linefeeds by whitespaces beforehands (as TeX does...)
(package private)  class PsRPutExpression.HRArgument
          handles content of "{stuff}" when no other expression matches, by instanciating a PicText with "stuff" as the PicText string
(package private)  class PsRPutExpression.HRArgumentSucker
          swallow as many chars as possible and push them in "hrArgument" buffer, replacing CR by whitespaces, as TeX does.
(package private)  class PsRPutExpression.PsFrameBox
          \\psframebox[param]{text}}
 
Field Summary
static java.lang.String CIRCLE_BOX
           
private  java.lang.String horAlign
           
private  java.lang.StringBuffer hrArgument
           
static java.lang.String OVAL_BOX
           
private  jpicedt.graphic.io.parser.Pool pool
           
static java.lang.String RECTANGLE_BOX
           
private  double rotation
           
private  jpicedt.graphic.PicPoint rPutPoint
           
private  java.lang.String vertAlign
           
 
Fields inherited from class jpicedt.graphic.io.parser.SequenceExpression
 
Fields inherited from interface jpicedt.graphic.io.parser.ExpressionConstants
ANY_CHAR, ANY_CHAR_EOL, ANY_SIGN, AT_LEAST, AT_MOST, DEBUG, DOUBLE, EOL, EXACTLY, INTEGER, NEGATIVE, NON_NULL, POSITIVE, STRICTLY_NEGATIVE, STRICTLY_POSITIVE, WHITE_SPACES, WHITE_SPACES_OR_EOL
 
Constructor Summary
PsRPutExpression(jpicedt.graphic.io.parser.Pool pl)
           
 
Method Summary
 void action(jpicedt.graphic.io.parser.ParserEvent e)
          called when this SequenceExpression was successfully parsed -> reinit locals for next time
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class jpicedt.graphic.io.parser.SequenceExpression
add, interpret
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pool

private jpicedt.graphic.io.parser.Pool pool

vertAlign

private java.lang.String vertAlign

horAlign

private java.lang.String horAlign

rotation

private double rotation

rPutPoint

private jpicedt.graphic.PicPoint rPutPoint

hrArgument

private java.lang.StringBuffer hrArgument

RECTANGLE_BOX

public static final java.lang.String RECTANGLE_BOX
See Also:
Constant Field Values

CIRCLE_BOX

public static final java.lang.String CIRCLE_BOX
See Also:
Constant Field Values

OVAL_BOX

public static final java.lang.String OVAL_BOX
See Also:
Constant Field Values
Constructor Detail

PsRPutExpression

public PsRPutExpression(jpicedt.graphic.io.parser.Pool pl)
Method Detail

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


action

public void action(jpicedt.graphic.io.parser.ParserEvent e)
called when this SequenceExpression was successfully parsed -> reinit locals for next time