-
- 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 void
addGISEditableChangeListener(GISEditableChangeListener listener)
Add listener.int
getColor()
Replies the color of this element or the color of the container.String
getName()
Replies the name of the element.Integer
getRawColor()
Replies the color stored inside this element.boolean
isReadOnlyObject()
Replies if this editable object want to be seen as a reed-only object.void
removeGISEditableChangeListener(GISEditableChangeListener listener)
Remove listener.void
setColor(int color)
Set the color of this element.void
setName(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:
true
if this object ant to be assumed as read-only, otherwisefalse
-
-