Class GisCanvas<T extends GISContainer<?>>

  • Type Parameters:
    T - the type of the primitive container.
    All Implemented Interfaces:
    javafx.css.Styleable, javafx.event.EventTarget, ZoomableViewer<T>

    public class GisCanvas<T extends GISContainer<?>>
    extends ZoomableCanvas<T>
    Abstract implementation of a resizeable canvas for rendering GIS primitives.

    The GIS elements are displayed within this GisCanvas by the drawers that are declared as services.

    The GisCanvas provides a tool for displaying GIS elements. It does not provide advanced UI components (scroll bars, etc.) and interaction means (mouse support, etc.).

    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
    • Field Detail

      • DEFAULT_INVERTED_Y_AXIS

        public static final boolean DEFAULT_INVERTED_Y_AXIS
        Indicates if the Y axis should be inverted for GIS primitives.
    • Constructor Detail

      • GisCanvas

        public GisCanvas​(T model)
        Constructor. The renderer is detected with the type replied by InformedIterable.getElementType() on the model.
        Parameters:
        model - the source of the elements.
      • GisCanvas

        public GisCanvas​(T model,
                         Drawer<? super T> drawer)
        Constructor.
        Parameters:
        model - the source of the elements.
        drawer - the drawer.
    • Method Detail

      • bindModel

        protected void bindModel​(T model)
        Description copied from class: ZoomableCanvas
        Invoked when the given model is binded to this canvas.

        This function is defined in order to be overridden by sub-classes for adding observers on the model.

        Overrides:
        bindModel in class ZoomableCanvas<T extends GISContainer<?>>
        Parameters:
        model - the model that is binded to this canvas.
      • unbindModel

        protected void unbindModel​(T model)
        Description copied from class: ZoomableCanvas
        Invoked when the given model is unbinded from this canvas.

        This function is defined in order to be overridden by sub-classes for removing observers on the model.

        Overrides:
        unbindModel in class ZoomableCanvas<T extends GISContainer<?>>
        Parameters:
        model - the model that is unbinded to this canvas.