All Known Implementing Classes:
PolyShape

public interface IPolyShape
  • Method Summary

    Modifier and TypeMethodDescription
    booleanequals​(java.lang.Object anObject)
    Tests for equality between two polylines.
    java.util.List<java.awt.geom.Point2D>getAbsolutePoints​(double originX, double originY) 
    java.util.List<java.awt.geom.Point2D>getAbsolutePoints​(java.awt.geom.Point2D origin) 
    java.util.List<java.awt.geom.Point2D>getPoints()
    Gets all points of a polyline.
    inthashCode()
    Computes a hash code for this polyline.
  • Method Details

    • getPoints

      java.util.List<java.awt.geom.Point2D> getPoints()
      Gets all points of a polyline. The points are relative to the x and y coordinate of the parent IMapObject.

      To get a Path2D object, you should use Map

      Returns:
      A list containing all points of the polyline.
    • getAbsolutePoints

      java.util.List<java.awt.geom.Point2D> getAbsolutePoints​(double originX, double originY)
    • getAbsolutePoints

      java.util.List<java.awt.geom.Point2D> getAbsolutePoints​(java.awt.geom.Point2D origin)
    • equals

      boolean equals​(java.lang.Object anObject)
      Tests for equality between two polylines. Two polylines are equal if they have the same points.
      Overrides:
      equals in class java.lang.Object
      Parameters:
      anObject - The polyline to test equality for
      Returns:
      Whether the two polylines are equal, or false if anObject is not a polyline
    • hashCode

      int hashCode()
      Computes a hash code for this polyline. A polyline's hash code is equal to the hash code of its points.
      Overrides:
      hashCode in class java.lang.Object
      Returns:
      The hash code for this polyline