de.grogra.pf.ui.edit
public class GraphSelectionImpl extends SelectionBase implements GraphSelection
contextDELETABLE, HIERARCHICAL, TRANSFERABLEACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE| Constructor and Description |
|---|
GraphSelectionImpl(Context ctx,
GraphState[] states,
java.lang.Object[] objects,
boolean[] isNode) |
GraphSelectionImpl(Context ctx,
GraphState state,
java.lang.Object obj,
boolean asNode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Graph graph,
java.lang.Object object,
boolean asNode) |
protected PropertyEditorTree.Node |
createPropertyNodes(PropertyEditorTree t,
Property p,
UITree sourceTree,
java.lang.Object sourceNode) |
protected PropertyEditorTree.Node |
createPropertyNodesInGroup(PropertyEditorTree t,
Property p,
UITree sourceTree,
java.lang.Object sourceGroup) |
protected PropertyEditorTree |
createTree() |
void |
delete(boolean includeChildren)
Deletes this selection.
|
boolean |
equals(java.lang.Object o) |
int |
getCapabilities()
Returns the capabilities of this selection.
|
java.lang.Object |
getDescription(java.lang.String type)
Returns the description associated with the given
type. |
protected PropertyEditor |
getEditorFor(Property p,
Item item) |
GraphState |
getGraphState(int i) |
protected UITree |
getHierarchySource() |
protected java.lang.Object |
getHierarchySourceRoot(UITree source) |
protected java.lang.String |
getLabelFor(Property p) |
java.lang.Object |
getObject(int i) |
protected java.util.List |
getProperties(PropertyEditorTree tree) |
boolean |
isNode(int i) |
int |
size() |
createPropertyEditorComponent, createPropertyEditorMenu, createPropertyNodes, getContext, remove, toTransferableclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatePropertyEditorComponent, createPropertyEditorMenu, getContext, toTransferablepublic GraphSelectionImpl(Context ctx, GraphState[] states, java.lang.Object[] objects, boolean[] isNode)
public GraphSelectionImpl(Context ctx, GraphState state, java.lang.Object obj, boolean asNode)
public boolean contains(Graph graph, java.lang.Object object, boolean asNode)
contains in interface GraphSelectionprotected PropertyEditorTree.Node createPropertyNodes(PropertyEditorTree t, Property p, UITree sourceTree, java.lang.Object sourceNode)
createPropertyNodes in class SelectionBaseprotected PropertyEditorTree.Node createPropertyNodesInGroup(PropertyEditorTree t, Property p, UITree sourceTree, java.lang.Object sourceGroup)
createPropertyNodesInGroup in class SelectionBaseprotected PropertyEditorTree createTree()
createTree in class SelectionBasepublic void delete(boolean includeChildren)
SelectionSelection.DELETABLE.delete in interface Selectiondelete in class SelectionBaseincludeChildren - true iff children in the hierarchy
shall be includedpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int getCapabilities()
SelectionSelection.TRANSFERABLE,
Selection.DELETABLE, Selection.HIERARCHICAL.getCapabilities in interface SelectiongetCapabilities in class SelectionBasepublic java.lang.Object getDescription(java.lang.String type)
Describedtype.
type has to be one of the predefined constants
of this interface, the returned value has to conform to the
specification of the used constant.getDescription in interface Describedtype - the type of descriptionnull if no description is availableprotected PropertyEditor getEditorFor(Property p, Item item)
getEditorFor in class SelectionBasepublic GraphState getGraphState(int i)
getGraphState in interface GraphSelectionprotected UITree getHierarchySource()
getHierarchySource in class SelectionBaseprotected java.lang.Object getHierarchySourceRoot(UITree source)
getHierarchySourceRoot in class SelectionBaseprotected java.lang.String getLabelFor(Property p)
getLabelFor in class SelectionBasepublic java.lang.Object getObject(int i)
getObject in interface GraphSelectionprotected java.util.List getProperties(PropertyEditorTree tree)
getProperties in class SelectionBasepublic boolean isNode(int i)
isNode in interface GraphSelectionpublic int size()
size in interface GraphSelection