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
public class GlyfSimpleDescript extends GlyfDescript
- Version:
- $Id: GlyfSimpleDescript.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description private int
count
private int[]
endPtsOfContours
private byte[]
flags
private short[]
xCoordinates
private short[]
yCoordinates
-
Fields inherited from class org.apache.batik.svggen.font.table.GlyfDescript
onCurve, parentTable, repeat, xDual, xShortVector, yDual, yShortVector
-
-
Constructor Summary
Constructors Constructor Description GlyfSimpleDescript(GlyfTable parentTable, short numberOfContours, java.io.ByteArrayInputStream bais)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getContourCount()
int
getEndPtOfContours(int i)
byte
getFlags(int i)
int
getPointCount()
short
getXCoordinate(int i)
short
getYCoordinate(int i)
boolean
isComposite()
private void
readCoords(int count, java.io.ByteArrayInputStream bais)
The table is stored as relative values, but we'll store them as absolutesprivate void
readFlags(int flagCount, java.io.ByteArrayInputStream bais)
The flags are run-length encoded-
Methods inherited from class org.apache.batik.svggen.font.table.GlyfDescript
getNumberOfContours, getXMaximum, getXMinimum, getYMaximum, getYMinimum, resolve
-
Methods inherited from class org.apache.batik.svggen.font.table.Program
getInstructions, readInstructions, readInstructions
-
-
-
-
Constructor Detail
-
GlyfSimpleDescript
public GlyfSimpleDescript(GlyfTable parentTable, short numberOfContours, java.io.ByteArrayInputStream bais)
-
-
Method Detail
-
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
private void readCoords(int count, java.io.ByteArrayInputStream bais)
The table is stored as relative values, but we'll store them as absolutes
-
readFlags
private void readFlags(int flagCount, java.io.ByteArrayInputStream bais)
The flags are run-length encoded
-
-