SysML

org.topcased.modeler.sysml.internalblockdiagram.edit
Class ConnectorEditPart

java.lang.Object
  extended by EMFGraphEdgeEditPart
      extended by org.topcased.modeler.sysml.internalblockdiagram.edit.ConnectorEditPart

public class ConnectorEditPart
extends EMFGraphEdgeEditPart

Connector controller

** Generated **

Field Summary
static int flowFromSourceToTarget
           
static int flowFromTargetToSource
           
static int flowInBothDirection
           
static int noFlow
           
 
Constructor Summary
ConnectorEditPart(GraphEdge model)
          Constructor
 
Method Summary
 void activate()
           
protected  void createEditPolicies()
           
protected  org.eclipse.draw2d.IFigure createFigure()
           
 void deactivate()
           
 IEdgeObjectFigure getEdgeObjectFigure(EdgeObject edgeObject)
           
protected  void handleModelChanged(Notification msg)
           
 void performRequest(org.eclipse.gef.Request request)
           
protected  void refreshEdgeObjects()
           
 void updateItemFlowIcon(ConnectorFigure connectorFigure)
          Update ItemFlowIcon according to the position of the connector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noFlow

public static final int noFlow
See Also:
Constant Field Values

flowFromSourceToTarget

public static final int flowFromSourceToTarget
See Also:
Constant Field Values

flowFromTargetToSource

public static final int flowFromTargetToSource
See Also:
Constant Field Values

flowInBothDirection

public static final int flowInBothDirection
See Also:
Constant Field Values
Constructor Detail

ConnectorEditPart

public ConnectorEditPart(GraphEdge model)
Constructor

Parameters:
model - the graph object
** Generated **
Method Detail

createEditPolicies

protected void createEditPolicies()

See Also:
org.eclipse.gef.editparts.AbstractEditPart#createEditPolicies()
** Generated **
NOT

createFigure

protected org.eclipse.draw2d.IFigure createFigure()

Returns:
the Figure
** Generated **

getEdgeObjectFigure

public IEdgeObjectFigure getEdgeObjectFigure(EdgeObject edgeObject)

See Also:
org.topcased.modeler.edit.GraphEdgeEditPart#getEdgeObjectFigure(org.topcased.modeler.di.model.EdgeObject)
** Generated **

refreshEdgeObjects

protected void refreshEdgeObjects()

See Also:
org.topcased.modeler.edit.GraphEdgeEditPart#refreshEdgeObjects()
** Generated **

handleModelChanged

protected void handleModelChanged(Notification msg)
See Also:
org.topcased.modeler.edit.EMFGraphEdgeEditPart#handleModelChanged(org.eclipse.emf.common.notify.Notification)

activate

public void activate()
See Also:
org.topcased.modeler.edit.EMFGraphNodeEditPart#activate()

deactivate

public void deactivate()
See Also:
org.topcased.modeler.edit.EMFGraphNodeEditPart#deactivate()

updateItemFlowIcon

public void updateItemFlowIcon(ConnectorFigure connectorFigure)
Update ItemFlowIcon according to the position of the connector

Parameters:
connectorFigure - the ConnectorFigure

performRequest

public void performRequest(org.eclipse.gef.Request request)
See Also:
org.eclipse.gef.editparts.AbstractEditPart#performRequest(Request)

SysML

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.