Class AbstractMapPointDrawer<T extends MapPoint>

  • Type Parameters:
    T - the type of the map points.
    All Implemented Interfaces:
    Drawer<T>
    Direct Known Subclasses:
    MapPointDrawer

    public abstract class AbstractMapPointDrawer<T extends MapPoint>
    extends AbstractGISEditableDrawer<T>
    Abstract drawer of a map point.
    Since:
    15.0
    Version:
    17.0 2020-01-04 14:41:54
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.gis.ui
    Maven Artifact Id:
    giscorefx
    • Constructor Detail

      • AbstractMapPointDrawer

        public AbstractMapPointDrawer()
    • Method Detail

      • defineSmallRectangle

        protected void defineSmallRectangle​(ZoomableGraphicsContext gc,
                                            T element)
        Define a path that corresponds to the small rectangle around a point.

        Caution: this function does not call ZoomableGraphicsContext.beginPath(). You must call it yourself before the first call to this function.

        Parameters:
        gc - the graphics context that must be used for drawing.
        element - the map element.
      • defineBigRectangle

        protected void defineBigRectangle​(ZoomableGraphicsContext gc,
                                          T element)
        Define a path that corresponds to the big rectangle around a point.

        Caution: this function does not call ZoomableGraphicsContext.beginPath(). You must call it yourself before the first call to this function.

        Parameters:
        gc - the graphics context that must be used for drawing.
        element - the map element.