org.drools.eclipse.flow.common.editor.core
Class ElementConnection

java.lang.Object
  extended by org.drools.eclipse.flow.common.editor.core.ElementConnection
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConnectionWrapper

public abstract class ElementConnection
extends Object
implements Serializable

A connection between two model elements.

See Also:
Serialized Form

Field Summary
static int CHANGE_BENDPOINTS
           
static int CHANGE_LABEL
           
 
Constructor Summary
ElementConnection()
           
 
Method Summary
 void addBendpoint(int index, org.eclipse.draw2d.geometry.Point point)
           
 void addListener(ModelListener listener)
           
 void connect(ElementWrapper source, ElementWrapper target)
           
 void disconnect()
           
 List<org.eclipse.draw2d.geometry.Point> getBendpoints()
           
 ElementWrapper getSource()
           
 ElementWrapper getTarget()
           
protected abstract  List<org.eclipse.draw2d.geometry.Point> internalGetBendpoints()
           
protected  void internalSetBendpoints(List<org.eclipse.draw2d.geometry.Point> bendPoints)
           
 void localSetBendpoints(List<org.eclipse.draw2d.geometry.Point> bendpoints)
           
 void localSetSource(ElementWrapper source)
           
 void localSetTarget(ElementWrapper target)
           
 void notifyListeners(int change)
           
 void removeBendpoint(int index)
           
 void removeListener(ModelListener listener)
           
 void replaceBendpoint(int index, org.eclipse.draw2d.geometry.Point point)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGE_BENDPOINTS

public static final int CHANGE_BENDPOINTS
See Also:
Constant Field Values

CHANGE_LABEL

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

ElementConnection

public ElementConnection()
Method Detail

localSetSource

public void localSetSource(ElementWrapper source)

localSetTarget

public void localSetTarget(ElementWrapper target)

disconnect

public void disconnect()

connect

public void connect(ElementWrapper source,
                    ElementWrapper target)

getSource

public ElementWrapper getSource()

getTarget

public ElementWrapper getTarget()

addBendpoint

public void addBendpoint(int index,
                         org.eclipse.draw2d.geometry.Point point)

removeBendpoint

public void removeBendpoint(int index)

replaceBendpoint

public void replaceBendpoint(int index,
                             org.eclipse.draw2d.geometry.Point point)

internalSetBendpoints

protected void internalSetBendpoints(List<org.eclipse.draw2d.geometry.Point> bendPoints)

localSetBendpoints

public void localSetBendpoints(List<org.eclipse.draw2d.geometry.Point> bendpoints)

getBendpoints

public List<org.eclipse.draw2d.geometry.Point> getBendpoints()

internalGetBendpoints

protected abstract List<org.eclipse.draw2d.geometry.Point> internalGetBendpoints()

addListener

public void addListener(ModelListener listener)

removeListener

public void removeListener(ModelListener listener)

notifyListeners

public void notifyListeners(int change)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.