| Constructor and Description |
|---|
TwoArraysPathData()
Creates an encoder that will encode the path data in two byte arrays.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendCommand(int command)
Appends a command.
|
void |
appendCoordinate(double coordinate)
Appends a coordinate.
|
ImageGenerator.Format |
getFormat()
Gets the format used to encode the path data.
|
byte[] |
getPathCommands()
Gets the buffer that contains the encoded commands.
|
byte[] |
getPathParams()
Gets the buffer that contains the encoded command paramerters.
|
void |
reset()
Resets the path data buffer(s).
|
public TwoArraysPathData()
public void reset()
PathDatapublic ImageGenerator.Format getFormat()
PathDatagetFormat in interface PathDataImageGenerator.Formatpublic void appendCommand(int command)
PathDataappendCommand in interface PathDatacommand - the command to addpublic void appendCoordinate(double coordinate)
PathDataappendCoordinate in interface PathDatacoordinate - the coordinate to addpublic byte[] getPathParams()
public byte[] getPathCommands()