public class BasicStrokeReadHandler extends AbstractXmlReadHandler
BasicStroke
object from XML.
To do: this should have a multiplexer in front like the PaintReadHandler
Modifier and Type | Field and Description |
---|---|
private java.awt.BasicStroke |
stroke
The stroke under construction.
|
Constructor and Description |
---|
BasicStrokeReadHandler()
Creates a new handler.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getObject()
Returns the stroke under construction.
|
private float[] |
parseDashArray(java.lang.String string)
Parses the dash array.
|
protected void |
startParsing(org.xml.sax.Attributes attrs)
Called at the start of parsing a
BasicStroke element, this method reads the
attributes and constructs the stroke. |
characters, doneParsing, endElement, getHandlerForChild, getRootHandler, getTagName, init, startElement
protected void startParsing(org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
BasicStroke
element, this method reads the
attributes and constructs the stroke.startParsing
in class AbstractXmlReadHandler
attrs
- the attributes.org.xml.sax.SAXException
- to indicate a parsing error.private float[] parseDashArray(java.lang.String string)
string
- the dash array string representation.public java.lang.Object getObject()