de.jreality.ui.viewerapp
Class SelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by de.jreality.ui.viewerapp.SelectionEvent
All Implemented Interfaces:
java.io.Serializable

public class SelectionEvent
extends java.util.EventObject

Event for selections in the scene graph.

Author:
msommer
See Also:
Serialized Form

Constructor Summary
SelectionEvent(java.lang.Object source, Selection selection)
           
 
Method Summary
 boolean appearanceSelected()
          Returns true iff an Appearance was selected
 boolean componentSelected()
          Returns true iff a SceneGraphComponent was selected
 boolean entitySelected()
          Returns true iff an AttributeEntity was selected
 boolean geometrySelected()
          Returns true iff a Geometry was selected
 Selection getSelection()
          Get the current Selection object
 boolean nodeSelected()
          Returns true iff a SceneGraphNode was selected
 boolean rootSelected()
          Returns true iff the scene graph's root was selected
 boolean toolSelected()
          Returns true iff a Tool was selected
 boolean transformationSelected()
          Returns true iff a Transformation was selected
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectionEvent

public SelectionEvent(java.lang.Object source,
                      Selection selection)
Parameters:
source - the event's source
selection - the current Selection object
Method Detail

getSelection

public Selection getSelection()
Get the current Selection object


toolSelected

public boolean toolSelected()
Returns true iff a Tool was selected


entitySelected

public boolean entitySelected()
Returns true iff an AttributeEntity was selected


rootSelected

public boolean rootSelected()
Returns true iff the scene graph's root was selected


nodeSelected

public boolean nodeSelected()
Returns true iff a SceneGraphNode was selected


componentSelected

public boolean componentSelected()
Returns true iff a SceneGraphComponent was selected


geometrySelected

public boolean geometrySelected()
Returns true iff a Geometry was selected


appearanceSelected

public boolean appearanceSelected()
Returns true iff an Appearance was selected


transformationSelected

public boolean transformationSelected()
Returns true iff a Transformation was selected