public class GlyfCompositeComp
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
ARG_1_AND_2_ARE_WORDS |
static short |
ARGS_ARE_XY_VALUES |
private short |
argument1 |
private short |
argument2 |
private int |
firstContour |
private int |
firstIndex |
private short |
flags |
private int |
glyphIndex |
static short |
MORE_COMPONENTS |
private int |
point1 |
private int |
point2 |
static short |
ROUND_XY_TO_GRID |
private double |
scale01 |
private double |
scale10 |
static short |
USE_MY_METRICS |
static short |
WE_HAVE_A_SCALE |
static short |
WE_HAVE_A_TWO_BY_TWO |
static short |
WE_HAVE_AN_X_AND_Y_SCALE |
static short |
WE_HAVE_INSTRUCTIONS |
private double |
xscale |
private int |
xtranslate |
private double |
yscale |
private int |
ytranslate |
Modifier | Constructor and Description |
---|---|
protected |
GlyfCompositeComp(java.io.ByteArrayInputStream bais) |
Modifier and Type | Method and Description |
---|---|
short |
getArgument1() |
short |
getArgument2() |
int |
getFirstContour() |
int |
getFirstIndex() |
short |
getFlags() |
int |
getGlyphIndex() |
double |
getScale01() |
double |
getScale10() |
double |
getXScale() |
int |
getXTranslate() |
double |
getYScale() |
int |
getYTranslate() |
int |
scaleX(int x,
int y)
Transforms an x-coordinate of a point for this component.
|
int |
scaleY(int x,
int y)
Transforms a y-coordinate of a point for this component.
|
void |
setFirstContour(int idx) |
void |
setFirstIndex(int idx) |
public static final short ARG_1_AND_2_ARE_WORDS
public static final short ARGS_ARE_XY_VALUES
public static final short ROUND_XY_TO_GRID
public static final short WE_HAVE_A_SCALE
public static final short MORE_COMPONENTS
public static final short WE_HAVE_AN_X_AND_Y_SCALE
public static final short WE_HAVE_A_TWO_BY_TWO
public static final short WE_HAVE_INSTRUCTIONS
public static final short USE_MY_METRICS
private int firstIndex
private int firstContour
private short argument1
private short argument2
private short flags
private int glyphIndex
private double xscale
private double yscale
private double scale01
private double scale10
private int xtranslate
private int ytranslate
private int point1
private int point2
public void setFirstIndex(int idx)
public int getFirstIndex()
public void setFirstContour(int idx)
public int getFirstContour()
public short getArgument1()
public short getArgument2()
public short getFlags()
public int getGlyphIndex()
public double getScale01()
public double getScale10()
public double getXScale()
public double getYScale()
public int getXTranslate()
public int getYTranslate()
public int scaleX(int x, int y)
x
- The x-coordinate of the point to transformy
- The y-coordinate of the point to transformpublic int scaleY(int x, int y)
x
- The x-coordinate of the point to transformy
- The y-coordinate of the point to transform