D - The diagram type.C - The handled canvas type.public abstract class CanvasHandlerProxy<D extends Diagram,C extends AbstractCanvas> extends BaseCanvasHandler<D,C>
AbstractCanvasHandler instance and replicates its state into this instance' canvas.
By default it provides a null instance for the graph execution context and does not load rules,
so no runtime evaluations neither model updates are applied by this handler.
Eg: It's useful for preview goals - it can proxy a given handler and replicate its state on a differnt canvas instance.| Constructor and Description |
|---|
CanvasHandlerProxy(DefinitionManager definitionManager,
GraphUtils graphUtils,
ShapeManager shapeManager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildGraphIndex(org.uberfire.mvp.Command loadCallback)
Build the graph index instance using any concrete index/builder types.
|
protected void |
destroyGraphIndex(org.uberfire.mvp.Command callback)
Destroys this instance' graph index.
|
GraphCommandExecutionContext |
getGraphExecutionContext()
Should return a graph execution context to perform the model updates applied by the graph command executions.
|
Index<?,?> |
getGraphIndex()
Returns the graph index instance to perform lookups over the graph structure
foe this canvas handler's diagram instance loaded.
|
GraphRulesManager |
getGraphRulesManager()
Provides the graph rules manager instance for this context.
|
ModelRulesManager |
getModelRulesManager()
Provides the graph rules manager instance for this context.
|
abstract AbstractCanvasHandler |
getWrapped() |
protected void |
loadRules(org.uberfire.mvp.Command loadCallback)
Load the necessary rules into the graph and model rules manager member instances.
|
addChild, addShape, afterDraw, afterElementAdded, afterElementDeleted, afterElementUpdated, applyElementMutation, beforeDraw, beforeElementDeleted, beforeElementUpdated, deregister, dock, doClear, doDestroy, draw, draw, getCanvas, getDefinitionId, getDefinitionManager, getDiagram, getGraphUtils, getShapeFactory, getShapeManager, handle, handleParentChildZIndex, handleZIndex, handleZIndex, handleZIndex, isCanvasRoot, register, removeChild, removeShape, showError, undockaddRegistrationListener, applyElementMutation, applyElementMutation, clear, clearCanvas, clearRegistrationListeners, deregister, deregister, destroy, equals, getAbstractCanvas, getUuid, hashCode, isCanvasRoot, notifyCanvasClear, notifyCanvasElementAdded, notifyCanvasElementRemoved, notifyCanvasElementUpdated, register, register, removeRegistrationListener, toString, updateElementPosition, updateElementPropertiespublic CanvasHandlerProxy(DefinitionManager definitionManager, GraphUtils graphUtils, ShapeManager shapeManager)
public abstract AbstractCanvasHandler getWrapped()
public GraphRulesManager getGraphRulesManager()
AbstractCanvasHandlergetGraphRulesManager in class AbstractCanvasHandler<D extends Diagram,C extends AbstractCanvas>public ModelRulesManager getModelRulesManager()
AbstractCanvasHandlergetModelRulesManager in class AbstractCanvasHandler<D extends Diagram,C extends AbstractCanvas>public Index<?,?> getGraphIndex()
AbstractCanvasHandlergetGraphIndex in class AbstractCanvasHandler<D extends Diagram,C extends AbstractCanvas>public GraphCommandExecutionContext getGraphExecutionContext()
AbstractCanvasHandlernull or an empty context type.getGraphExecutionContext in class AbstractCanvasHandler<D extends Diagram,C extends AbstractCanvas>protected void buildGraphIndex(org.uberfire.mvp.Command loadCallback)
BaseCanvasHandlerbuildGraphIndex in class BaseCanvasHandler<D extends Diagram,C extends AbstractCanvas>loadCallback - Callback to run once load finishes. This kind of indexes could be loaded or
cached in/from server side as well.protected void loadRules(org.uberfire.mvp.Command loadCallback)
BaseCanvasHandlerloadRules in class BaseCanvasHandler<D extends Diagram,C extends AbstractCanvas>loadCallback - Callback to run once rules have been loaded, if any.protected void destroyGraphIndex(org.uberfire.mvp.Command callback)
BaseCanvasHandlerdestroyGraphIndex in class BaseCanvasHandler<D extends Diagram,C extends AbstractCanvas>callback - Callback to run once index has been destroyed.Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.