@Dependent public class NewConnectorCommand<I> extends AbstractElementBuilderCommand<I>
ToolboxCommand.Status| Modifier | Constructor and Description |
|---|---|
protected |
NewConnectorCommand() |
|
NewConnectorCommand(ClientFactoryService clientFactoryServices,
ShapeManager shapeManager,
DefinitionGlyphTooltip<?> glyphTooltip,
GraphBoundsIndexer graphBoundsIndexer,
ConnectorDragProxy<AbstractCanvasHandler> connectorDragProxyFactory,
EdgeBuilderControl<AbstractCanvasHandler> edgeBuilderControl) |
| Modifier and Type | Method and Description |
|---|---|
void |
click(Context<AbstractCanvasHandler> context,
Element element) |
protected BuildRequest |
createBuildRequest(int x,
int y,
Element source,
Element newElement,
Node targetNode) |
protected Object |
createtBuilderControlItem(Context<AbstractCanvasHandler> context,
Element source,
Element newElement) |
void |
destroy() |
protected BuilderControl |
getBuilderControl() |
protected String |
getDefinitionIdentifier(Context<AbstractCanvasHandler> context) |
protected DragProxy |
getDragProxyFactory() |
protected String |
getGlyphDefinitionId() |
String |
getTitle() |
void |
init() |
protected void |
onDefinitionInstanceBuilt(Context<AbstractCanvasHandler> context,
Element source,
Element newElement,
org.uberfire.mvp.Command callback)
Set the source node for the recently new connector instance as the source
element for the shape's toolbox, so further rules can be evaluated for all commands.
|
protected boolean |
onDragProxyMove(int x,
int y,
Element source,
Element newElement,
Node targetNode) |
void |
setEdgeIdentifier(String edgeId) |
clearDragProxy, getDragProxyCallback, getFactory, getIcon, mouseEnter, mouseExit, onItemBuiltgetClientFactoryServices, getGraphBoundsIndexer, mouseDown, onComplete, onError, onMove, onStartexecute, fireElementSelectedEvent, fireLoadingCompleted, fireLoadingStartedprotected NewConnectorCommand()
@Inject public NewConnectorCommand(ClientFactoryService clientFactoryServices, ShapeManager shapeManager, DefinitionGlyphTooltip<?> glyphTooltip, GraphBoundsIndexer graphBoundsIndexer, ConnectorDragProxy<AbstractCanvasHandler> connectorDragProxyFactory, EdgeBuilderControl<AbstractCanvasHandler> edgeBuilderControl)
@PostConstruct public void init()
public void setEdgeIdentifier(String edgeId)
protected String getDefinitionIdentifier(Context<AbstractCanvasHandler> context)
getDefinitionIdentifier in class AbstractBuilderCommand<I>protected String getGlyphDefinitionId()
getGlyphDefinitionId in class AbstractElementBuilderCommand<I>public String getTitle()
public void click(Context<AbstractCanvasHandler> context, Element element)
click in class AbstractBuilderCommand<I>protected DragProxy getDragProxyFactory()
getDragProxyFactory in class AbstractBuilderCommand<I>protected BuilderControl getBuilderControl()
getBuilderControl in class AbstractBuilderCommand<I>protected Object createtBuilderControlItem(Context<AbstractCanvasHandler> context, Element source, Element newElement)
createtBuilderControlItem in class AbstractBuilderCommand<I>protected void onDefinitionInstanceBuilt(Context<AbstractCanvasHandler> context, Element source, Element newElement, org.uberfire.mvp.Command callback)
onDefinitionInstanceBuilt in class AbstractBuilderCommand<I>protected boolean onDragProxyMove(int x,
int y,
Element source,
Element newElement,
Node targetNode)
onDragProxyMove in class AbstractBuilderCommand<I>protected BuildRequest createBuildRequest(int x, int y, Element source, Element newElement, Node targetNode)
createBuildRequest in class AbstractBuilderCommand<I>public void destroy()
destroy in interface ToolboxCommand<AbstractCanvasHandler,I>destroy in class AbstractElementBuilderCommand<I>Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.