maspack.render
Class GLSelectionEvent

java.lang.Object
  extended by maspack.render.GLSelectionEvent

public class GLSelectionEvent
extends java.lang.Object

Event returned whenever items are selected inside the GLViewer.


Field Summary
static int DRAG
          Flag indicating that drag selection was performed.
static int MULTIPLE
          Flag indicating that multiple object selection is desired.
 
Constructor Summary
GLSelectionEvent()
           
 
Method Summary
 int getFlags()
          Returns the mode flags associated with the selection.
 int getModifiersEx()
          Returns the extended keyboard modifiers that were in play at the time the selection was invoked.
 java.util.LinkedList<java.lang.Object>[] getSelectedObjects()
          Returns an array containing a list of objects for each selection query that resulted in a selection.
 int numSelectedQueries()
          Returns the number of selection queries that resulted in a selection.
 void setFlags(int flags)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MULTIPLE

public static final int MULTIPLE
Flag indicating that multiple object selection is desired.

See Also:
Constant Field Values

DRAG

public static final int DRAG
Flag indicating that drag selection was performed.

See Also:
Constant Field Values
Constructor Detail

GLSelectionEvent

public GLSelectionEvent()
Method Detail

getModifiersEx

public int getModifiersEx()
Returns the extended keyboard modifiers that were in play at the time the selection was invoked.

Returns:
extended keyboard modifiers

getSelectedObjects

public java.util.LinkedList<java.lang.Object>[] getSelectedObjects()
Returns an array containing a list of objects for each selection query that resulted in a selection.

Returns:
list of objects for each selected query

numSelectedQueries

public int numSelectedQueries()
Returns the number of selection queries that resulted in a selection.

Returns:
number of selected queries

getFlags

public int getFlags()
Returns the mode flags associated with the selection. Currently, these include MULTIPLE and DRAG.

Returns:
selection mode flags

setFlags

public void setFlags(int flags)