public static final class GraphClipboard.ParentNodeDetectionModes extends FlagsEnum<GraphClipboard.ParentNodeDetectionModes>
The enumeration can be used to create bitwise combination
of the types.
Modifier and Type | Field and Description |
---|---|
static GraphClipboard.ParentNodeDetectionModes |
ALLOW_SELF
When used in combination with
SELECTION or AT_LOCATION
this setting will allow pasting nodes into their original. |
static GraphClipboard.ParentNodeDetectionModes |
AT_LOCATION
A node should be pasted into the group node at the location where the node is pasted to or the root if there is no group
node.
|
static GraphClipboard.ParentNodeDetectionModes |
FORCE
If combined with
PREVIOUS_PARENT forces the node to be pasted into its original parent,
even if the parent has moved far away and pasting the node would increase the parents size considerably. |
static GraphClipboard.ParentNodeDetectionModes |
MODE_MASK
A bitmask that can be used to query the actual mode (
ROOT ,
SELECTION , AT_LOCATION , or
PREVIOUS_PARENT ). |
static GraphClipboard.ParentNodeDetectionModes |
MODIFIER_MASK
A bitmask that can be used to query modifications of the actual mode such as
ALLOW_SELF
or FORCE . |
static GraphClipboard.ParentNodeDetectionModes |
PREVIOUS_PARENT
A node should be pasted into its original parent.
|
static GraphClipboard.ParentNodeDetectionModes |
ROOT
Nodes should always be pasted into the root group.
|
static GraphClipboard.ParentNodeDetectionModes |
SELECTION
If exactly one group node is selected the nodes should be pasted into that group.
|
Modifier and Type | Method and Description |
---|---|
static GraphClipboard.ParentNodeDetectionModes |
fromName(String name) |
static GraphClipboard.ParentNodeDetectionModes |
fromOrdinal(int value) |
protected GraphClipboard.ParentNodeDetectionModes |
fromOrdinalImpl(int ordinal) |
protected GraphClipboard.ParentNodeDetectionModes[] |
getItems()
Returns all items defined in this FlagsEnum.
|
int |
value() |
and, and, contains, containsAll, doubleValue, equals, equals, floatValue, hashCode, intValue, inverse, inverse, longValue, notContains, notEquals, or, or, ordinal, toString, xor, xor
byteValue, shortValue
public static final GraphClipboard.ParentNodeDetectionModes ALLOW_SELF
SELECTION
or AT_LOCATION
this setting will allow pasting nodes into their original.public static final GraphClipboard.ParentNodeDetectionModes AT_LOCATION
As long as ALLOW_SELF
is not set, too, the node will not be pasted into its original
node. Note that it can be pasted into a copy of its original, though.
public static final GraphClipboard.ParentNodeDetectionModes FORCE
PREVIOUS_PARENT
forces the node to be pasted into its original parent,
even if the parent has moved far away and pasting the node would increase the parents size considerably.public static final GraphClipboard.ParentNodeDetectionModes MODE_MASK
ROOT
,
SELECTION
, AT_LOCATION
, or
PREVIOUS_PARENT
).public static final GraphClipboard.ParentNodeDetectionModes MODIFIER_MASK
ALLOW_SELF
or FORCE
.public static final GraphClipboard.ParentNodeDetectionModes PREVIOUS_PARENT
If the parent has been removed from the graph in between the copy and paste operation the node will be placed into the parent's parent.
If the previous parent has been moved too far away the node will be placed into the root unless FORCE
is set, too.
If this setting is combined with SELECTION
or AT_LOCATION
it will be overridden by the other setting.
public static final GraphClipboard.ParentNodeDetectionModes ROOT
public static final GraphClipboard.ParentNodeDetectionModes SELECTION
As long as ALLOW_SELF
is not set, too, a node will not be pasted into its original
node. Note that it can be pasted into a copy of its original, though.
If this setting is combined with ROOT
or PREVIOUS_PARENT
it will override that setting if a group node is selected.
public static final GraphClipboard.ParentNodeDetectionModes fromName(String name)
public static final GraphClipboard.ParentNodeDetectionModes fromOrdinal(int value)
protected final GraphClipboard.ParentNodeDetectionModes fromOrdinalImpl(int ordinal)
fromOrdinalImpl
in class FlagsEnum<GraphClipboard.ParentNodeDetectionModes>
protected final GraphClipboard.ParentNodeDetectionModes[] getItems()
FlagsEnum
getItems
in class FlagsEnum<GraphClipboard.ParentNodeDetectionModes>
public int value()