2
* @(#)CellHandle.java 1.0 03-JUL-04
4
* Copyright (c) 2001-2004 Gaudenz Alder
7
package org.jgraph.graph;
9
import java.awt.Graphics;
10
import java.awt.event.MouseEvent;
13
* Defines the requirements for objects that may be used as handles.
14
* Handles are used to interactively manipulate a cell's appearance.
17
* @author Gaudenz Alder
20
public interface CellHandle {
23
* Paint the handle on the given graphics object once.
25
* @param g the graphics object to paint the handle on
27
void paint(Graphics g);
30
* Paint the handle on the given graphics object during mouse
33
* @param g the graphics object to paint the handle on
35
void overlay(Graphics g);
38
* Messaged when the mouse is moved.
40
* @param event the mouse event to be processed
42
void mouseMoved(MouseEvent event);
45
* Messaged when a mouse button is pressed.
47
* @param event the mouse event to be processed
49
void mousePressed(MouseEvent event);
52
* Messaged when the user drags the selection.
53
* The Controller is responsible to determine whether the mouse is
54
* inside the parent graph or not.
56
* @param event the drag event to be processed
58
void mouseDragged(MouseEvent event);
61
* Messaged when the drag operation has
62
* terminated with a drop.
64
* @param event the drop event to be processed
66
void mouseReleased(MouseEvent event);
b'\\ No newline at end of file'