-
- All Superinterfaces:
GISPrimitive,JsonableObject,Serializable
- All Known Subinterfaces:
BusPrimitive<CONTAINER>
- All Known Implementing Classes:
AbstractBusContainer,AbstractBusPrimitive,ArrayMapElementLayer,BusHub,BusItinerary,BusItineraryHalt,BusItineraryLayer,BusLine,BusLineLayer,BusNetwork,BusNetworkLayer,BusStop,GridMapElementLayer,MapCircle,MapComposedElement,MapElement,MapElementLayer,MapLayer,MapMultiPoint,MapPoint,MapPolygon,MapPolyline,MapPonctualElement,MultiMapLayer,RoadNetworkLayer,RoadPolyline,TreeMapElementLayer
public interface GISEditable extends GISPrimitive
Describe a GIS primitive that could be edited.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:53
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- giscore
-
-
Field Summary
-
Fields inherited from interface org.arakhne.afc.gis.primitive.GISPrimitive
COMPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddGISEditableChangeListener(GISEditableChangeListener listener)Add listener.intgetColor()Replies the color of this element or the color of the container.StringgetName()Replies the name of the element.IntegergetRawColor()Replies the color stored inside this element.booleanisReadOnlyObject()Replies if this editable object want to be seen as a reed-only object.voidremoveGISEditableChangeListener(GISEditableChangeListener listener)Remove listener.voidsetColor(int color)Set the color of this element.voidsetName(String name)Set the name of the element.-
Methods inherited from interface org.arakhne.afc.gis.primitive.GISPrimitive
getGeoId, getGeoLocation, getUUID
-
Methods inherited from interface org.arakhne.afc.vmutil.json.JsonableObject
toJson
-
-
-
-
Method Detail
-
getName
@Pure String getName()
Replies the name of the element.- Returns:
- the name of the element.
-
setName
void setName(String name)
Set the name of the element.- Parameters:
name- the new name.
-
getRawColor
@Pure Integer getRawColor()
Replies the color stored inside this element.- Returns:
- the color of this element, or
null.
-
getColor
@Pure int getColor()
Replies the color of this element or the color of the container.- Returns:
- the color.
- See Also:
getRawColor()
-
setColor
void setColor(int color)
Set the color of this element.- Parameters:
color- the new color
-
addGISEditableChangeListener
void addGISEditableChangeListener(GISEditableChangeListener listener)
Add listener.- Parameters:
listener- the listener.
-
removeGISEditableChangeListener
void removeGISEditableChangeListener(GISEditableChangeListener listener)
Remove listener.- Parameters:
listener- the listener.
-
isReadOnlyObject
@Pure boolean isReadOnlyObject()
Replies if this editable object want to be seen as a reed-only object.Even if this object replies
true, it is possible to change its attributes. The value replied by this function is just a desire from this object. It could be used by the GUI to allow edition or not from a graphical component.- Returns:
trueif this object ant to be assumed as read-only, otherwisefalse
-
-