|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.visualize.data.consistency.IdManager | +--gumbo.visualize.data.consistency.ParityManager
Manages the membership of graphic views in "parity groups" to achieve consistent interaction feedback across views. The members of a parity group represent different client models that should be equal in the context of interaction feedback. For example, a given line of source code in a list view and the corresponding vertices in a call graph should appear selected, together.
The members of the aspect models registered with this manager are assigned to mutually exclusive interactor groups associated with parity model client IDs. A pick mapper maps target interactors to parity groups according to the target client ID. As such, this manager should be used just after the unity manager in the picking chain.
Monitors aspect model activity (see AspectModel.getAspectModelMonitor()) to automatically update parity groups. Note that parity groups will only be created automatically for aspect models that are of type ParityModel.
Constructor Summary | |
ParityManager(IdManager target)
Creates an instance as the mapper after the target mapper in a picking chain. |
Method Summary | |
void |
addGraphic(GraphicView view)
|
void |
addGroup(AspectModel aspect)
Adds an aspect model to this manager as a parity group. |
InteractorField.EventIn |
getPickIn()
The input pick. |
InteractorField.EventOut |
getPickOut()
The output pick, which is the input pick or a managed interactor group corresponding to the input pick's client ID. |
void |
removeGraphic(GraphicView view)
|
void |
removeGroup(AspectModel aspect)
Removes an aspect model from this manager as a parity group. |
Methods inherited from class gumbo.visualize.data.consistency.IdManager |
findInputPick, findOutputPick, getOutputPickMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParityManager(IdManager target)
target
- The target manager. Never null.Method Detail |
public final void addGroup(AspectModel aspect)
public final void removeGroup(AspectModel aspect)
public final void addGraphic(GraphicView view)
public final void removeGraphic(GraphicView view)
public InteractorField.EventIn getPickIn()
IdManager
getPickIn
in interface PickMapper
getPickIn
in class IdManager
public InteractorField.EventOut getPickOut()
IdManager
getPickOut
in interface PickMapper
getPickOut
in class IdManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |