Module org.arakhne.afc.gis.giscore
Package org.arakhne.afc.gis.maplayer
Enum MapLayerHierarchyEvent.Type
- java.lang.Object
-
- java.lang.Enum<MapLayerHierarchyEvent.Type>
-
- org.arakhne.afc.gis.maplayer.MapLayerHierarchyEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<MapLayerHierarchyEvent.Type>
- Enclosing class:
- MapLayerHierarchyEvent
public static enum MapLayerHierarchyEvent.Type extends Enum<MapLayerHierarchyEvent.Type>
This interface representes the types of hierarchy events.- 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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_CHILD
The layer was added into its container.ADDED_INTO_PARENT
The layer was added into its container.MOVE_CHILD_DOWN
The order of the children has changed: a child layer has moving down.MOVE_CHILD_UP
The order of the children has changed: a child layer has moving up.MOVE_CHILDREN
The order of the children has changed: child layers have moving.REMOVE_ALL_CHILDREN
All the layers are removed from a container.REMOVE_CHILD
The layer was removed from its container.REMOVED_FROM_PARENT
The layer was removed from its container.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MapLayerHierarchyEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static MapLayerHierarchyEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REMOVED_FROM_PARENT
public static final MapLayerHierarchyEvent.Type REMOVED_FROM_PARENT
The layer was removed from its container. This type of event is received by the removed layer.
-
ADDED_INTO_PARENT
public static final MapLayerHierarchyEvent.Type ADDED_INTO_PARENT
The layer was added into its container. This type of event is received by the removed layer.
-
ADD_CHILD
public static final MapLayerHierarchyEvent.Type ADD_CHILD
The layer was added into its container. This type of event is received by the parent of the new layer.
-
REMOVE_CHILD
public static final MapLayerHierarchyEvent.Type REMOVE_CHILD
The layer was removed from its container. This type of event is received by the parent of the removed layer.
-
REMOVE_ALL_CHILDREN
public static final MapLayerHierarchyEvent.Type REMOVE_ALL_CHILDREN
All the layers are removed from a container. This type of event is received by the parent of the removed layers.
-
MOVE_CHILD_UP
public static final MapLayerHierarchyEvent.Type MOVE_CHILD_UP
The order of the children has changed: a child layer has moving up. This type of event is received by the parent of the moveed layer.
-
MOVE_CHILD_DOWN
public static final MapLayerHierarchyEvent.Type MOVE_CHILD_DOWN
The order of the children has changed: a child layer has moving down. This type of event is received by the parent of the moveed layer.
-
MOVE_CHILDREN
public static final MapLayerHierarchyEvent.Type MOVE_CHILDREN
The order of the children has changed: child layers have moving. This type of event is received by the parent of the moved layer.
-
-
Method Detail
-
values
public static MapLayerHierarchyEvent.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MapLayerHierarchyEvent.Type c : MapLayerHierarchyEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MapLayerHierarchyEvent.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-