Interface OutlineConsumer2

  • All Known Implementing Classes:
    OutlineConsumer2BaseImpl

    public interface OutlineConsumer2
    Receives events for outlines. Multiple outlines can be sent through this interface. The calls to this interface must follow the pattern (startOutline (startCountour (line | quadraticCurve | cubicCurve)* endCountour)* endOutline)*. This interface provides two ways for the client to communicate the coordinates of lines and curves: as double or as 26.6 fixed point numbers. Typically, a client will use a consistent set, but there is nothing that prevents the two ways to be mixed. An implementation of the interface will typically convert one set to the other, as best appropriate for its purposes. The class OutlineConsumer2BaseImpl provides a "filtering" implementation that can help with that. Regardless of the format in which the numbers are expressed, their meaning (i.e. units) is not defined by this interface. It is up to the client and implementation to agree on them.
    • Method Summary

      All Methods Instance Methods Abstract 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

        void startOutline()
      • startContour

        void startContour()
      • line

        void line​(double x1,
                  double y1,
                  double x2,
                  double y2)
      • line

        void line​(int x1,
                  int y1,
                  int x2,
                  int y2)
      • quadraticCurve

        void quadraticCurve​(double x1,
                            double y1,
                            double x2,
                            double y2,
                            double x3,
                            double y3)
      • quadraticCurve

        void quadraticCurve​(int x1,
                            int y1,
                            int x2,
                            int y2,
                            int x3,
                            int y3)
      • cubicCurve

        void cubicCurve​(double x1,
                        double y1,
                        double x2,
                        double y2,
                        double x3,
                        double y3,
                        double x4,
                        double y4)
      • cubicCurve

        void cubicCurve​(int x1,
                        int y1,
                        int x2,
                        int y2,
                        int x3,
                        int y3,
                        int x4,
                        int y4)
      • endContour

        void endContour()
      • endOutline

        void endOutline()