public final class GlyphBBoxOutlineConsumer extends Object implements OutlineConsumer
| Constructor and Description |
|---|
GlyphBBoxOutlineConsumer(Matrix finalMatrix) |
| Modifier and Type | Method and Description |
|---|---|
void |
curveto(double x1,
double y1,
double x2,
double y2)
Called for a quadratic curve.
|
void |
curveto(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Called for a cubic curve.
|
void |
endchar()
Called to signal the end of a glyph's outline.
|
Rect |
getBBox()
Returns the glyph bbox.
|
void |
lineto(double x,
double y)
Called for a line.
|
void |
moveto(double x,
double y)
Called to set a new currentpoint.
|
void |
reset()
resets the state of the consumer so that a new bbox can be calculated
|
void |
setMatrix(Matrix newMatrix)
Tells the OutlineConsumer the matrix to be applied to subsequent
points in order to get to a 1 ppem size.
|
public GlyphBBoxOutlineConsumer(Matrix finalMatrix)
public void reset()
public void setMatrix(Matrix newMatrix)
OutlineConsumersetMatrix in interface OutlineConsumerpublic void moveto(double x,
double y)
OutlineConsumermoveto in interface OutlineConsumerx - the x coordinate of the new currentpointy - the y coordinate of the new currentpointpublic void lineto(double x,
double y)
OutlineConsumerx, y). After this call, the currentpoint
should be x,ylineto in interface OutlineConsumerpublic void curveto(double x1,
double y1,
double x2,
double y2)
OutlineConsumerx2, y2),
(x3, y3). After this call, the
currentpoint should be x3, y3.curveto in interface OutlineConsumerpublic void curveto(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
OutlineConsumerx2, y2),
(x3, y3),
(x4, y4). After this call, the
currentpoint should be x4, y4.curveto in interface OutlineConsumerpublic Rect getBBox()
public void endchar()
OutlineConsumerendchar in interface OutlineConsumerCopyright © 2010 - 2020 Adobe. All Rights Reserved