java.lang.Object
com.github.weisj.jsvg.util.ParserBase
com.github.weisj.jsvg.geometry.path.PathParser
A helper for parsing
PathCommand
s.-
Field Summary
FieldsFields inherited from class com.github.weisj.jsvg.util.ParserBase
input
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
isCommandChar
(char c) private boolean
nextFlag()
float
@NotNull BezierPathCommand
private void
parsePathCommandInto
(List<PathCommand> commands) Methods inherited from class com.github.weisj.jsvg.util.ParserBase
consume, consumeWhiteSpaceOrSeparator, currentLocation, hasNext, nextDouble, nextFloatOrUnspecified, peek
-
Field Details
-
LOGGER
-
currentCommand
private char currentCommand
-
-
Constructor Details
-
PathParser
-
-
Method Details
-
isCommandChar
private boolean isCommandChar(char c) -
nextFloat
- Overrides:
nextFloat
in classParserBase
- Throws:
NumberFormatException
-
nextFlag
private boolean nextFlag() -
parseMeshCommand
-
parsePathCommand
-
parsePathCommandInto
-