cz.cmc.tcgui
Class TCMarqueeHandler

java.lang.Object
  extended byorg.jgraph.graph.BasicMarqueeHandler
      extended bycz.cmc.tcgui.TCMarqueeHandler

public class TCMarqueeHandler
extends org.jgraph.graph.BasicMarqueeHandler

Title: Class TCMarqueeHandler

Description: Marquee handler for TC editing

Copyright: Copyright (c) 2003

Company: CMC Computers


Field Summary
protected  Point current
          Holds the Start and the Current Point
protected  org.jgraph.graph.PortView firstPort
          Holds the First and the Current Port
protected  boolean popupCellPressed
          Whether the popup button is pressed over a cell
protected  org.jgraph.graph.PortView port
          Holds the First and the Current Port
protected  Point start
          Holds the Start and the Current Point
 
Fields inherited from class org.jgraph.graph.BasicMarqueeHandler
currentPoint, marqueeBounds, previousCursor, startPoint
 
Method Summary
 boolean isAddToSelectionEvent(MouseEvent e)
           
 boolean isForceMarqueeEvent(MouseEvent e)
          Overriden to Gain Control (for PopupMenu and ConnectMode)
protected  boolean isPopupTrigger(MouseEvent e)
           
 boolean isToggleSelectionEvent(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 
Methods inherited from class org.jgraph.graph.BasicMarqueeHandler
getCurrentPoint, getMarqueeBounds, getPreviousCursor, getStartPoint, mouseMoved, overlay, paint, setCurrentPoint, setMarqueeBounds, setPreviousCursor, setStartPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

protected Point start
Holds the Start and the Current Point


current

protected Point current
Holds the Start and the Current Point


port

protected org.jgraph.graph.PortView port
Holds the First and the Current Port


firstPort

protected org.jgraph.graph.PortView firstPort
Holds the First and the Current Port


popupCellPressed

protected boolean popupCellPressed
Whether the popup button is pressed over a cell

Method Detail

isPopupTrigger

protected boolean isPopupTrigger(MouseEvent e)
Parameters:
e - MouseEvent to decide whether it creates and popup event
Returns:
whether the event is an popup event

isToggleSelectionEvent

public boolean isToggleSelectionEvent(MouseEvent e)
Parameters:
e - MouseEvent to make decision for
Returns:
whether cell selection is being toggleed

isAddToSelectionEvent

public boolean isAddToSelectionEvent(MouseEvent e)
Parameters:
e - MouseEvent to make decision for
Returns:
whether cell selection is being added to

isForceMarqueeEvent

public boolean isForceMarqueeEvent(MouseEvent e)
Overriden to Gain Control (for PopupMenu and ConnectMode)


mousePressed

public void mousePressed(MouseEvent e)

mouseReleased

public void mouseReleased(MouseEvent e)

mouseDragged

public void mouseDragged(MouseEvent e)