public interface ObjectSceneListener
Implementers of this interface should try and make the implemented methods as brief as possible. These methods are called in the same thread that is handing the corresponding action, and taking too much time in these methods will slow the UI update down.
Modifier and Type | Method and Description |
---|---|
void |
focusChanged(ObjectSceneEvent event,
Object previousFocusedObject,
Object newFocusedObject)
Called to notify that the object-focus is changed.
|
void |
highlightingChanged(ObjectSceneEvent event,
Set<Object> previousHighlighting,
Set<Object> newHighlighting)
Called to notify that the object-highlighting is changed.
|
void |
hoverChanged(ObjectSceneEvent event,
Object previousHoveredObject,
Object newHoveredObject)
Called to notify that the object-hovering is changed.
|
void |
objectAdded(ObjectSceneEvent event,
Object addedObject)
Called to notify that an object was added to an object scene.
|
void |
objectRemoved(ObjectSceneEvent event,
Object removedObject)
Called to notify that an object was removed from an object scene.
|
void |
objectStateChanged(ObjectSceneEvent event,
Object changedObject,
ObjectState previousState,
ObjectState newState)
Called to notify that the object state of an object is changed.
|
void |
selectionChanged(ObjectSceneEvent event,
Set<Object> previousSelection,
Set<Object> newSelection)
Called to notify that the object-selection is changed.
|
void objectAdded(ObjectSceneEvent event, Object addedObject)
event
- addedObject
- void objectRemoved(ObjectSceneEvent event, Object removedObject)
event
- the object scene eventremovedObject
- the removed objectvoid objectStateChanged(ObjectSceneEvent event, Object changedObject, ObjectState previousState, ObjectState newState)
event
- the object scene eventchangedObject
- the object with changed object statepreviousState
- the previous object statenewState
- the new object statevoid selectionChanged(ObjectSceneEvent event, Set<Object> previousSelection, Set<Object> newSelection)
event
- the object scene eventpreviousSelection
- the set of previously selected objectsnewSelection
- the set of newly selected objectsvoid highlightingChanged(ObjectSceneEvent event, Set<Object> previousHighlighting, Set<Object> newHighlighting)
event
- the object scene eventpreviousHighlighting
- the set of previously highlighted objectsnewHighlighting
- the set of newly highlighted objectsvoid hoverChanged(ObjectSceneEvent event, Object previousHoveredObject, Object newHoveredObject)
event
- the object scene eventpreviousHoveredObject
- the previous hovered object; null if there was no hovered objectnewHoveredObject
- the new hovered object; null if there is no hovered objectvoid focusChanged(ObjectSceneEvent event, Object previousFocusedObject, Object newFocusedObject)
event
- the object scene eventpreviousFocusedObject
- the previously focused object; null if there was no focused objectnewFocusedObject
- the newly focused object; null if there is no focused object