|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.pdfview.font.ttf.Glyf
com.sun.pdfview.font.ttf.GlyfSimple
public class GlyfSimple
A single simple glyph in a pdf font.
Constructor Summary | |
---|---|
protected |
GlyfSimple()
Creates a new instance of a simple glyf |
Method Summary | |
---|---|
short |
getContourEndPoint(int index)
Get the end point of a given contour |
java.nio.ByteBuffer |
getData()
Get the data in this glyf as a byte buffer. |
byte |
getFlag(int pointIndex)
Get a given flag |
byte |
getInstruction(int index)
Get a given instruction |
short |
getLength()
Get the length of this glyf. |
short |
getNumInstructions()
Get the number of instructions |
short |
getNumPoints()
Get the number of points in the glyf |
short |
getXCoord(int pointIndex)
Get a given x coordinate |
short |
getYCoord(int pointIndex)
Get a given y coordinate |
boolean |
onCurve(int pointIndex)
Determine whether the given point is on the curve |
protected boolean |
repeat(int pointIndex)
Determine whether this flag repeats |
protected void |
setContourEndPoints(short[] contourEndPts)
Set the number of contours in this glyf |
void |
setData(java.nio.ByteBuffer data)
Set the data for this glyf. |
protected void |
setFlags(byte[] flags)
Set the flags |
protected void |
setInstructions(byte[] instructions)
Set the instructions |
protected void |
setXCoords(short[] xCoords)
Set the x coordinates |
protected void |
setYCoords(short[] yCoords)
Set the x coordinates |
protected boolean |
xIsByte(int pointIndex)
Determine whether the x value for the given point is byte or short. |
protected boolean |
xIsSame(int pointIndex)
Determine whether the x value for the given point is the same as the previous value. |
protected boolean |
yIsByte(int pointIndex)
Determine whether the x value for the given point is byte or short. |
protected boolean |
yIsSame(int pointIndex)
Determine whether the y value for the given point is the same as the previous value. |
Methods inherited from class com.sun.pdfview.font.ttf.Glyf |
---|
getGlyf, getMaxX, getMaxY, getMinX, getMinY, getNumContours, isCompound, setCompound, setMaxX, setMaxY, setMinX, setMinY, setNumContours |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GlyfSimple()
Method Detail |
---|
public void setData(java.nio.ByteBuffer data)
setData
in class Glyf
public java.nio.ByteBuffer getData()
getData
in class Glyf
public short getLength()
getLength
in class Glyf
public short getContourEndPoint(int index)
protected void setContourEndPoints(short[] contourEndPts)
public short getNumInstructions()
public byte getInstruction(int index)
protected void setInstructions(byte[] instructions)
public short getNumPoints()
public byte getFlag(int pointIndex)
public boolean onCurve(int pointIndex)
protected boolean xIsByte(int pointIndex)
protected boolean yIsByte(int pointIndex)
protected boolean repeat(int pointIndex)
protected boolean xIsSame(int pointIndex)
protected boolean yIsSame(int pointIndex)
protected void setFlags(byte[] flags)
public short getXCoord(int pointIndex)
protected void setXCoords(short[] xCoords)
public short getYCoord(int pointIndex)
protected void setYCoords(short[] yCoords)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |