com.pnp.xfeature.editparts
Class FeatureConnectionEditPart

java.lang.Object
  extended by AbstractConnectionEditPart
      extended by com.pnp.xfeature.editparts.FeatureConnectionEditPart
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class FeatureConnectionEditPart
extends AbstractConnectionEditPart
implements java.beans.PropertyChangeListener

Controller of the node connectors.

Author:
Kamil Ekstein, created on 2.11.2004, totally redesigned on 26.3.2005 by Ondrej Rohlik

Constructor Summary
FeatureConnectionEditPart()
          calls superclass implementation
 
Method Summary
 void activate()
          Adds property change listener and links it with the model.
 void deactivate()
          Removes property change listener and linked with the model.
 FeatureConnectionModel getCastedModel()
          Returns the model of the right type.
 void propertyChange(java.beans.PropertyChangeEvent event)
          Refreshes visuals on source collapsing/expanding and when new connection is added.
 void setTransparency(boolean tr)
          Sets the transparency.
 java.lang.String toString()
          Reports the source and target of the connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureConnectionEditPart

public FeatureConnectionEditPart()
calls superclass implementation

Method Detail

activate

public void activate()
Adds property change listener and links it with the model.


deactivate

public void deactivate()
Removes property change listener and linked with the model.


getCastedModel

public FeatureConnectionModel getCastedModel()
Returns the model of the right type.


toString

public java.lang.String toString()
Reports the source and target of the connection.

See Also:
Object.toString()

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Refreshes visuals on source collapsing/expanding and when new connection is added.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener

setTransparency

public void setTransparency(boolean tr)
Sets the transparency.



Copyright © 2004 - 2008 ETH Zurich and P&P Software GmbH, All Rights Reserved.