org.xith3d.selection
Interface Action
- All Known Implementing Classes:
- AbstractAction, Separator
public interface Action
This class represents an Action that can be performed with the current selection.
Implementations of this interface have to override equals() in a way, that Actions
with the same ID are treated as equal! Also hashCode() has to return id.hashCode().
The best way to achieve this is to extend AbstractAction instead of implementing this interface.
|
Method Summary |
java.lang.String |
getDisplayName()
|
java.lang.String |
getID()
|
void |
performAction(org.openmali.vecmath2.Tuple2i mouseCoords,
org.openmali.vecmath2.Tuple3f worldCoords,
java.util.List<Selectable> selection,
java.util.List<Selectable> selectedContext)
|
boolean |
testEnabledState(org.openmali.vecmath2.Tuple2i mouseCoords,
org.openmali.vecmath2.Tuple3f worldCoords,
java.util.List<Selectable> selection,
java.util.List<Selectable> selectedContext)
|
getID
java.lang.String getID()
getDisplayName
java.lang.String getDisplayName()
testEnabledState
boolean testEnabledState(org.openmali.vecmath2.Tuple2i mouseCoords,
org.openmali.vecmath2.Tuple3f worldCoords,
java.util.List<Selectable> selection,
java.util.List<Selectable> selectedContext)
performAction
void performAction(org.openmali.vecmath2.Tuple2i mouseCoords,
org.openmali.vecmath2.Tuple3f worldCoords,
java.util.List<Selectable> selection,
java.util.List<Selectable> selectedContext)