| java.lang.Object com.sun.pdfview.font.ttf.Glyf
All known Subclasses: com.sun.pdfview.font.ttf.GlyfCompound, com.sun.pdfview.font.ttf.GlyfSimple,
Glyf | public class Glyf (Code) | | A single glyph in a pdf font. May be simple or compound via subclasses
|
Constructor Summary | |
protected | Glyf() |
Method Summary | |
public ByteBuffer | getData() Get the data in this glyf as a byte buffer. | public static Glyf | getGlyf(ByteBuffer data) Get a map from the given data
This method reads the format, data and length variables of
the map. | public short | getLength() Get the length of this glyf. | public short | getMaxX() | public short | getMaxY() | public short | getMinX() | public short | getMinY() | public short | getNumContours() | public boolean | isCompound() | protected void | setCompound(boolean isCompound) | public void | setData(ByteBuffer data) Set the data for this glyf. | protected void | setMaxX(short maxX) | protected void | setMaxY(short maxY) | protected void | setMinX(short minX) | protected void | setMinY(short minY) | protected void | setNumContours(short numContours) |
Glyf | protected Glyf()(Code) | | Creates a new instance of glyf
Don't use this directly, use Glyf.getGlyf()
|
getData | public ByteBuffer getData()(Code) | | Get the data in this glyf as a byte buffer. Return the basic
glyf data only, since there is no specific data. This method returns
the data un-flipped, so subclasses can simply append to the allocated
buffer.
|
getGlyf | public static Glyf getGlyf(ByteBuffer data)(Code) | | Get a map from the given data
This method reads the format, data and length variables of
the map.
|
getLength | public short getLength()(Code) | | Get the length of this glyf. A glyf with no data has a length
of 10 (2 bytes each for 5 short values)
|
getMaxX | public short getMaxX()(Code) | | Get the maximum x in this glyf
|
getMaxY | public short getMaxY()(Code) | | Get the maximum y in this glyf
|
getMinX | public short getMinX()(Code) | | Get the minimum x in this glyf
|
getMinY | public short getMinY()(Code) | | Get the minimum y in this glyf
|
getNumContours | public short getNumContours()(Code) | | Get the number of contours in this glyf
|
isCompound | public boolean isCompound()(Code) | | Get whether this is a simple or compound glyf
|
setCompound | protected void setCompound(boolean isCompound)(Code) | | Set whether this is a simple or compound glyf
|
setData | public void setData(ByteBuffer data)(Code) | | Set the data for this glyf. Do nothing, since a glyf with
no contours has no glyf data.
|
setMaxX | protected void setMaxX(short maxX)(Code) | | Set the maximum X in this glyf
|
setMaxY | protected void setMaxY(short maxY)(Code) | | Set the maximum Y in this glyf
|
setMinX | protected void setMinX(short minX)(Code) | | Set the minimum X in this glyf
|
setMinY | protected void setMinY(short minY)(Code) | | Set the minimum Y in this glyf
|
setNumContours | protected void setNumContours(short numContours)(Code) | | Set the number of contours in this glyf
|
|
|