public class CopyPasteLayersUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addLayers(FLayers clipboard_root,
FLayers target_root)
Adds layers to target
FLayers |
static void |
clearClipboard() |
static PersistentState |
getAsFLayersPersistentState(FLayer[] actives,
MapContext ctxt)
Gets an array of layers as a
PersistentState
of an instance of FLayers |
static 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(FLayer[] actives,
MapContext mc)
Remosves the layers from the their parent
|
static void |
saveToClipboard(PersistentState st)
Stores the given
PersistentState
to clipboard |
public static void clearClipboard()
throws java.io.IOException
java.io.IOExceptionpublic static boolean isClipboardEmpty()
public static FLayers getClipboardAsFLayers() throws PersistenceException
PersistenceExceptionpublic static void saveToClipboard(PersistentState st) throws PersistenceException
PersistentState
to clipboardst - PersistenceExceptionpublic static PersistentState getAsFLayersPersistentState(FLayer[] actives, MapContext ctxt) throws PersistenceException
PersistentState
of an instance of FLayersactives - ctxt - PersistenceExceptionpublic static boolean removeLayers(FLayer[] actives, MapContext mc)
actives - mc -