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

Quick Search    Search Deep

com.port80.text
Class AttrTextParser  view AttrTextParser download AttrTextParser.java

java.lang.Object
  extended bycom.port80.text.AttrTextParser

public class AttrTextParser
extends java.lang.Object


Field Summary
(package private)  int align
           
static int ALIGN_ALT
          Right align the whole line.
static int ALIGN_CENTER
          Left align the whole line.
static int ALIGN_HR_AFTER
          Horizontal ruler before line.
static int ALIGN_HR_BEFORE
          Ignore line if exclude>0.
static int ALIGN_LEFT
          Default (CENTER).
static int ALIGN_NONE
          Line attributes.
static int ALIGN_RIGHT
          Center align the whole line.
(package private)  java.util.List attrList
           
(package private)  java.util.List attrStack
           
(package private)  IState attrState
           
(package private)  IState elementState
           
(package private)  java.util.Stack fontStack
           
(package private)  IState normalState
          Horizontal ruler after line.
(package private)  java.lang.StringBuffer textBuf
           
 
Constructor Summary
AttrTextParser()
           
 
Method Summary
 int getAlign()
           
 java.util.List getAttrs()
           
 java.lang.String getText()
           
static AttrTextParser parse(java.lang.String text, java.awt.Font defaultfont, java.util.List astack)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIGN_NONE

public static final int ALIGN_NONE
Line attributes.

See Also:
Constant Field Values

ALIGN_LEFT

public static final int ALIGN_LEFT
Default (CENTER).

See Also:
Constant Field Values

ALIGN_CENTER

public static final int ALIGN_CENTER
Left align the whole line.

See Also:
Constant Field Values

ALIGN_RIGHT

public static final int ALIGN_RIGHT
Center align the whole line.

See Also:
Constant Field Values

ALIGN_ALT

public static final int ALIGN_ALT
Right align the whole line.

See Also:
Constant Field Values

ALIGN_HR_BEFORE

public static final int ALIGN_HR_BEFORE
Ignore line if exclude>0.

See Also:
Constant Field Values

ALIGN_HR_AFTER

public static final int ALIGN_HR_AFTER
Horizontal ruler before line.

See Also:
Constant Field Values

normalState

IState normalState
Horizontal ruler after line.


attrState

IState attrState

elementState

IState elementState

textBuf

java.lang.StringBuffer textBuf

fontStack

java.util.Stack fontStack

attrList

java.util.List attrList

attrStack

java.util.List attrStack

align

int align
Constructor Detail

AttrTextParser

public AttrTextParser()
Method Detail

parse

public static AttrTextParser parse(java.lang.String text,
                                   java.awt.Font defaultfont,
                                   java.util.List astack)

getText

public java.lang.String getText()

getAttrs

public java.util.List getAttrs()

getAlign

public int getAlign()