public class StyleSheetParser extends java.lang.Object implements StyleSheetParserConstants
Modifier and Type | Class and Description |
---|---|
static class |
StyleSheetParser.Number |
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
StyleSheetParserTokenManager |
token_source
Generated Token Manager.
|
ABOVE, ALONG, ANGLE, ARROW, ARROWIMGURL, ARROWSHAPE, ARROWSIZE, ATLEFT, ATRIGHT, ATZOOM, BLOB, BOLD, BOLD_ITALIC, BOX, BUTTON, CANVASCOLOR, CENTER, CIRCLE, CLICKED, COLON, COMA, COMMENT, CROSS, CUBICCURVE, DASHES, DEFAULT, DIAMOND, DIGIT, DOT, DOTS, DOUBLE, DYNICON, DYNPLAIN, DYNSIZE, EDGE, EOF, EOL, FILLCOLOR, FILLIMAGE, FILLMODE, FIT, FLOW, FREEPLANE, FROM, GRADIENTDIAGONAL1, GRADIENTDIAGONAL2, GRADIENTHORIZONTAL, GRADIENTRADIAL, GRADIENTVERTICAL, GRAPH, HEXDIGIT, HIDDEN, HSQUARELINE, HTMLCOLOR, ICON, ICONMODE, IDENTIFIER, IMAGE, IMAGES, IMAGESCALED, IMAGESCALEDRATIOMAX, IMAGESCALEDRATIOMIN, IMAGETILED, ITALIC, JCOMPONENT, JUSTIFY, LBRACE, LEFT, LINE, LPAREN, LSQUARELINE, NODE, NODE0, NODE1, NONE, NORMAL, OVERZOOM, PADDING, PANEL, PIECHART, PLAIN, POLYGON, POLYLINE, POLYLINESCALED, PROJECTION, RBRACE, REAL, RGB, RGBA, RIGHT, ROUNDEDBOX, RPAREN, SELECTED, SEMICOLON, SHADOWCOLOR, SHADOWMODE, SHADOWOFFSET, SHADOWWIDTH, SHAPE, SHAPEPOINTS, SHARP, SIZE, SIZEMODE, SPRITE, SPRITEORIENT, SQUARELINE, STRING, STROKECOLOR, STROKEMODE, STROKEWIDTH, TEXTALIGNMENT, TEXTBACKGROUNDCOLOR, TEXTBACKGROUNDMODE, TEXTBOX, TEXTCIRCLE, TEXTCOLOR, TEXTDIAMOND, TEXTFIELD, TEXTFONT, TEXTMODE, TEXTOFFSET, TEXTPADDING, TEXTPARAGRAPH, TEXTROUNDEDBOX, TEXTSIZE, TEXTSTYLE, TEXTVISIBILITY, TEXTVISIBILITYMODE, TO, tokenImage, TRIANGLE, TRUNCATED, UNDER, UNDERZOOM, UNITS, URL, VISIBILITY, VISIBILITYMODE, VSQUARELINE, ZINDEX, ZOOMRANGE, ZOOMS
Constructor and Description |
---|
StyleSheetParser(java.io.InputStream stream)
Constructor with InputStream.
|
StyleSheetParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
StyleSheetParser(java.io.Reader stream)
Constructor.
|
StyleSheetParser(StyleSheet stylesheet,
java.io.InputStream stream) |
StyleSheetParser(StyleSheetParserTokenManager tm)
Constructor with generated Token Manager.
|
StyleSheetParser(StyleSheet stylesheet,
java.io.Reader stream) |
public StyleSheetParserTokenManager token_source
public Token token
public Token jj_nt
public StyleSheetParser(StyleSheet stylesheet, java.io.InputStream stream)
public StyleSheetParser(StyleSheet stylesheet, java.io.Reader stream)
public StyleSheetParser(java.io.InputStream stream)
public StyleSheetParser(java.io.InputStream stream, java.lang.String encoding)
public StyleSheetParser(java.io.Reader stream)
public StyleSheetParser(StyleSheetParserTokenManager tm)
public void close() throws java.io.IOException
java.io.IOException
public final void start() throws ParseException
ParseException
public final Rule rule() throws ParseException
ParseException
public final void styles(Style style) throws ParseException
ParseException
public final void stylesStart(Style style) throws ParseException
ParseException
public final Selector select() throws ParseException
ParseException
public final void style(Style style) throws ParseException
ParseException
public final Value value() throws ParseException
ParseException
public final Values values() throws ParseException
ParseException
public final java.lang.String url() throws ParseException
ParseException
public final java.lang.String icon() throws ParseException
ParseException
public final java.lang.String font() throws ParseException
ParseException
public final Color color() throws ParseException
ParseException
public final Colors colors() throws ParseException
ParseException
public final StyleConstants.FillMode fillMode() throws ParseException
ParseException
public final StyleConstants.StrokeMode strokeMode() throws ParseException
ParseException
public final StyleConstants.ShadowMode shadowMode() throws ParseException
ParseException
public final StyleConstants.TextMode textMode() throws ParseException
ParseException
public final StyleConstants.TextVisibilityMode textVisMode() throws ParseException
ParseException
public final StyleConstants.TextBackgroundMode textBgMode() throws ParseException
ParseException
public final StyleConstants.TextStyle textStyle() throws ParseException
ParseException
public final StyleConstants.SizeMode sizeMode() throws ParseException
ParseException
public final StyleConstants.TextAlignment textAlign() throws ParseException
ParseException
public final StyleConstants.IconMode iconMode() throws ParseException
ParseException
public final StyleConstants.VisibilityMode visMode() throws ParseException
ParseException
public final StyleConstants.Shape shape() throws ParseException
ParseException
public final StyleConstants.ArrowShape arrowShape() throws ParseException
ParseException
public final StyleConstants.JComponents jcomponent() throws ParseException
ParseException
public final StyleConstants.SpriteOrientation spriteOrient() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(StyleSheetParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()