org.jgraph.graph.CellHandle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ingeniasjgraphmod Show documentation
Show all versions of ingeniasjgraphmod Show documentation
A modified version of some JGraph files
The newest version!
/*
* @(#)CellHandle.java 1.0 03-JUL-04
*
* Copyright (c) 2001-2004 Gaudenz Alder
*
*/
package org.jgraph.graph;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
/**
* Defines the requirements for objects that may be used as handles.
* Handles are used to interactively manipulate a cell's appearance.
*
* @version 1.0 1/1/02
* @author Gaudenz Alder
*/
public interface CellHandle {
/**
* Paint the handle on the given graphics object once.
*
* @param g the graphics object to paint the handle on
*/
void paint(Graphics g);
/**
* Paint the handle on the given graphics object during mouse
* operations.
*
* @param g the graphics object to paint the handle on
*/
void overlay(Graphics g);
/**
* Messaged when the mouse is moved.
*
* @param event the mouse event to be processed
*/
void mouseMoved(MouseEvent event);
/**
* Messaged when a mouse button is pressed.
*
* @param event the mouse event to be processed
*/
void mousePressed(MouseEvent event);
/**
* Messaged when the user drags the selection.
* The Controller is responsible to determine whether the mouse is
* inside the parent graph or not.
*
* @param event the drag event to be processed
*/
void mouseDragged(MouseEvent event);
/**
* Messaged when the drag operation has
* terminated with a drop.
*
* @param event the drop event to be processed
*/
void mouseReleased(MouseEvent event);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy