java.lang.Object
de.grogra.graph.wrapped.WrappedGraphSelection
The implementation of Selection used to show the available commands for a selected SharedWrappedGraph
-
Field Summary
Fields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLEFields inherited from interface de.grogra.pf.ui.edit.Selection
DELETABLE, HIERARCHICAL, TRANSFERABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a list of buttons in the selection panel based on the command directory given by the selected SharedWrappedGraphReturns an editor menu component for the GUI.voiddelete(boolean includeChildren) Deletes this selection.intReturns the capabilities of this selection.getDescription(String type) Returns the description associated with the giventype.static voidCommand used by the composite representation of a field of the type of a SharedWrappedGraph in the attribute editortoTransferable(boolean includeChildren) Converts this selection intoTransferablefor the clipboard.
-
Constructor Details
-
WrappedGraphSelection
-
-
Method Details
-
getDescription
Description copied from interface:DescribedReturns the description associated with the giventype.typehas to be one of the predefined constants of this interface, the returned value has to conform to the specification of the used constant.- Specified by:
getDescriptionin interfaceDescribed- Parameters:
type- the type of description- Returns:
- the description, or
nullif no description is available
-
getCapabilities
public int getCapabilities()Description copied from interface:SelectionReturns the capabilities of this selection. The returned value is a combination of the flagsSelection.TRANSFERABLE,Selection.DELETABLE,Selection.HIERARCHICAL.- Specified by:
getCapabilitiesin interfaceSelection- Returns:
- this selection's capabilities
-
createPropertyEditorComponent
Create a list of buttons in the selection panel based on the command directory given by the selected SharedWrappedGraph- Specified by:
createPropertyEditorComponentin interfaceSelection- Returns:
- a component responsible for editing this selection
-
createPropertyEditorMenu
Description copied from interface:SelectionReturns an editor menu component for the GUI. The component is used in in the GUI to edit the properties of this selection as part of a menu.- Specified by:
createPropertyEditorMenuin interfaceSelection- Returns:
- a menu component responsible for editing this selection
-
toTransferable
Description copied from interface:SelectionConverts this selection intoTransferablefor the clipboard. This method is only invoked if this selection has the capabilitySelection.TRANSFERABLE.- Specified by:
toTransferablein interfaceSelection- Parameters:
includeChildren-trueiff children in the hierarchy shall be included- Returns:
- a transferable object representing the data of this selection
-
delete
public void delete(boolean includeChildren) Description copied from interface:SelectionDeletes this selection. The precise semantics of deletion depends on the selection. This method is only invoked if this selection has the capabilitySelection.DELETABLE. -
getContext
- Specified by:
getContextin interfaceSelection
-
selectIt
Command used by the composite representation of a field of the type of a SharedWrappedGraph in the attribute editor- Parameters:
item-info-ctx-
-