public class OutlineConsumerAdapter extends Object implements OutlineConsumer
OutlineConsumer2 as an OutlineConsumer.
The client of this class should take care to call startOutline()
and endOutline() appropriately, as those methods are not
invoked through the OutlineConsumer interface.| Constructor and Description |
|---|
OutlineConsumerAdapter(OutlineConsumer2 dest) |
| Modifier and Type | Method and Description |
|---|---|
void |
curveto(double x2,
double y2,
double x3,
double y3)
Called for a quadratic curve.
|
void |
curveto(double x2,
double y2,
double x3,
double y3,
double x4,
double y4)
Called for a cubic curve.
|
void |
endchar()
Called to signal the end of a glyph's outline.
|
void |
endOutline() |
void |
lineto(double x2,
double y2)
Called for a line.
|
void |
moveto(double x,
double y)
Called to set a new currentpoint.
|
void |
setEmToPixelMatrix(Matrix m) |
void |
setMatrix(Matrix m)
Tells the OutlineConsumer the matrix to be applied to subsequent
points in order to get to a 1 ppem size.
|
void |
startOutline() |
public OutlineConsumerAdapter(OutlineConsumer2 dest)
public void startOutline()
public void setMatrix(Matrix m)
OutlineConsumersetMatrix in interface OutlineConsumerpublic void setEmToPixelMatrix(Matrix m)
public 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 x2,
double y2)
OutlineConsumerx, y). After this call, the currentpoint
should be x,ylineto in interface OutlineConsumerpublic void curveto(double x2,
double y2,
double x3,
double y3)
OutlineConsumerx2, y2),
(x3, y3). After this call, the
currentpoint should be x3, y3.curveto in interface OutlineConsumerpublic void curveto(double x2,
double y2,
double x3,
double y3,
double x4,
double y4)
OutlineConsumerx2, y2),
(x3, y3),
(x4, y4). After this call, the
currentpoint should be x4, y4.curveto in interface OutlineConsumerpublic void endOutline()
public void endchar()
OutlineConsumerendchar in interface OutlineConsumerCopyright © 2010 - 2020 Adobe. All Rights Reserved