Class RoadNetworkDrawer
- java.lang.Object
-
- org.arakhne.afc.gis.ui.drawers.GisElementContainerDrawer<RoadPolyline>
-
- org.arakhne.afc.gis.road.ui.drawers.RoadNetworkDrawer
-
- All Implemented Interfaces:
Drawer<GISElementContainer>
,DrawerReference<RoadPolyline>
public class RoadNetworkDrawer extends GisElementContainerDrawer<RoadPolyline>
Drawer of a map road polyline.- Since:
- 15.0
- Version:
- 17.0 2020-01-04 14:41:56
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.gis.ui
- Maven Artifact Id:
- gisroadfx
-
-
Constructor Summary
Constructors Constructor Description RoadNetworkDrawer()
Constructor.RoadNetworkDrawer(Drawer<RoadPolyline> drawer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Drawer<? super RoadPolyline>
draw(ZoomableGraphicsContext gc, GISElementContainer<RoadPolyline> primitive, Drawer<? super RoadPolyline> drawer)
Draw the primitive with the given drawer.Class<? extends GISElementContainer<RoadPolyline>>
getPrimitiveType()
Replies the type of the primitives that could be drawn by this drawer.-
Methods inherited from class org.arakhne.afc.gis.ui.drawers.GisElementContainerDrawer
draw, drawPrimitives, getDrawer, setDrawer
-
-
-
-
Constructor Detail
-
RoadNetworkDrawer
public RoadNetworkDrawer()
Constructor.
-
RoadNetworkDrawer
public RoadNetworkDrawer(Drawer<RoadPolyline> drawer)
Constructor.- Parameters:
drawer
- the element drawer.
-
-
Method Detail
-
getPrimitiveType
public Class<? extends GISElementContainer<RoadPolyline>> getPrimitiveType()
Description copied from interface:Drawer
Replies the type of the primitives that could be drawn by this drawer.- Specified by:
getPrimitiveType
in interfaceDrawer<GISElementContainer>
- Overrides:
getPrimitiveType
in classGisElementContainerDrawer<RoadPolyline>
- Returns:
- the type of the primitives.
-
draw
protected Drawer<? super RoadPolyline> draw(ZoomableGraphicsContext gc, GISElementContainer<RoadPolyline> primitive, Drawer<? super RoadPolyline> drawer)
Description copied from class:GisElementContainerDrawer
Draw the primitive with the given drawer.- Overrides:
draw
in classGisElementContainerDrawer<RoadPolyline>
- Parameters:
gc
- the graphics context to draw with.primitive
- the primitive to draw.drawer
- the drawer, ornull
to use the default.- Returns:
- the used drawer.
-
-