public abstract class PathParserBase
extends java.lang.Object
Constructor and Description |
---|
PathParserBase() |
Modifier and Type | Method and Description |
---|---|
static java.awt.geom.GeneralPath |
get(byte[] pathData,
int pathOffset,
int pathLength,
int pathFormat)
Compute VGlite path to a GeneralPath with a specific parser
|
protected abstract double |
getCommand(java.nio.ByteBuffer b)
get vglite command from path
|
protected abstract double |
getCoordinate(java.nio.ByteBuffer b)
get a point coordinate from path
|
protected java.awt.geom.GeneralPath |
toPath(byte[] pathData,
int pathOffset,
int pathLength)
Compute VGlite path to a GeneralPath
|
protected abstract double getCommand(java.nio.ByteBuffer b)
b
- ByteBuffer containing the pathprotected abstract double getCoordinate(java.nio.ByteBuffer b)
b
- ByteBuffer containing the pathprotected java.awt.geom.GeneralPath toPath(byte[] pathData, int pathOffset, int pathLength)
pathData
- VGlite pathpathOffset
- offset on the pathpathLength
- path lengthpublic static java.awt.geom.GeneralPath get(byte[] pathData, int pathOffset, int pathLength, int pathFormat)
pathData
- VGlite pathpathOffset
- offset on the pathpathLength
- path lengthpathFormat
- path format