cz.cuni.jagrlib.gui
Class ChannelGUIImproved

java.lang.Object
  extended by cz.cuni.jagrlib.gui.ChannelGUI
      extended by cz.cuni.jagrlib.gui.ChannelGUIImproved

public class ChannelGUIImproved
extends ChannelGUI

Improved class that care about visual representation of channels. It has four orientation of arrow - North, South, West, East.

See Also:
ChannelGUIImproved.java

Field Summary
 
Fields inherited from class cz.cuni.jagrlib.gui.ChannelGUI
info
 
Constructor Summary
ChannelGUIImproved(InfoChannel _info)
          Creates new ChannelGUIImproved.
 
Method Summary
 boolean contains(int px, int py)
          Tests, if point lies on channel.
 void extend(java.awt.Rectangle r)
          Extends the given rectangle to hold the channel image.
 void paintItem(java.awt.Graphics g)
          Paints extra graphics on composition panel: channels with arrows..
 void registryChannel()
          Registration of channel in plugs.
 void removeChannel()
          Remove channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelGUIImproved

public ChannelGUIImproved(InfoChannel _info)
Creates new ChannelGUIImproved.

Parameters:
_info - Information about channel.
Method Detail

contains

public boolean contains(int px,
                        int py)
Tests, if point lies on channel.

Specified by:
contains in class ChannelGUI
Parameters:
px - x-axis.
py - y-axis.
Returns:
true if point lies on a channel.

extend

public void extend(java.awt.Rectangle r)
Extends the given rectangle to hold the channel image.

Specified by:
extend in class ChannelGUI

registryChannel

public void registryChannel()
Registration of channel in plugs.

Specified by:
registryChannel in class ChannelGUI

removeChannel

public void removeChannel()
Remove channel. Un-registers channel from all plugs.

Specified by:
removeChannel in class ChannelGUI

paintItem

public void paintItem(java.awt.Graphics g)
Paints extra graphics on composition panel: channels with arrows..

Specified by:
paintItem in class ChannelGUI
Parameters:
g - Graphics.