public class CopyPasteLayersUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addLayers(org.gvsig.fmap.mapcontext.layers.FLayers clipboard_root,
org.gvsig.fmap.mapcontext.layers.FLayers target_root)
Adds layers to target
FLayers |
static void |
clearClipboard() |
static org.gvsig.tools.persistence.PersistentState |
getAsFLayersPersistentState(org.gvsig.fmap.mapcontext.layers.FLayer[] actives,
org.gvsig.fmap.mapcontext.MapContext ctxt)
Gets an array of layers as a
PersistentState
of an instance of FLayers |
static org.gvsig.fmap.mapcontext.layers.FLayers |
getClipboardAsFLayers()
Returns the content of the clipboard as an instance
of FLayers or null if clipboard is empty or does not
contain instance of FLayers
|
static boolean |
isClipboardEmpty() |
static boolean |
removeLayers(org.gvsig.fmap.mapcontext.layers.FLayer[] actives,
org.gvsig.fmap.mapcontext.MapContext mc)
Remosves the layers from the their parent
|
static void |
saveToClipboard(org.gvsig.tools.persistence.PersistentState st)
Stores the given
PersistentState
to clipboard |
public static boolean addLayers(org.gvsig.fmap.mapcontext.layers.FLayers clipboard_root,
org.gvsig.fmap.mapcontext.layers.FLayers target_root)
FLayersclipboard_root - target_root - public static void clearClipboard()
throws java.io.IOException
java.io.IOExceptionpublic static org.gvsig.tools.persistence.PersistentState getAsFLayersPersistentState(org.gvsig.fmap.mapcontext.layers.FLayer[] actives,
org.gvsig.fmap.mapcontext.MapContext ctxt)
throws org.gvsig.tools.persistence.exception.PersistenceException
PersistentState
of an instance of FLayersactives - ctxt - org.gvsig.tools.persistence.exception.PersistenceExceptionpublic static org.gvsig.fmap.mapcontext.layers.FLayers getClipboardAsFLayers()
throws org.gvsig.tools.persistence.exception.PersistenceException
org.gvsig.tools.persistence.exception.PersistenceExceptionpublic static boolean isClipboardEmpty()
public static boolean removeLayers(org.gvsig.fmap.mapcontext.layers.FLayer[] actives,
org.gvsig.fmap.mapcontext.MapContext mc)
actives - mc - public static void saveToClipboard(org.gvsig.tools.persistence.PersistentState st)
throws org.gvsig.tools.persistence.exception.PersistenceException
PersistentState
to clipboardst - org.gvsig.tools.persistence.exception.PersistenceExceptionCopyright © 2024 gvSIG Association. All rights reserved.