java.lang.Object
io.sf.carte.echosvg.parser.AbstractParser
io.sf.carte.echosvg.parser.NumberParser
io.sf.carte.echosvg.parser.TransformListParser
- All Implemented Interfaces:
- Localizable,- Parser
This class implements an event-based parser for the SVG transform attribute
 values.
- 
Field SummaryFields inherited from class io.sf.carte.echosvg.parser.AbstractParserBUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader
- 
Constructor SummaryConstructorsConstructorDescriptionTransformListParser(TransformListHandler handler) Creates a new TransformListParser with the given handler.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddoParse()Parses the current reader.Returns the transform list handler in use.protected voidParses a matrix transform.protected voidParses a rotate transform.protected voidParses a scale transform.protected voidParses a skew transform.protected voidParses a translate transform.voidAllows an application to register a transform list handler.protected voidSkips characters in the given reader until a ')' is encountered.Methods inherited from class io.sf.carte.echosvg.parser.NumberParserbuildFloat, parseFloatMethods inherited from class io.sf.carte.echosvg.parser.AbstractParsercreateErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, getPreferredUnit, handleCalc, handleIdent, handleListEnd, handleListStart, handleMathExpression, handleMathFunction, handleNumber, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces
- 
Constructor Details- 
TransformListParserCreates a new TransformListParser with the given handler.- Parameters:
- handler- The transform handler.
 
 
- 
- 
Method Details- 
setTransformListHandlerAllows an application to register a transform list handler.If the application does not register a handler, all events reported by the parser will be silently ignored. Applications may register a new or different handler in the middle of a parse, and the parser must begin using the new handler immediately. - Parameters:
- handler- The transform handler.
 
- 
getTransformListHandlerReturns the transform list handler in use.
- 
doParseParses the current reader.- Specified by:
- doParsein class- AbstractParser
- Throws:
- ParseException
- IOException
 
- 
parseMatrixParses a matrix transform. 'm' is assumed to be the current character.- Throws:
- ParseException
- IOException
 
- 
parseRotateParses a rotate transform. 'r' is assumed to be the current character.- Throws:
- ParseException
- IOException
 
- 
parseTranslateParses a translate transform. 't' is assumed to be the current character.- Throws:
- ParseException
- IOException
 
- 
parseScaleParses a scale transform. 'c' is assumed to be the current character.- Throws:
- ParseException
- IOException
 
- 
parseSkewParses a skew transform. 'e' is assumed to be the current character.- Throws:
- ParseException
- IOException
 
- 
skipTransformSkips characters in the given reader until a ')' is encountered.- Throws:
- IOException
 
 
-