Class RoadPolylineDrawer
- java.lang.Object
-
- org.arakhne.afc.gis.ui.drawers.AbstractGISEditableDrawer<T>
-
- org.arakhne.afc.gis.ui.drawers.AbstractMapPolylineDrawer<RoadPolyline>
-
- org.arakhne.afc.gis.road.ui.drawers.RoadPolylineDrawer
-
- All Implemented Interfaces:
Drawer<RoadPolyline>
public class RoadPolylineDrawer extends AbstractMapPolylineDrawer<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
-
-
Field Summary
Fields Modifier and Type Field Description static intROAD_COLORDefault color for roads' interior.static intSELECTED_ROAD_COLORDefault color for selected roads' interior.
-
Constructor Summary
Constructors Constructor Description RoadPolylineDrawer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(ZoomableGraphicsContext gc, RoadPolyline element)Draw the given document primitives.Class<? extends RoadPolyline>getPrimitiveType()Replies the type of the primitives that could be drawn by this drawer.protected voidsetupRoadBorders(ZoomableGraphicsContext gc, RoadPolyline element)Setup for drawing the road borders.protected voidsetupRoadDetails(ZoomableGraphicsContext gc, RoadPolyline element)Setup for drawing the road details.protected voidsetupRoadInterior(ZoomableGraphicsContext gc, RoadPolyline element)Setup for drawing the road interior.-
Methods inherited from class org.arakhne.afc.gis.ui.drawers.AbstractMapPolylineDrawer
definePath
-
Methods inherited from class org.arakhne.afc.gis.ui.drawers.AbstractGISEditableDrawer
getDrawingColor, getDrawingColor, isSelected
-
-
-
-
Method Detail
-
getPrimitiveType
@Pure public Class<? extends RoadPolyline> getPrimitiveType()
Description copied from interface:DrawerReplies the type of the primitives that could be drawn by this drawer.- Returns:
- the type of the primitives.
-
draw
public void draw(ZoomableGraphicsContext gc, RoadPolyline element)
Description copied from interface:DrawerDraw the given document primitives.- Parameters:
gc- the graphics context that must be used for drawing.element- the primitive to draw.
-
setupRoadBorders
protected void setupRoadBorders(ZoomableGraphicsContext gc, RoadPolyline element)
Setup for drawing the road borders.- Parameters:
gc- the graphics context.element- the element to draw.
-
setupRoadInterior
protected void setupRoadInterior(ZoomableGraphicsContext gc, RoadPolyline element)
Setup for drawing the road interior.- Parameters:
gc- the graphics context.element- the element to draw.
-
setupRoadDetails
protected void setupRoadDetails(ZoomableGraphicsContext gc, RoadPolyline element)
Setup for drawing the road details.- Parameters:
gc- the graphics context.element- the element to draw.
-
-