Class MapPoint

    • Constructor Detail

      • MapPoint

        public MapPoint​(Point2D<?,​?> point)
        Create a new map element.
        Parameters:
        point - is a location component of the point in the geo-referenced space.
      • MapPoint

        public MapPoint​(double geoX,
                        double geoY)
        Create a new map element.
        Parameters:
        geoX - is a location component of the point in the geo-referenced space.
        geoY - is a location component of the point in the geo-referenced space.
      • MapPoint

        public MapPoint​(AttributeCollection attributeSource,
                        Point2D<?,​?> point)
        Create a new map element.
        Parameters:
        attributeSource - is the provider of the attributes for this element.
        point - is a location component of the point in the geo-referenced space.
      • MapPoint

        public MapPoint​(AttributeCollection attributeSource,
                        double geoX,
                        double geoY)
        Create a new map element.
        Parameters:
        attributeSource - is the provider of the attributes for this element.
        geoX - is a location component of the point in the geo-referenced space.
        geoY - is a location component of the point in the geo-referenced space.
      • MapPoint

        public MapPoint​(UUID id,
                        Point2D<?,​?> point)
        Create a new map element.
        Parameters:
        id - is the unique identifier of this element, or null if unknown.
        point - is a location component of the point in the geo-referenced space.
        Since:
        4.0
      • MapPoint

        public MapPoint​(UUID id,
                        double geoX,
                        double geoY)
        Create a new map element.
        Parameters:
        id - is the unique identifier of this element, or null if unknown.
        geoX - is a location component of the point in the geo-referenced space.
        geoY - is a location component of the point in the geo-referenced space.
        Since:
        4.0
      • MapPoint

        public MapPoint​(UUID id,
                        AttributeCollection attributeSource,
                        Point2D<?,​?> point)
        Create a new map element.
        Parameters:
        id - is the unique identifier of this element, or null if unknown.
        attributeSource - is the provider of the attributes for this element.
        point - is a location component of the point in the geo-referenced space.
        Since:
        4.0
      • MapPoint

        public MapPoint​(UUID id,
                        AttributeCollection attributeSource,
                        double geoX,
                        double geoY)
        Create a new map element.
        Parameters:
        id - is the unique identifier of this element, or null if unknown.
        attributeSource - is the provider of the attributes for this element.
        geoX - is a location component of the point in the geo-referenced space.
        geoY - is a location component of the point in the geo-referenced space.
        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
      • setPointSize

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

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

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

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