Class StyleSheetParser
java.lang.Object
org.graphstream.ui.graphicGraph.stylesheet.parser.StyleSheetParser
- All Implemented Interfaces:
StyleSheetParserConstants
public class StyleSheetParser extends Object implements StyleSheetParserConstants
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStyleSheetParser.Number -
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.TokentokenCurrent token.StyleSheetParserTokenManagertoken_sourceGenerated Token Manager.Fields inherited from interface org.graphstream.ui.graphicGraph.stylesheet.parser.StyleSheetParserConstants
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 Summary
Constructors Constructor Description StyleSheetParser(InputStream stream)Constructor with InputStream.StyleSheetParser(InputStream stream, String encoding)Constructor with InputStream and supplied encodingStyleSheetParser(Reader stream)Constructor.StyleSheetParser(StyleSheetParserTokenManager tm)Constructor with generated Token Manager.StyleSheetParser(StyleSheet stylesheet, InputStream stream)StyleSheetParser(StyleSheet stylesheet, Reader stream) -
Method Summary
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
StyleSheetParser
-
StyleSheetParser
-
StyleSheetParser
Constructor with InputStream. -
StyleSheetParser
Constructor with InputStream and supplied encoding -
StyleSheetParser
Constructor. -
StyleSheetParser
Constructor with generated Token Manager.
-
-
Method Details
-
close
Closes the parser, closing the opened stream.- Throws:
IOException
-
start
- Throws:
ParseException
-
rule
- Throws:
ParseException
-
styles
- Throws:
ParseException
-
stylesStart
- Throws:
ParseException
-
select
- Throws:
ParseException
-
style
- Throws:
ParseException
-
value
- Throws:
ParseException
-
values
- Throws:
ParseException
-
url
- Throws:
ParseException
-
icon
- Throws:
ParseException
-
font
- Throws:
ParseException
-
color
- Throws:
ParseException
-
colors
- Throws:
ParseException
-
fillMode
- Throws:
ParseException
-
strokeMode
- Throws:
ParseException
-
shadowMode
- Throws:
ParseException
-
textMode
- Throws:
ParseException
-
textVisMode
- Throws:
ParseException
-
textBgMode
- Throws:
ParseException
-
textStyle
- Throws:
ParseException
-
sizeMode
- Throws:
ParseException
-
textAlign
- Throws:
ParseException
-
iconMode
- Throws:
ParseException
-
visMode
- Throws:
ParseException
-
shape
- Throws:
ParseException
-
arrowShape
- Throws:
ParseException
-
jcomponent
- Throws:
ParseException
-
spriteOrient
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-