cz.cmc.tcgui
Class ClassfulQDiscView.ClassfulQDiscHandle

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

public class ClassfulQDiscView.ClassfulQDiscHandle
extends QDiscView.QDiscHandle

Title: Class ClassfulQDiscHandle

Description: Handle for ClassfulQDiscs.

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
ClassfulQDiscView.ClassfulQDiscHandle(org.jgraph.graph.GraphContext ctx)
          Constructs new ClassfulQDiscHandle
 
Method Summary
protected  TCPort getMatchingPort(TCObject tco)
          Get matching port of the counterpart TCObject when connecting
 boolean isInSubclassOutputHandle(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.QDiscView.QDiscHandle
isInQDiscInputHandle
 
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

ClassfulQDiscView.ClassfulQDiscHandle

public ClassfulQDiscView.ClassfulQDiscHandle(org.jgraph.graph.GraphContext ctx)
Constructs new ClassfulQDiscHandle

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 QDiscView.QDiscHandle
Parameters:
g - Graphics to paint on

isInSubclassOutputHandle

public boolean isInSubclassOutputHandle(Point p)

getMatchingPort

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

Overrides:
getMatchingPort in class QDiscView.QDiscHandle
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 QDiscView.QDiscHandle

mousePressed

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

Specified by:
mousePressed in interface org.jgraph.graph.CellHandle
Overrides:
mousePressed in class QDiscView.QDiscHandle