Package com.adobe.fontengine.font
Class OutlineConsumer2BaseImpl
- java.lang.Object
-
- com.adobe.fontengine.font.OutlineConsumer2BaseImpl
-
- All Implemented Interfaces:
OutlineConsumer2
public abstract class OutlineConsumer2BaseImpl extends java.lang.Object implements 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 Constructor Description OutlineConsumer2BaseImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cubicCurve(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
void
cubicCurve(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
void
endContour()
void
endOutline()
void
line(double x1, double y1, double x2, double y2)
void
line(int x1, int y1, int x2, int y2)
void
quadraticCurve(double x1, double y1, double x2, double y2, double x3, double y3)
void
quadraticCurve(int x1, int y1, int x2, int y2, int x3, int y3)
void
startContour()
void
startOutline()
-
-
-
Method Detail
-
startOutline
public void startOutline()
- Specified by:
startOutline
in interfaceOutlineConsumer2
-
startContour
public void startContour()
- Specified by:
startContour
in interfaceOutlineConsumer2
-
line
public void line(double x1, double y1, double x2, double y2)
- Specified by:
line
in interfaceOutlineConsumer2
-
line
public void line(int x1, int y1, int x2, int y2)
- Specified by:
line
in interfaceOutlineConsumer2
-
quadraticCurve
public void quadraticCurve(double x1, double y1, double x2, double y2, double x3, double y3)
- Specified by:
quadraticCurve
in interfaceOutlineConsumer2
-
quadraticCurve
public void quadraticCurve(int x1, int y1, int x2, int y2, int x3, int y3)
- Specified by:
quadraticCurve
in interfaceOutlineConsumer2
-
cubicCurve
public void cubicCurve(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
- Specified by:
cubicCurve
in interfaceOutlineConsumer2
-
cubicCurve
public void cubicCurve(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
- Specified by:
cubicCurve
in interfaceOutlineConsumer2
-
endContour
public void endContour()
- Specified by:
endContour
in interfaceOutlineConsumer2
-
endOutline
public void endOutline()
- Specified by:
endOutline
in interfaceOutlineConsumer2
-
-