public class RasterPolLinePointOrderManager extends Object implements LayerOrderManager
Modifier and Type | Field and Description |
---|---|
static String |
RASTER_POLYGON_LINE_POINT_LAYER_ORDER_MANAGER_PERSISTENCE_NAME |
Constructor and Description |
---|
RasterPolLinePointOrderManager() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
String |
getCode()
Gets the code used to register this OrderManager.
|
String |
getDescription()
Gets the description.
|
String |
getName()
Gets the name.
|
int |
getPosition(FLayers target,
FLayer newLayer)
Gets the proposed position for the newLayer in the target layer
collection.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
public static final String RASTER_POLYGON_LINE_POINT_LAYER_ORDER_MANAGER_PERSISTENCE_NAME
public int getPosition(FLayers target, FLayer newLayer)
LayerOrderManager
Gets the proposed position for the newLayer in the target layer collection. The OrderManager will study the arrangement of the target layer collection and will decide the right position for the new layer, according to its own criterion.
getPosition
in interface LayerOrderManager
target
- The target collection to which newLayer
will be addednewLayer
- The layer to be inserted in the layer collectionpublic String getDescription()
LayerOrderManager
Gets the description. The description should be enough to get an idea of the policy and features of this OrderManager.
getDescription
in interface LayerOrderManager
public String getName()
LayerOrderManager
Gets the name. The name should identify the policy followed by this OrderManager to sort the layers.
getName
in interface LayerOrderManager
public String getCode()
LayerOrderManager
Gets the code used to register this OrderManager.
getCode
in interface LayerOrderManager
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public static void registerPersistent()
public Object clone() throws CloneNotSupportedException
clone
in interface LayerOrderManager
clone
in class Object
CloneNotSupportedException