Class AbstractPolygon

    • Constructor Detail

      • AbstractPolygon

        public AbstractPolygon()
    • Method Detail

      • contains

        public boolean contains​(double x,
                                double y)

        This default implementation constructs a Path2D consisting of the vertices of the polygon, and uses this to test for containment. Subclasses may be able to override with a more efficient method.

      • getBoundaryPath

        protected Path2D getBoundaryPath()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object