Package org.jfree.xml.parser.coretypes
Class BasicStrokeReadHandler
java.lang.Object
org.jfree.xml.parser.AbstractXmlReadHandler
org.jfree.xml.parser.coretypes.BasicStrokeReadHandler
- All Implemented Interfaces:
XmlReadHandler
A SAX handler for reading a
BasicStroke
object from XML.
To do: this should have a multiplexer in front like the PaintReadHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the stroke under construction.private float[]
parseDashArray
(String string) Parses the dash array.protected void
startParsing
(Attributes attrs) Called at the start of parsing aBasicStroke
element, this method reads the attributes and constructs the stroke.Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
characters, doneParsing, endElement, getHandlerForChild, getRootHandler, getTagName, init, startElement
-
Field Details
-
stroke
The stroke under construction.
-
-
Constructor Details
-
BasicStrokeReadHandler
public BasicStrokeReadHandler()Creates a new handler.
-
-
Method Details
-
startParsing
Called at the start of parsing aBasicStroke
element, this method reads the attributes and constructs the stroke.- Overrides:
startParsing
in classAbstractXmlReadHandler
- Parameters:
attrs
- the attributes.- Throws:
SAXException
- to indicate a parsing error.
-
parseDashArray
Parses the dash array.- Parameters:
string
- the dash array string representation.- Returns:
- a dash array.
-
getObject
Returns the stroke under construction.- Returns:
- the stroke.
-