public static class GlyphPositioningTable.Anchor extends Object
Anchor class implements a anchor record, comprising an X,Y coordinate pair,
an optional anchor point index (or -1), and optional X or Y device tables (or null if absent).| Modifier | Constructor and Description |
|---|---|
protected |
Anchor(GlyphPositioningTable.Anchor a)
Instantiate an Anchor based on an existing anchor.
|
|
Anchor(int x,
int y)
Instantiate an Anchor (format 1).
|
|
Anchor(int x,
int y,
GlyphPositioningTable.DeviceTable xDevice,
GlyphPositioningTable.DeviceTable yDevice)
Instantiate an Anchor (format 3).
|
|
Anchor(int x,
int y,
int anchorPoint)
Instantiate an Anchor (format 2).
|
| Modifier and Type | Method and Description |
|---|---|
GlyphPositioningTable.Value |
getAlignmentAdjustment(GlyphPositioningTable.Anchor a)
Obtain adjustment value required to align the specified anchor
with this anchor.
|
int |
getAnchorPoint() |
int |
getX() |
GlyphPositioningTable.DeviceTable |
getXDevice() |
int |
getY() |
GlyphPositioningTable.DeviceTable |
getYDevice() |
String |
toString() |
public Anchor(int x,
int y)
x - the x coordinatey - the y coordinatepublic Anchor(int x,
int y,
int anchorPoint)
x - the x coordinatey - the y coordinateanchorPoint - anchor index (or -1)public Anchor(int x,
int y,
GlyphPositioningTable.DeviceTable xDevice,
GlyphPositioningTable.DeviceTable yDevice)
x - the x coordinatey - the y coordinatexDevice - the x device table (or null if not present)yDevice - the y device table (or null if not present)protected Anchor(GlyphPositioningTable.Anchor a)
a - the existing anchorpublic int getX()
public int getY()
public int getAnchorPoint()
public GlyphPositioningTable.DeviceTable getXDevice()
public GlyphPositioningTable.DeviceTable getYDevice()
public GlyphPositioningTable.Value getAlignmentAdjustment(GlyphPositioningTable.Anchor a)
a - the anchor to alignCopyright © 2023 Apache Software Foundation. All rights reserved.