public class CopyPasteLayersUtils extends 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 IOException
IOException
public static boolean isClipboardEmpty()
public static FLayers getClipboardAsFLayers() throws PersistenceException
PersistenceException
public static void saveToClipboard(PersistentState st) throws PersistenceException
PersistentState
to clipboardst
- PersistenceException
public static PersistentState getAsFLayersPersistentState(FLayer[] actives, MapContext ctxt) throws PersistenceException
PersistentState
of an instance of FLayersactives
- ctxt
- PersistenceException
public static boolean removeLayers(FLayer[] actives, MapContext mc)
actives
- mc
-