Class GlyfSimpleDescript
java.lang.Object
org.apache.batik.svggen.font.table.Program
org.apache.batik.svggen.font.table.GlyfDescript
org.apache.batik.svggen.font.table.GlyfSimpleDescript
- All Implemented Interfaces:
GlyphDescription
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate int[]private byte[]private short[]private short[]Fields inherited from class GlyfDescript
onCurve, parentTable, repeat, xDual, xShortVector, yDual, yShortVector -
Constructor Summary
ConstructorsConstructorDescriptionGlyfSimpleDescript(GlyfTable parentTable, short numberOfContours, ByteArrayInputStream bais) -
Method Summary
Modifier and TypeMethodDescriptionintintgetEndPtOfContours(int i) bytegetFlags(int i) intshortgetXCoordinate(int i) shortgetYCoordinate(int i) booleanprivate voidreadCoords(int count, ByteArrayInputStream bais) The table is stored as relative values, but we'll store them as absolutesprivate voidreadFlags(int flagCount, ByteArrayInputStream bais) The flags are run-length encodedMethods inherited from class GlyfDescript
getNumberOfContours, getXMaximum, getXMinimum, getYMaximum, getYMinimum, resolveMethods inherited from class Program
getInstructions, readInstructions, readInstructions
-
Field Details
-
endPtsOfContours
private int[] endPtsOfContours -
flags
private byte[] flags -
xCoordinates
private short[] xCoordinates -
yCoordinates
private short[] yCoordinates -
count
private int count
-
-
Constructor Details
-
GlyfSimpleDescript
-
-
Method Details
-
getEndPtOfContours
public int getEndPtOfContours(int i) -
getFlags
public byte getFlags(int i) -
getXCoordinate
public short getXCoordinate(int i) -
getYCoordinate
public short getYCoordinate(int i) -
isComposite
public boolean isComposite() -
getPointCount
public int getPointCount() -
getContourCount
public int getContourCount() -
readCoords
The table is stored as relative values, but we'll store them as absolutes -
readFlags
The flags are run-length encoded
-