cz.cmc.tcgui
Class QDiscView.QDiscHandle

java.lang.Object
  extended bycz.cmc.tcgui.TCObjectView.TCObjectHandle
      extended bycz.cmc.tcgui.QDiscView.QDiscHandle
All Implemented Interfaces:
org.jgraph.graph.CellHandle
Direct Known Subclasses:
ClassfulQDiscView.ClassfulQDiscHandle
Enclosing class:
QDiscView

public class QDiscView.QDiscHandle
extends TCObjectView.TCObjectHandle

Title: class QDiscHandle

Description: Basic handle for QDiscs.

Copyright: Copyright (c) 2003

Company: CMC Computers


Field Summary
 
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
QDiscView.QDiscHandle(org.jgraph.graph.GraphContext ctx)
          Constructs new QDiscHandle
 
Method Summary
protected  TCPort getMatchingPort(TCObject tco)
          Get matching port of the counterpart TCObject when connecting
 boolean isInQDiscInputHandle(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.
 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, moved, movingDone, overlay, resized, resizingDone, startConnecting, updateConnect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QDiscView.QDiscHandle

public QDiscView.QDiscHandle(org.jgraph.graph.GraphContext ctx)
Constructs new QDiscHandle

Parameters:
ctx - GraphContext to construct handle for
Method Detail

paint

public void paint(Graphics g)
Paint the handle

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

isInQDiscInputHandle

public boolean isInQDiscInputHandle(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 TCObjectView.TCObjectHandle

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