net.sf.latexdraw.parsers.svg.parsers
Class CSSStyleParser
java.lang.Object
net.sf.latexdraw.parsers.CodeParser
net.sf.latexdraw.parsers.css.AbstractCSSParser
net.sf.latexdraw.parsers.svg.parsers.CSSStyleParser
- All Implemented Interfaces:
- Parser
public class CSSStyleParser
- extends AbstractCSSParser
Defines a parser that parses a SVG CSS style attribute.
This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
10/24/07
- Version:
- 3.0
- Author:
- Arnaud BLOUIN
Field Summary |
protected CSSStyleHandler |
handler
The handler which will manage actions to do when a CSS style is parsed. |
Method Summary |
void |
parse()
Launches the parsing. |
Methods inherited from class net.sf.latexdraw.parsers.CodeParser |
getChar, getCharAt, getCode, getCodeCore, getLinePosition, getPosition, incLinePosition, initialise, isEOC, isEOL, nextChar, setCode, setCodeCore, setLinePosition, setPosition, skipWSPComments |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
handler
protected CSSStyleHandler handler
- The handler which will manage actions to do when a CSS style is parsed. @since 0.1
CSSStyleParser
public CSSStyleParser(java.lang.String code,
CSSStyleHandler handler)
- The constructor.
- Parameters:
code
- The code to parse (must not be null).handler
- The CSS style handler.
- Throws:
java.lang.IllegalArgumentException
- If the given handler is null.
parse
public void parse()
throws java.text.ParseException
- Description copied from interface:
Parser
- Launches the parsing.
- Throws:
java.text.ParseException
- If an error occurs.