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)
LayerOrderManagerGets 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 LayerOrderManagertarget - The target collection to which newLayer
will be addednewLayer - The layer to be inserted in the layer collectionpublic String getDescription()
LayerOrderManagerGets the description. The description should be enough to get an idea of the policy and features of this OrderManager.
getDescription in interface LayerOrderManagerpublic String getName()
LayerOrderManagerGets the name. The name should identify the policy followed by this OrderManager to sort the layers.
getName in interface LayerOrderManagerpublic String getCode()
LayerOrderManagerGets the code used to register this OrderManager.
getCode in interface LayerOrderManagerpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic static void registerPersistent()
public Object clone() throws CloneNotSupportedException
clone in interface LayerOrderManagerclone in class ObjectCloneNotSupportedException