Class GraphObjectSelection

java.lang.Object
de.grogra.graph.object.impl.GraphObjectSelection
All Implemented Interfaces:
Selection, Described

public class GraphObjectSelection extends Object implements Selection
  • Constructor Details

  • Method Details

    • getDescription

      public Object getDescription(String type)
      Description copied from interface: Described
      Returns the description associated with the given type. 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.
      Specified by:
      getDescription in interface Described
      Parameters:
      type - the type of description
      Returns:
      the description, or null if no description is available
    • getCapabilities

      public int getCapabilities()
      Description copied from interface: Selection
      Returns the capabilities of this selection. The returned value is a combination of the flags Selection.TRANSFERABLE, Selection.DELETABLE, Selection.HIERARCHICAL.
      Specified by:
      getCapabilities in interface Selection
      Returns:
      this selection's capabilities
    • createPropertyEditorComponent

      public ComponentWrapper createPropertyEditorComponent()
      Description copied from interface: Selection
      Returns an editor component for the GUI. The component is used in in the GUI to edit the properties of this selection.
      Specified by:
      createPropertyEditorComponent in interface Selection
      Returns:
      a component responsible for editing this selection
    • createPropertyEditorMenu

      public ComponentWrapper createPropertyEditorMenu()
      Description copied from interface: Selection
      Returns 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:
      createPropertyEditorMenu in interface Selection
      Returns:
      a menu component responsible for editing this selection
    • toTransferable

      public Transferable toTransferable(boolean includeChildren)
      Description copied from interface: Selection
      Converts this selection into Transferable for the clipboard. This method is only invoked if this selection has the capability Selection.TRANSFERABLE.
      Specified by:
      toTransferable in interface Selection
      Parameters:
      includeChildren - true iff 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: Selection
      Deletes this selection. The precise semantics of deletion depends on the selection. This method is only invoked if this selection has the capability Selection.DELETABLE.
      Specified by:
      delete in interface Selection
      Parameters:
      includeChildren - true iff children in the hierarchy shall be included
    • getContext

      public Context getContext()
      Specified by:
      getContext in interface Selection
    • selectIt

      public static void selectIt(Item item, Object info, Context ctx)