com.pnp.xfeature.figures
Class FeatureConnection

java.lang.Object
  extended by PolylineConnection
      extended by com.pnp.xfeature.figures.FeatureConnection

public class FeatureConnection
extends PolylineConnection

Standard Polyline connection extended to have a link to its parent, i.e. the node it comes from and so the lineStyle, lineWidth, etc. attributes can be applied.

Author:
Kamil Ekstein, created on 4.12.2004; updated by Ondrej Rohlik in April 2005

Constructor Summary
FeatureConnection(FeatureNodeModel parent)
          creates the connector and sets its visual properties: style, width and color
 
Method Summary
 void finalize()
          disposes the connector color
 boolean isTransparent()
          getter method
 void paint(Graphics graphics)
          calls superclass implementation if not transparent
 void paintFigure(Graphics graphics)
          calls superclass implementation
 void revalidate()
          calls superclass implementation
 void setTransparent(boolean transparent)
          setter method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureConnection

public FeatureConnection(FeatureNodeModel parent)
creates the connector and sets its visual properties: style, width and color

Method Detail

finalize

public void finalize()
              throws java.lang.Throwable
disposes the connector color

Throws:
java.lang.Throwable

revalidate

public void revalidate()
calls superclass implementation


paintFigure

public void paintFigure(Graphics graphics)
calls superclass implementation


paint

public void paint(Graphics graphics)
calls superclass implementation if not transparent


isTransparent

public boolean isTransparent()
getter method


setTransparent

public void setTransparent(boolean transparent)
setter method



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