cz.cmc.tcgui
Class FilterElementView.FilterElementHandle

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

public class FilterElementView.FilterElementHandle
extends FilterEntryView.FilterEntryHandle

Title: class FilterElementHandle

Description: Handle for filter elements.

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
FilterElementView.FilterElementHandle(org.jgraph.graph.GraphContext ctx)
          Constructs new FilterElementHandle
 
Method Summary
protected  TCPort getMatchingPort(TCObject tco)
          Get matching port of the counterpart TCObject when connecting
 boolean isInFilterMatchHandle(Point p)
           
 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

FilterElementView.FilterElementHandle

public FilterElementView.FilterElementHandle(org.jgraph.graph.GraphContext ctx)
Constructs new FilterElementHandle

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

isInFilterMatchHandle

public boolean isInFilterMatchHandle(Point p)

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