Class OutlineConsumer2BaseImpl

java.lang.Object
com.adobe.fontengine.font.OutlineConsumer2BaseImpl
All Implemented Interfaces:
OutlineConsumer2

public abstract class OutlineConsumer2BaseImpl extends 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 Details

    • OutlineConsumer2BaseImpl

      public OutlineConsumer2BaseImpl()
  • Method Details

    • startOutline

      public void startOutline()
      Specified by:
      startOutline in interface OutlineConsumer2
    • startContour

      public void startContour()
      Specified by:
      startContour in interface OutlineConsumer2
    • line

      public void line(double x1, double y1, double x2, double y2)
      Specified by:
      line in interface OutlineConsumer2
    • line

      public void line(int x1, int y1, int x2, int y2)
      Specified by:
      line in interface OutlineConsumer2
    • quadraticCurve

      public void quadraticCurve(double x1, double y1, double x2, double y2, double x3, double y3)
      Specified by:
      quadraticCurve in interface OutlineConsumer2
    • quadraticCurve

      public void quadraticCurve(int x1, int y1, int x2, int y2, int x3, int y3)
      Specified by:
      quadraticCurve in interface OutlineConsumer2
    • cubicCurve

      public void cubicCurve(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
      Specified by:
      cubicCurve in interface OutlineConsumer2
    • cubicCurve

      public void cubicCurve(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
      Specified by:
      cubicCurve in interface OutlineConsumer2
    • endContour

      public void endContour()
      Specified by:
      endContour in interface OutlineConsumer2
    • endOutline

      public void endOutline()
      Specified by:
      endOutline in interface OutlineConsumer2