Module imp

Class ViewSelection

java.lang.Object
de.grogra.imp.edit.ViewSelection

public final class ViewSelection extends Object
  • Field Details

    • MOUSE_OVER

      public static final int MOUSE_OVER
      Bit mask indicating that the mouse pointer is over an object in a view.
      See Also:
    • MOUSE_OVER_SELECTED

      public static final int MOUSE_OVER_SELECTED
      Bit mask indicating the single object under the mouse pointer which the user has selected out of the list of objects under the mouse pointer.
      See Also:
    • SELECTED

      public static final int SELECTED
      Bit mask indicating that an object is selected.
      See Also:
    • PROPERTY

      public static final UIProperty PROPERTY
  • Method Details

    • getEntry

      public ViewSelection.Entry getEntry(Path path)
    • getFirstEntry

      public ViewSelection.Entry getFirstEntry(Object object, boolean asNode)
    • get

      public int get(Path path)
    • get

      public int get(Object object, boolean asNode)
    • isSelected

      public boolean isSelected(Object object, boolean asNode)
    • getFirstPath

      public Path getFirstPath(int type)
    • getAll

      public ViewSelection.Entry[] getAll(int type)
    • count

      public int count(int type)
    • add

      public int add(int type, Path path)
    • remove

      public void remove(int type, Path path)
    • removeAndAdd

      public int removeAndAdd(int remove, int add, Path path)
    • set

      public void set(Selection sel, boolean updateWorkbenchSelection)
    • set

      public Path[] set(int type, Path[] paths, boolean updateWorkbenchSelection)
    • toggle

      public int toggle(int type, Path path)
    • graphModified

      public void graphModified(GraphState gs)
    • create

      public static void create(View view)
    • get

      public static ViewSelection get(Context ctx)
    • getColor

      public static int getColor(int baseColor, int state, boolean showSel)