cz.cmc.tcgui
Class FilterView.FilterHandle

java.lang.Object
  extended bycz.cmc.tcgui.TCObjectView.TCObjectHandle
      extended bycz.cmc.tcgui.FilterEntryView.FilterEntryHandle
          extended bycz.cmc.tcgui.FilterView.FilterHandle
All Implemented Interfaces:
org.jgraph.graph.CellHandle
Enclosing class:
FilterView

public class FilterView.FilterHandle
extends FilterEntryView.FilterEntryHandle

Title: class FilterHandle

Description: Handle for filter heads.

Copyright: Copyright (c) 2003

Company: CMC Computers


Field Summary
protected  Rectangle drawed
          Drawed position for inserting element.
 
Fields inherited from class cz.cmc.tcgui.TCObjectView.TCObjectHandle
cachedBounds, CONNECT_HANDLE, context, contextViews, currentPoint, currentPort, dragged, firstDrag, firstOverlayInvocation, firstPoint, firstPort, graph, handle, initialBounds, MOVE_HANDLE, NO_HANDLE, offgraphics, offscreen, originOffsetX, originOffsetY, portViews, r
 
Constructor Summary
FilterView.FilterHandle(org.jgraph.graph.GraphContext ctx)
          Constructs new FilterHandle
 
Method Summary
protected  TCPort getMatchingPort(TCObject tco)
          Get matching port of the counterpart TCObject when connecting
 void mouseMoved(MouseEvent event)
          Invoked when the mouse pointer has been moved on a component (with no buttons down).
 void mousePressed(MouseEvent event)
          Process mouse pressed event.
protected  Rectangle moved(Graphics g, Rectangle bounds)
          Handle movement of the filter element.
protected  void movingDone(Rectangle bounds)
          If handleMove() is true, this is called when the cell movement is done.
 void paint(Graphics g)
          Paint the handle
 
Methods inherited from class cz.cmc.tcgui.TCObjectView.TCObjectHandle
computeBounds, connect, connectionAllowed, handleMove, handleResize, initOffscreen, makeBoundEdit, mouseDragged, mouseReleased, overlay, resized, resizingDone, startConnecting, updateConnect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

drawed

protected transient Rectangle drawed
Drawed position for inserting element.

Constructor Detail

FilterView.FilterHandle

public FilterView.FilterHandle(org.jgraph.graph.GraphContext ctx)
Constructs new FilterHandle

Parameters:
ctx - GraphContext to construct handle for
Method Detail

moved

protected Rectangle moved(Graphics g,
                          Rectangle bounds)
Handle movement of the filter element.

Overrides:
moved in class TCObjectView.TCObjectHandle
Parameters:
g - Graphics that may be used for painting
bounds - current bounds of the cell
Returns:
rectangle that became dirty
See Also:
TCObjectView.TCObjectHandle.handleMove()

movingDone

protected void movingDone(Rectangle bounds)
If handleMove() is true, this is called when the cell movement is done.

Overrides:
movingDone in class TCObjectView.TCObjectHandle
Parameters:
bounds - new bounds of the cell

paint

public void paint(Graphics g)
Paint the handle

Specified by:
paint in interface org.jgraph.graph.CellHandle
Overrides:
paint in class FilterEntryView.FilterEntryHandle
Parameters:
g - Graphics to paint on

getMatchingPort

protected TCPort getMatchingPort(TCObject tco)
Get matching port of the counterpart TCObject when connecting

Overrides:
getMatchingPort in class TCObjectView.TCObjectHandle
Parameters:
tco - TCObject to get matching port for
Returns:
matching port or null

mouseMoved

public void mouseMoved(MouseEvent event)
Invoked when the mouse pointer has been moved on a component (with no buttons down).

Specified by:
mouseMoved in interface org.jgraph.graph.CellHandle
Overrides:
mouseMoved in class FilterEntryView.FilterEntryHandle

mousePressed

public void mousePressed(MouseEvent event)
Process mouse pressed event.

Specified by:
mousePressed in interface org.jgraph.graph.CellHandle
Overrides:
mousePressed in class TCObjectView.TCObjectHandle