com.ebmwebsourcing.petalsbpm.bpmndiagram.common.connector
Class ConnectorElement

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.ebmwebsourcing.geasytools.geasyui.impl.core.UIElement
                  extended by com.ebmwebsourcing.geasytools.geasyui.impl.connectable.Connector
                      extended by com.ebmwebsourcing.petalsbpm.bpmndiagram.common.connector.ConnectorElement
All Implemented Interfaces:
com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView, com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IConnectorHandler, com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnector, com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement, com.ebmwebsourcing.geasytools.geasyui.api.core.IHasBoundsUpdateHandler, com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable, com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement, com.ebmwebsourcing.geasytools.geasyui.api.draggable.IDraggable, com.ebmwebsourcing.geasytools.geasyui.api.draggable.IDraggableElement, com.ebmwebsourcing.geasytools.geasyui.api.selectable.ISelectable, com.ebmwebsourcing.geasytools.geasyui.impl.connectable.events.ConnectorHandler, IBPMNElement, com.ebmwebsourcing.webeditor.api.domain.project.IProjectInstanceContentElement, com.google.gwt.event.dom.client.HasAllMouseHandlers, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasMouseDownHandlers, com.google.gwt.event.dom.client.HasMouseMoveHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers, com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.dom.client.HasMouseUpHandlers, com.google.gwt.event.dom.client.HasMouseWheelHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.rpc.IsSerializable, com.google.gwt.user.client.ui.IsWidget
Direct Known Subclasses:
ConnectorFlow, DataAssociation

public abstract class ConnectorElement
extends com.ebmwebsourcing.geasytools.geasyui.impl.connectable.Connector
implements IBPMNElement, com.ebmwebsourcing.geasytools.geasyui.impl.connectable.events.ConnectorHandler

TODO: Make that class/package generic

Author:
nfleury

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
protected  com.ebmwebsourcing.geasytools.geasysvg.core.impl.Text label
           
protected  com.ebmwebsourcing.geasytools.geasysvg.ext.impl.LinearPath linearPath
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ConnectorElement(com.ebmwebsourcing.geasytools.geasyui.api.uipanel.IUIPanel uipanel, java.lang.String id)
           
ConnectorElement(com.ebmwebsourcing.geasytools.geasyui.api.uipanel.IUIPanel uipanel, java.lang.String id, com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnectableElement source, com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnectableElement target)
           
 
Method Summary
 void addBoundUpdateHandler(com.ebmwebsourcing.geasytools.geasyui.api.core.events.IBoundsUpdateHandler handler)
           
 com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnectorPoint createConnectorPoint(int x, int y)
           
 int getAbsoluteLeft()
           
 int getAbsoluteTop()
           
 java.util.HashSet<com.ebmwebsourcing.geasytools.diagrameditor.api.validation.IDiagramElementViewConformityRule> getConformityRules()
           
 com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnectorEnd getConnectorEndPoint()
           
 com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnectorStart getConnectorStartPoint()
           
 com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IDiagramElement getDiagramElement()
           
 com.ebmwebsourcing.geasytools.modeleditor.modelmanager.client.uibinder.AbstractUITemplate getFormTemplate()
           
 java.util.HashMap<com.ebmwebsourcing.geasytools.geasyui.api.core.Direction,com.ebmwebsourcing.geasytools.geasyui.impl.core.Point> getIntersectionPoints()
           
 java.lang.String getLabel()
           
 com.google.gwt.user.client.ui.Widget getMainWidget()
           
 void hide()
           
 void onAddWayPoint(com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IAddWayPointEvent event)
           
 void onConnection(com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IConnectionEvent event)
           
 void onDisconnection(com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IDisconnectionEvent event)
           
 void onRefresh(com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IRefreshEvent event)
           
 void onRemoveWayPoint(com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IRemoveWayPointEvent event)
           
 void refresh()
           
protected  void refreshLabelPosition()
           
 void removeFromParent()
           
 void setFormTemplate(com.ebmwebsourcing.geasytools.modeleditor.modelmanager.client.uibinder.AbstractUITemplate formTemplate)
           
protected  void setHasMouseOverConnectorPoint(ConnectorPointElement hasMouseOverConnectorPoint)
           
 void setHeight(float width)
           
 void setLabel(java.lang.String text)
           
 void setRelativeX(float x)
           
 void setRelativeY(float y)
           
 void show()
           
 void toBack()
           
 void toFront()
           
 
Methods inherited from class com.ebmwebsourcing.geasytools.geasyui.impl.connectable.Connector
addClickHandler, addConnectorHandler, addDragHandler, addIntermediateConnectorPoint, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addSelectionHandler, connect, fireEvent, getAllConnectorPoints, getContainer, getDraggableElementDefaultHandlers, getDraggedTypes, getGraph, getHandlerManager, getHeight, getId, getMouseState, getNWPoint, getRelativeX, getRelativeY, getSelectableDefaultHandlers, getSEPoint, getSource, getTarget, getWidth, removeIntermediateConnectorPoint, setContainer, setSource, setTarget, setWidth
 
Methods inherited from class com.ebmwebsourcing.geasytools.geasyui.impl.core.UIElement
equals, getUIPanel, hashCode, onAttach, setUIPanel
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView
getEditorModel, getEditorView, getMainModel, getStates, getSyntaxModelBinder, setEditorView
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement
getContainer, getHeight, getId, getMouseState, getName, getRelativeX, getRelativeY, getUIPanel, getWidth, setContainer, setUIPanel, setWidth
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.draggable.IDraggableElement
getUIPanel
 

Field Detail

linearPath

protected com.ebmwebsourcing.geasytools.geasysvg.ext.impl.LinearPath linearPath

label

protected com.ebmwebsourcing.geasytools.geasysvg.core.impl.Text label
Constructor Detail

ConnectorElement

public ConnectorElement(com.ebmwebsourcing.geasytools.geasyui.api.uipanel.IUIPanel uipanel,
                        java.lang.String id)

ConnectorElement

public ConnectorElement(com.ebmwebsourcing.geasytools.geasyui.api.uipanel.IUIPanel uipanel,
                        java.lang.String id,
                        com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnectableElement source,
                        com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnectableElement target)
Method Detail

addBoundUpdateHandler

public void addBoundUpdateHandler(com.ebmwebsourcing.geasytools.geasyui.api.core.events.IBoundsUpdateHandler handler)
Specified by:
addBoundUpdateHandler in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IHasBoundsUpdateHandler

setFormTemplate

public void setFormTemplate(com.ebmwebsourcing.geasytools.modeleditor.modelmanager.client.uibinder.AbstractUITemplate formTemplate)
Specified by:
setFormTemplate in interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView

getFormTemplate

public com.ebmwebsourcing.geasytools.modeleditor.modelmanager.client.uibinder.AbstractUITemplate getFormTemplate()
Specified by:
getFormTemplate in interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView

removeFromParent

public void removeFromParent()
Overrides:
removeFromParent in class com.ebmwebsourcing.geasytools.geasyui.impl.connectable.Connector

setHasMouseOverConnectorPoint

protected void setHasMouseOverConnectorPoint(ConnectorPointElement hasMouseOverConnectorPoint)

getConnectorEndPoint

public com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnectorEnd getConnectorEndPoint()
Specified by:
getConnectorEndPoint in interface com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnector

toFront

public void toFront()
Specified by:
toFront in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement

hide

public void hide()
Specified by:
hide in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement

show

public void show()
Specified by:
show in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement

getConnectorStartPoint

public com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnectorStart getConnectorStartPoint()
Specified by:
getConnectorStartPoint in interface com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnector

setLabel

public void setLabel(java.lang.String text)

getLabel

public java.lang.String getLabel()

refresh

public void refresh()
Specified by:
refresh in interface com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnector
Specified by:
refresh in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement
Overrides:
refresh in class com.ebmwebsourcing.geasytools.geasyui.impl.connectable.Connector

getIntersectionPoints

public java.util.HashMap<com.ebmwebsourcing.geasytools.geasyui.api.core.Direction,com.ebmwebsourcing.geasytools.geasyui.impl.core.Point> getIntersectionPoints()
Specified by:
getIntersectionPoints in interface com.ebmwebsourcing.geasytools.geasyui.api.selectable.ISelectable

setHeight

public void setHeight(float width)
Specified by:
setHeight in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement

setRelativeX

public void setRelativeX(float x)
Specified by:
setRelativeX in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable
Specified by:
setRelativeX in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement

setRelativeY

public void setRelativeY(float y)
Specified by:
setRelativeY in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable
Specified by:
setRelativeY in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement

refreshLabelPosition

protected void refreshLabelPosition()

getAbsoluteLeft

public int getAbsoluteLeft()
Specified by:
getAbsoluteLeft in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable
Specified by:
getAbsoluteLeft in class com.ebmwebsourcing.geasytools.geasyui.impl.connectable.Connector

getAbsoluteTop

public int getAbsoluteTop()
Specified by:
getAbsoluteTop in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable
Specified by:
getAbsoluteTop in class com.ebmwebsourcing.geasytools.geasyui.impl.connectable.Connector

onAddWayPoint

public void onAddWayPoint(com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IAddWayPointEvent event)
Specified by:
onAddWayPoint in interface com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IConnectorHandler
Specified by:
onAddWayPoint in interface com.ebmwebsourcing.geasytools.geasyui.impl.connectable.events.ConnectorHandler

onConnection

public void onConnection(com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IConnectionEvent event)
Specified by:
onConnection in interface com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IConnectorHandler
Specified by:
onConnection in interface com.ebmwebsourcing.geasytools.geasyui.impl.connectable.events.ConnectorHandler

onRemoveWayPoint

public void onRemoveWayPoint(com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IRemoveWayPointEvent event)
Specified by:
onRemoveWayPoint in interface com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IConnectorHandler
Specified by:
onRemoveWayPoint in interface com.ebmwebsourcing.geasytools.geasyui.impl.connectable.events.ConnectorHandler

getMainWidget

public com.google.gwt.user.client.ui.Widget getMainWidget()
Specified by:
getMainWidget in class com.ebmwebsourcing.geasytools.geasyui.impl.core.UIElement

getDiagramElement

public com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IDiagramElement getDiagramElement()
Specified by:
getDiagramElement in interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView

toBack

public void toBack()
Specified by:
toBack in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement

getConformityRules

public java.util.HashSet<com.ebmwebsourcing.geasytools.diagrameditor.api.validation.IDiagramElementViewConformityRule> getConformityRules()
Specified by:
getConformityRules in interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView

onDisconnection

public void onDisconnection(com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IDisconnectionEvent event)
Specified by:
onDisconnection in interface com.ebmwebsourcing.geasytools.geasyui.impl.connectable.events.ConnectorHandler

createConnectorPoint

public com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnectorPoint createConnectorPoint(int x,
                                                                                                  int y)
Specified by:
createConnectorPoint in interface com.ebmwebsourcing.geasytools.geasyui.api.connectable.IConnector

onRefresh

public void onRefresh(com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IRefreshEvent event)
Specified by:
onRefresh in interface com.ebmwebsourcing.geasytools.geasyui.api.connectable.events.IConnectorHandler
Specified by:
onRefresh in interface com.ebmwebsourcing.geasytools.geasyui.impl.connectable.events.ConnectorHandler


Copyright © 2010-2011 eBM WebSourcing. All Rights Reserved.