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 void
draw(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.void
setDrawer(Drawer<? super T> drawer)
Change the preferred drawer for this drawable object.
-
-
-
Method Detail
-
getDrawer
public Drawer<? super T> getDrawer()
Description copied from interface:DrawerReference
Replies the preferred drawer for this drawable object.- Specified by:
getDrawer
in interfaceDrawerReference<T extends MapLayer>
- Returns:
- the drawer or
null
if none.
-
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 interfaceDrawerReference<T extends MapLayer>
- Parameters:
drawer
- the drawer ornull
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 interfaceDrawer<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.
-
-