Class GisLayerContainerDrawer<T extends MapLayer>

    • Constructor Detail

      • GisLayerContainerDrawer

        public GisLayerContainerDrawer()
        Constructor.
      • GisLayerContainerDrawer

        public GisLayerContainerDrawer​(Drawer<? super T> drawer)
        Constructor based on the given drawer.
        Parameters:
        drawer - the element drawer.
    • Method Detail

      • setDrawer

        public void setDrawer​(Drawer<? super T> drawer)
        Description copied from interface: DrawerReference
        Change the preferred drawer for this drawable object.
        Specified by:
        setDrawer in interface DrawerReference<T extends MapLayer>
        Parameters:
        drawer - the drawer or null if none.
      • getPrimitiveType

        public Class<? extends GISLayerContainer> getPrimitiveType()
        Description copied from interface: Drawer
        Replies the type of the primitives that could be drawn by this drawer.
        Specified by:
        getPrimitiveType in interface Drawer<T extends MapLayer>
        Returns:
        the type of the primitives.
      • draw

        public void draw​(ZoomableGraphicsContext gc,
                         GISLayerContainer primitive)
        Description copied from interface: Drawer
        Draw the given document primitives.
        Specified by:
        draw in interface Drawer<T extends MapLayer>
        Parameters:
        gc - the graphics context that must be used for drawing.
        primitive - the primitive to draw.