Package org.arakhne.afc.gis.ui.drawers
Class GisLayerContainerDrawer<T extends MapLayer>
- java.lang.Object
-
- org.arakhne.afc.gis.ui.drawers.GisLayerContainerDrawer<T>
-
- Type Parameters:
T- the type of the elements to draw.
- All Implemented Interfaces:
Drawer<GISLayerContainer>,DrawerReference<T>
public class GisLayerContainerDrawer<T extends MapLayer> extends Object implements Drawer<GISLayerContainer>, DrawerReference<T>
Drawer of a map layer containers.- 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 Summary
Constructors Constructor Description GisLayerContainerDrawer()Constructor.GisLayerContainerDrawer(Drawer<? super T> drawer)Constructor based on the given drawer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(ZoomableGraphicsContext gc, GISLayerContainer primitive)Draw the given document primitives.Drawer<? super T>getDrawer()Replies the preferred drawer for this drawable object.Class<? extends GISLayerContainer>getPrimitiveType()Replies the type of the primitives that could be drawn by this drawer.voidsetDrawer(Drawer<? super T> drawer)Change the preferred drawer for this drawable object.
-
-
-
Method Detail
-
getDrawer
public Drawer<? super T> getDrawer()
Description copied from interface:DrawerReferenceReplies the preferred drawer for this drawable object.- Specified by:
getDrawerin interfaceDrawerReference<T extends MapLayer>- Returns:
- the drawer or
nullif none.
-
setDrawer
public void setDrawer(Drawer<? super T> drawer)
Description copied from interface:DrawerReferenceChange the preferred drawer for this drawable object.- Specified by:
setDrawerin interfaceDrawerReference<T extends MapLayer>- Parameters:
drawer- the drawer ornullif none.
-
getPrimitiveType
public Class<? extends GISLayerContainer> getPrimitiveType()
Description copied from interface:DrawerReplies the type of the primitives that could be drawn by this drawer.- Specified by:
getPrimitiveTypein interfaceDrawer<T extends MapLayer>- Returns:
- the type of the primitives.
-
draw
public void draw(ZoomableGraphicsContext gc, GISLayerContainer primitive)
Description copied from interface:DrawerDraw the given document primitives.
-
-