Class Markers

    • Field Detail

      • m_Points

        protected List<Point> m_Points
        the marker points to draw.
      • m_Color

        protected Color m_Color
        the color for the markers.
      • m_Extent

        protected int m_Extent
        the maximum width/height of the shape to plot around the marker points.
    • Constructor Detail

      • Markers

        public Markers​(LayerManager owner)
        Initializes the marker handling.
    • Method Detail

      • getOwner

        public LayerManager getOwner()
        Returns the owning layer manager.
        Returns:
        the owner
      • clear

        public void clear()
        Removes all marker points.
      • size

        public int size()
        Returns the number of marker points.
        Returns:
        the number of points
      • add

        public void add​(Point p)
        Adds the marker point.
        Parameters:
        p - the point to add
      • getPoints

        public List<Point> getPoints()
        Returns the currently store points.
        Returns:
        the points
      • setShape

        public void setShape​(Markers.Shape value)
        Sets the shape to use for markers.
        Parameters:
        value - the shape
      • getShape

        public Markers.Shape getShape()
        Returns the shape in use for markers.
        Returns:
        the shape
      • setColor

        public void setColor​(Color value)
        Sets the color to use for markers.
        Parameters:
        value - the color
      • getColor

        public Color getColor()
        Returns the color in use for markers.
        Returns:
        the color
      • setExtent

        public void setExtent​(int value)
        Sets the size of the markers.
        Parameters:
        value - the extent
      • getExtent

        public int getExtent()
        Returns the size of the markers.
        Returns:
        the extent
      • drawMarkers

        public void drawMarkers​(Graphics2D g)
        Draws the markers.
        Parameters:
        g - the graphics context
      • update

        public void update()
        Triggers an update (if any markers).
      • update

        public void update​(boolean force)
        Triggers an update.