Interface PathConsumer2D



  • public interface PathConsumer2D
    • Method Summary

      Modifier and Type Method and Description
      void closePath()
       
      void curveTo(float x1, float y1, float x2, float y2, float x3, float y3)
       
      long getNativeConsumer()
      If a given PathConsumer performs all or most of its work natively then it can return a (non-zero) pointer to a native function vector that defines C functions for all of the above methods.
      void lineTo(float x, float y)
       
      void moveTo(float x, float y)
       
      void pathDone()
      Called after the last segment of the last subpath when the iteration of the path segments is completely done.
      void quadTo(float x1, float y1, float x2, float y2)
       
    • Method Detail

      • curveTo

        void curveTo(float x1,
                     float y1,
                     float x2,
                     float y2,
                     float x3,
                     float y3)
        See Also:
        Path2D.Float.curveTo
      • pathDone

        void pathDone()
        Called after the last segment of the last subpath when the iteration of the path segments is completely done. This method serves to trigger the end of path processing in the consumer that would normally be triggered when a PathIterator returns true from its done method.
      • getNativeConsumer

        long getNativeConsumer()
        If a given PathConsumer performs all or most of its work natively then it can return a (non-zero) pointer to a native function vector that defines C functions for all of the above methods. The specific pointer it returns is a pointer to a PathConsumerVec structure as defined in the include file src/share/native/sun/java2d/pipe/PathConsumer2D.h
        Returns:
        a native pointer to a PathConsumerVec structure.