public abstract class PathBufferBase
extends java.lang.Object
vg_lite_path
.2.4 Vector Path Data Opcodes
of VGLite® Graphics API v2.07
.Modifier and Type | Field and Description |
---|---|
protected static int |
CMD_CLOSE
Closes a path.
|
protected static int |
CMD_CUBIC
Cubic curve from current position to an absolute destination.
|
protected static int |
CMD_CUBIC_REL
Cubic curve from current position to an relative destination.
|
protected static int |
CMD_LINE
Line from current position to an absolute destination.
|
protected static int |
CMD_LINE_REL
Line from current position to a relative destination.
|
protected static int |
CMD_MOVE
Move to a destination.
|
protected static int |
CMD_QUAD
Quadratic curve from current position to an absolute destination.
|
protected static int |
CMD_QUAD_REL
Quadratic curve from current position to an relative destination.
|
Constructor and Description |
---|
PathBufferBase()
Constructor for the PathBufferBase class
This constructor allocates a chunk of memory for the path data
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the path
|
protected abstract void |
command(int cmd)
Adds a command with zero points in the path data
|
protected byte[] |
extend()
Extends the path data array with an extra chunk
|
protected byte[] |
extend(int nbFields)
Extends the path data array to contain a given number of fields
|
abstract int |
getFormat() |
protected abstract int |
getUnitSize() |
boolean |
isClosed() |
void |
reset()
Resets the path
|
com.verisilicon.vivante.vg_lite_path |
toVGLitePath(float left,
float top,
float right,
float bottom,
int quality)
Convert the path to a
vg_lite_path . |
void |
updateVGLitePath(com.verisilicon.vivante.vg_lite_path vgLitePath,
float left,
float top,
float right,
float bottom,
int quality)
Updates an existing
vg_lite_path . |
protected static final int CMD_CLOSE
protected static final int CMD_MOVE
protected static final int CMD_LINE
protected static final int CMD_LINE_REL
protected static final int CMD_QUAD
protected static final int CMD_QUAD_REL
protected static final int CMD_CUBIC
protected static final int CMD_CUBIC_REL
public PathBufferBase()
protected byte[] extend()
protected byte[] extend(int nbFields)
nbFields
- Number of fields that will be addedprotected abstract int getUnitSize()
public abstract int getFormat()
protected abstract void command(int cmd)
cmd
- the command to add in the path datapublic boolean isClosed()
public void close()
public void reset()
public com.verisilicon.vivante.vg_lite_path toVGLitePath(float left, float top, float right, float bottom, int quality)
vg_lite_path
.left
- left bound of the pathtop
- top bound of the pathright
- right bound of the pathbottom
- bottom bound of the pathquality
- vg_lite quality of the pathvg_lite_path
classpublic void updateVGLitePath(com.verisilicon.vivante.vg_lite_path vgLitePath, float left, float top, float right, float bottom, int quality)
vg_lite_path
.vgLitePath
- the path to update *left
- left bound of the pathtop
- top bound of the pathright
- right bound of the pathbottom
- bottom bound of the pathquality
- vg_lite quality of the path