org.extex.font.format.xtf.tables
Class TtfTableGLYF.CompositeComp

java.lang.Object
  extended by org.extex.font.format.xtf.tables.TtfTableGLYF.CompositeComp
Enclosing class:
TtfTableGLYF

public static class TtfTableGLYF.CompositeComp
extends java.lang.Object

Composite comp


Field Summary
static short ARG_1_AND_2_ARE_WORDS
          ARG_1_AND_2_ARE_WORDS
static short ARGS_ARE_XY_VALUES
          ARGS_ARE_XY_VALUES
static short MORE_COMPONENTS
          MORE_COMPONENTS
static short ROUND_XY_TO_GRID
          ROUND_XY_TO_GRID
static short USE_MY_METRICS
          USE_MY_METRICS
static short WE_HAVE_A_SCALE
          WE_HAVE_A_SCALE
static short WE_HAVE_A_TWO_BY_TWO
          WE_HAVE_A_TWO_BY_TWO
static short WE_HAVE_AN_X_AND_Y_SCALE
          WE_HAVE_AN_X_AND_Y_SCALE
static short WE_HAVE_INSTRUCTIONS
          WE_HAVE_INSTRUCTIONS
 
Method Summary
 short getArgument1()
          Returns the argument 1.
 short getArgument2()
          Returns the argument 2.
 int getFirstContour()
          Returns the first contour.
 int getFirstIndex()
          Returns the first index.
 short getFlags()
          Returns the flags.
 short getGlyphIndex()
          Returns the glyph index.
 int getPoint1()
          Getter for point1.
 int getPoint2()
          Getter for point2.
 double getScale01()
          Returns the scale 1.
 double getScale10()
          Returns the scale 0.
 double getXScale()
          Returns the x scale.
 int getXTranslate()
          Returns the x translate.
 double getYScale()
          Returns the y scale.
 int getYTranslate()
          Returns the y translate.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARG_1_AND_2_ARE_WORDS

public static final short ARG_1_AND_2_ARE_WORDS
ARG_1_AND_2_ARE_WORDS

See Also:
Constant Field Values

ARGS_ARE_XY_VALUES

public static final short ARGS_ARE_XY_VALUES
ARGS_ARE_XY_VALUES

See Also:
Constant Field Values

MORE_COMPONENTS

public static final short MORE_COMPONENTS
MORE_COMPONENTS

See Also:
Constant Field Values

ROUND_XY_TO_GRID

public static final short ROUND_XY_TO_GRID
ROUND_XY_TO_GRID

See Also:
Constant Field Values

USE_MY_METRICS

public static final short USE_MY_METRICS
USE_MY_METRICS

See Also:
Constant Field Values

WE_HAVE_A_SCALE

public static final short WE_HAVE_A_SCALE
WE_HAVE_A_SCALE

See Also:
Constant Field Values

WE_HAVE_A_TWO_BY_TWO

public static final short WE_HAVE_A_TWO_BY_TWO
WE_HAVE_A_TWO_BY_TWO

See Also:
Constant Field Values

WE_HAVE_AN_X_AND_Y_SCALE

public static final short WE_HAVE_AN_X_AND_Y_SCALE
WE_HAVE_AN_X_AND_Y_SCALE

See Also:
Constant Field Values

WE_HAVE_INSTRUCTIONS

public static final short WE_HAVE_INSTRUCTIONS
WE_HAVE_INSTRUCTIONS

See Also:
Constant Field Values
Method Detail

getArgument1

public short getArgument1()
Returns the argument 1.

Returns:
Returns the argument 1.

getArgument2

public short getArgument2()
Returns the argument 2.

Returns:
Returns the argument 2.

getFirstContour

public int getFirstContour()
Returns the first contour.

Returns:
Returns the first contour.

getFirstIndex

public int getFirstIndex()
Returns the first index.

Returns:
Returns the first index.

getFlags

public short getFlags()
Returns the flags.

Returns:
Returns the flags.

getGlyphIndex

public short getGlyphIndex()
Returns the glyph index.

Returns:
Returns the glyph index.

getPoint1

public int getPoint1()
Getter for point1.

Returns:
the point1

getPoint2

public int getPoint2()
Getter for point2.

Returns:
the point2

getScale01

public double getScale01()
Returns the scale 1.

Returns:
Returns the scale 1.

getScale10

public double getScale10()
Returns the scale 0.

Returns:
Returns the scale 0.

getXScale

public double getXScale()
Returns the x scale.

Returns:
Returns the x scale.

getXTranslate

public int getXTranslate()
Returns the x translate.

Returns:
Returns the x translate.

getYScale

public double getYScale()
Returns the y scale.

Returns:
Returns the y scale.

getYTranslate

public int getYTranslate()
Returns the y translate.

Returns:
Returns the y translate.

scaleX

public int scaleX(int x,
                  int y)
Transforms an x-coordinate of a point for this component.

Parameters:
x - The x-coordinate of the point to transform
y - The y-coordinate of the point to transform
Returns:
The transformed x-coordinate

scaleY

public int scaleY(int x,
                  int y)
Transforms a y-coordinate of a point for this component.

Parameters:
x - The x-coordinate of the point to transform
y - The y-coordinate of the point to transform
Returns:
The transformed y-coordinate