Class 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.
    • 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()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OutlineConsumer2BaseImpl

        public OutlineConsumer2BaseImpl()