Package com.adobe.fontengine.font
Class OutlineConsumer2BaseImpl
java.lang.Object
com.adobe.fontengine.font.OutlineConsumer2BaseImpl
- All Implemented Interfaces:
OutlineConsumer2
A base class for OutlineConsumer2 implementations.
{start,end}{Outline,Contour} do nothing.
The 26.6 versions of line, quadraticCurve and cubicCurve convert their
arguments to double, and call the corresponding double versions.
The double versions of line, quadraticCurve and cubicCurve convert their
arguments to 26.6, and call the corresponding 26.6 versions.
This class is not useful on its own, as this organization results in
an infinite mutual recursion between the 26.6 and the double version
(hence the marking of this class as abstract).
A descendant class needs to implement at least one of the two sets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcubicCurve(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) voidcubicCurve(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4) voidvoidvoidline(double x1, double y1, double x2, double y2) voidline(int x1, int y1, int x2, int y2) voidquadraticCurve(double x1, double y1, double x2, double y2, double x3, double y3) voidquadraticCurve(int x1, int y1, int x2, int y2, int x3, int y3) voidvoid
-
Constructor Details
-
OutlineConsumer2BaseImpl
public OutlineConsumer2BaseImpl()
-
-
Method Details
-
startOutline
public void startOutline()- Specified by:
startOutlinein interfaceOutlineConsumer2
-
startContour
public void startContour()- Specified by:
startContourin interfaceOutlineConsumer2
-
line
public void line(double x1, double y1, double x2, double y2) - Specified by:
linein interfaceOutlineConsumer2
-
line
public void line(int x1, int y1, int x2, int y2) - Specified by:
linein interfaceOutlineConsumer2
-
quadraticCurve
public void quadraticCurve(double x1, double y1, double x2, double y2, double x3, double y3) - Specified by:
quadraticCurvein interfaceOutlineConsumer2
-
quadraticCurve
public void quadraticCurve(int x1, int y1, int x2, int y2, int x3, int y3) - Specified by:
quadraticCurvein interfaceOutlineConsumer2
-
cubicCurve
public void cubicCurve(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) - Specified by:
cubicCurvein interfaceOutlineConsumer2
-
cubicCurve
public void cubicCurve(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4) - Specified by:
cubicCurvein interfaceOutlineConsumer2
-
endContour
public void endContour()- Specified by:
endContourin interfaceOutlineConsumer2
-
endOutline
public void endOutline()- Specified by:
endOutlinein interfaceOutlineConsumer2
-