Package org.arakhne.afc.gis.ui.drawers
Class AbstractGISEditableDrawer<T extends GISEditable & FlagContainer>
- java.lang.Object
-
- org.arakhne.afc.gis.ui.drawers.AbstractGISEditableDrawer<T>
-
- Type Parameters:
T
- the type of the polylines.
- All Implemented Interfaces:
Drawer<T>
- Direct Known Subclasses:
AbstractMapCircleDrawer
,AbstractMapMultiPointDrawer
,AbstractMapPointDrawer
,AbstractMapPolygonDrawer
,AbstractMapPolylineDrawer
public abstract class AbstractGISEditableDrawer<T extends GISEditable & FlagContainer> extends Object implements Drawer<T>
Abstract drawer of a GIS editable.- 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 AbstractGISEditableDrawer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getDrawingColor(int color, boolean isSelected)
Adapt the given color in order to be used for displaying.protected int
getDrawingColor(T element)
Replies the color that should be used for drawing the given element.protected boolean
isSelected(T element)
Replies the given element is selected.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.nodefx.Drawer
draw, getPrimitiveType
-
-
-
-
Method Detail
-
isSelected
@Pure protected boolean isSelected(T element)
Replies the given element is selected.- Parameters:
element
- the element.- Returns:
true
if the element is selected.
-
getDrawingColor
@Pure protected int getDrawingColor(T element)
Replies the color that should be used for drawing the given element.- Parameters:
element
- the element.- Returns:
- the drawing color.
-
getDrawingColor
@Pure protected int getDrawingColor(int color, boolean isSelected)
Adapt the given color in order to be used for displaying.- Parameters:
color
- the color to adapt.isSelected
- indicates if the color should be adapted for selection.- Returns:
- the drawing color.
-
-