gumbo.visualize.data.consistency
Class ConsistencyManager

java.lang.Object
  |
  +--gumbo.visualize.data.consistency.ConsistencyManager
All Implemented Interfaces:
PickMapper

public class ConsistencyManager
extends java.lang.Object
implements PickMapper

Manages global consistency of graphic view interaction feedback, which includes coordinating a global unity, parity, and aspect manager. Graphic views must add themselves to this manager when created, and remove themselves when disposed.

Version:
$Revision: 1.1 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.

Method Summary
 void addGraphic(GraphicView view)
          Must be called by graphic views when they are created.
static ConsistencyManager getGlobalConsistencyManager()
          Returns the singleton global consistency manager.
 InteractorField.EventOut getParityPickOut()
          The output pick after parity grouping.
 InteractorField.EventIn getPickIn()
          The input pick, which should be graphic views.
 InteractorField.EventOut getPickOut()
          The output pick after unity, parity, and aspect grouping.
 NotifyNode.EventIn getRemoveGroupIn()
          Clears and disposes the aspect model associated with the front aspect group.
 NotifyNode.EventIn getToBackIn()
          Moves the front aspect group to the back.
 InteractorField.EventIn getToFrontIn()
          Moves the specified aspect group to the front.
 InteractorField.EventOut getUnityPickOut()
          The output pick after unity grouping.
 void removeGraphic(GraphicView view)
          Must be called by graphic views when they are disposed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addGraphic

public void addGraphic(GraphicView view)
Must be called by graphic views when they are created. Silently ignored if view is not an Interactor.


removeGraphic

public void removeGraphic(GraphicView view)
Must be called by graphic views when they are disposed. Silently ignored if view is not an Interactor.


getPickIn

public InteractorField.EventIn getPickIn()
The input pick, which should be graphic views. NO_PICK_TARGET if no target picked. Null for a null pick.

Specified by:
getPickIn in interface PickMapper

getToFrontIn

public InteractorField.EventIn getToFrontIn()
Moves the specified aspect group to the front. Ignored if the interactor is not a managed aspect group or if the group is already in front. Typically connected to the pick out of the picking chain, which results in the picked group automatically moving to the front.


getToBackIn

public NotifyNode.EventIn getToBackIn()
Moves the front aspect group to the back. Ignored if none or one aspect groups.


getRemoveGroupIn

public NotifyNode.EventIn getRemoveGroupIn()
Clears and disposes the aspect model associated with the front aspect group. Ignored if there are no aspect groups.


getUnityPickOut

public InteractorField.EventOut getUnityPickOut()
The output pick after unity grouping. NO_PICK_TARGET if no target picked. Null for a null pick.


getParityPickOut

public InteractorField.EventOut getParityPickOut()
The output pick after parity grouping. NO_PICK_TARGET if no target picked. Null for a null pick.


getPickOut

public InteractorField.EventOut getPickOut()
The output pick after unity, parity, and aspect grouping. NO_PICK_TARGET if no target picked. Null for a null pick.

Specified by:
getPickOut in interface PickMapper

getGlobalConsistencyManager

public static ConsistencyManager getGlobalConsistencyManager()
Returns the singleton global consistency manager. Used by graphic views to add themselves when created, and to remove themselves when disposed.

Returns:
Reference to the global monitor. Never null.