org.graphstream.ui.graphicGraph.stylesheet.parser
Class StyleSheetParser

java.lang.Object
  extended by org.graphstream.ui.graphicGraph.stylesheet.parser.StyleSheetParser
All Implemented Interfaces:
StyleSheetParserConstants

public class StyleSheetParser
extends Object
implements StyleSheetParserConstants


Nested Class Summary
static class StyleSheetParser.Number
           
 
Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 StyleSheetParserTokenManager token_source
          Generated 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
StyleSheetParser(InputStream stream)
          Constructor with InputStream.
StyleSheetParser(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
StyleSheetParser(Reader stream)
          Constructor.
StyleSheetParser(StyleSheet stylesheet, InputStream stream)
           
StyleSheetParser(StyleSheetParserTokenManager tm)
          Constructor with generated Token Manager.
StyleSheetParser(StyleSheet stylesheet, Reader stream)
           
 
Method Summary
 StyleConstants.ArrowShape arrowShape()
           
 void close()
          Closes the parser, closing the opened stream.
 Color color()
           
 Colors colors()
           
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 StyleConstants.FillMode fillMode()
           
 String font()
           
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 String icon()
           
 StyleConstants.IconMode iconMode()
           
 StyleConstants.JComponents jcomponent()
           
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 void ReInit(StyleSheetParserTokenManager tm)
          Reinitialise.
 Rule rule()
           
 Selector select()
           
 StyleConstants.ShadowMode shadowMode()
           
 StyleConstants.Shape shape()
           
 StyleConstants.SizeMode sizeMode()
           
 StyleConstants.SpriteOrientation spriteOrient()
           
 void start()
           
 StyleConstants.StrokeMode strokeMode()
           
 void style(Style style)
           
 void styles(Style style)
           
 void stylesStart(Style style)
           
 StyleConstants.TextAlignment textAlign()
           
 StyleConstants.TextBackgroundMode textBgMode()
           
 StyleConstants.TextMode textMode()
           
 StyleConstants.TextStyle textStyle()
           
 StyleConstants.TextVisibilityMode textVisMode()
           
 String url()
           
 Value value()
           
 Values values()
           
 StyleConstants.VisibilityMode visMode()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public StyleSheetParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

StyleSheetParser

public StyleSheetParser(StyleSheet stylesheet,
                        InputStream stream)

StyleSheetParser

public StyleSheetParser(StyleSheet stylesheet,
                        Reader stream)

StyleSheetParser

public StyleSheetParser(InputStream stream)
Constructor with InputStream.


StyleSheetParser

public StyleSheetParser(InputStream stream,
                        String encoding)
Constructor with InputStream and supplied encoding


StyleSheetParser

public StyleSheetParser(Reader stream)
Constructor.


StyleSheetParser

public StyleSheetParser(StyleSheetParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

close

public void close()
           throws IOException
Closes the parser, closing the opened stream.

Throws:
IOException

start

public final void start()
                 throws ParseException
Throws:
ParseException

rule

public final Rule rule()
                throws ParseException
Throws:
ParseException

styles

public final void styles(Style style)
                  throws ParseException
Throws:
ParseException

stylesStart

public final void stylesStart(Style style)
                       throws ParseException
Throws:
ParseException

select

public final Selector select()
                      throws ParseException
Throws:
ParseException

style

public final void style(Style style)
                 throws ParseException
Throws:
ParseException

value

public final Value value()
                  throws ParseException
Throws:
ParseException

values

public final Values values()
                    throws ParseException
Throws:
ParseException

url

public final String url()
                 throws ParseException
Throws:
ParseException

icon

public final String icon()
                  throws ParseException
Throws:
ParseException

font

public final String font()
                  throws ParseException
Throws:
ParseException

color

public final Color color()
                  throws ParseException
Throws:
ParseException

colors

public final Colors colors()
                    throws ParseException
Throws:
ParseException

fillMode

public final StyleConstants.FillMode fillMode()
                                       throws ParseException
Throws:
ParseException

strokeMode

public final StyleConstants.StrokeMode strokeMode()
                                           throws ParseException
Throws:
ParseException

shadowMode

public final StyleConstants.ShadowMode shadowMode()
                                           throws ParseException
Throws:
ParseException

textMode

public final StyleConstants.TextMode textMode()
                                       throws ParseException
Throws:
ParseException

textVisMode

public final StyleConstants.TextVisibilityMode textVisMode()
                                                    throws ParseException
Throws:
ParseException

textBgMode

public final StyleConstants.TextBackgroundMode textBgMode()
                                                   throws ParseException
Throws:
ParseException

textStyle

public final StyleConstants.TextStyle textStyle()
                                         throws ParseException
Throws:
ParseException

sizeMode

public final StyleConstants.SizeMode sizeMode()
                                       throws ParseException
Throws:
ParseException

textAlign

public final StyleConstants.TextAlignment textAlign()
                                             throws ParseException
Throws:
ParseException

iconMode

public final StyleConstants.IconMode iconMode()
                                       throws ParseException
Throws:
ParseException

visMode

public final StyleConstants.VisibilityMode visMode()
                                            throws ParseException
Throws:
ParseException

shape

public final StyleConstants.Shape shape()
                                 throws ParseException
Throws:
ParseException

arrowShape

public final StyleConstants.ArrowShape arrowShape()
                                           throws ParseException
Throws:
ParseException

jcomponent

public final StyleConstants.JComponents jcomponent()
                                            throws ParseException
Throws:
ParseException

spriteOrient

public final StyleConstants.SpriteOrientation spriteOrient()
                                                    throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(StyleSheetParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Copyright © 2012. All Rights Reserved.