Class MapMultiPoint

    • Constructor Detail

      • MapMultiPoint

        public MapMultiPoint​(AttributeCollection attributeSource)
        Create a new map element.
        Parameters:
        attributeSource - is the source of the attributes for this map element.
      • MapMultiPoint

        public MapMultiPoint()
        Create a new map element.
      • MapMultiPoint

        public MapMultiPoint​(UUID id,
                             AttributeCollection attributeSource)
        Create a new map element.
        Parameters:
        id - is the unique identifier of this element, or null if unknown.
        attributeSource - is the source of the attributes for this map element.
        Since:
        4.0
      • MapMultiPoint

        public MapMultiPoint​(UUID id)
        Create a new map element.
        Parameters:
        id - is the unique identifier of this element, or null if unknown.
        Since:
        4.0
    • Method Detail

      • intersects

        @Pure
        public boolean intersects​(Shape2D<?,​?,​?,​?,​?,​? extends Rectangle2afp<?,​?,​?,​?,​?,​?>> rectangle)
        Replies if this element has an intersection with the specified rectangle.
        Specified by:
        intersects in class MapElement
        Parameters:
        rectangle - the rectangle
        Returns:
        true if this MapElement is intersecting the specified area, otherwise false
      • getDistance

        @Pure
        public double getDistance​(Point2D<?,​?> point)
        Replies the distance between this MapElement and point.
        Specified by:
        getDistance in class MapElement
        Parameters:
        point - the point to compute the distance to.
        Returns:
        the distance. Should be negative depending of the MapElement type.
      • setPointSize

        public void setPointSize​(double sizeInPixel)
        Set the size of this point in pixels.
        Parameters:
        sizeInPixel - the new size.
      • getPointSize

        @Pure
        public double getPointSize()
        Replies the size of this point in pixels.
        Returns:
        the size of this point in pixels.
      • setDoubleFramed

        public void setDoubleFramed​(boolean doubleFramed)
        Set if this point must be drawn with a double frame.
        Parameters:
        doubleFramed - is true if the points must have a double frame, otherwise false
      • isDoubleFramed

        @Pure
        public boolean isDoubleFramed()
        Replies if this point is dfouble framed.
        Returns:
        true if the points must have a double frame, otherwise false