Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added further methods needed for CDK-JChemPaint
Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information
egonw authored and rajarshi committed Nov 24, 2011
1 parent e316210 commit 804a6f5
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions src/main/org/openscience/cdk/controller/IMouseEventRelay.java
Expand Up @@ -31,21 +31,37 @@
public interface IMouseEventRelay {

/**
* Event to signal that a mouse button has been released.
* Event to signal that the left mouse button has been released.
*
* @param screenCoordX the x part of the screen coordinate where the event happened.
* @param screenCoordY the y part of the screen coordinate where the event happened.
*/
public abstract void mouseClickedUp(int screenCoordX, int screenCoordY);

/**
* Event to signal that a mouse button has been pushed but not released yet.
* Event to signal that the left mouse button has been pushed but not released yet.
*
* @param screenCoordX the x part of the screen coordinate where the event happened.
* @param screenCoordY the y part of the screen coordinate where the event happened.
*/
public abstract void mouseClickedDown(int screenCoordX, int screenCoordY);

/**
* Event to signal that the right mouse button has been pushed but not released yet.
*
* @param screenCoordX the x part of the screen coordinate where the event happened.
* @param screenCoordY the y part of the screen coordinate where the event happened.
*/
public abstract void mouseClickedDownRight(int x, int y);

/**
* Event to signal that the right mouse button has been released.
*
* @param screenCoordX the x part of the screen coordinate where the event happened.
* @param screenCoordY the y part of the screen coordinate where the event happened.
*/
public abstract void mouseClickedUpRight(int x, int y);

/**
* Event to signal that a mouse button has been double clicked.
*
Expand Down Expand Up @@ -87,5 +103,20 @@ public interface IMouseEventRelay {
*/
public abstract void mouseDrag(int screenCoordXFrom, int screenCoordYFrom, int screenCoordXTo, int screenCoordYTo);

/**
* Event to signal that the mouse wheel has been rotated a certain amount forward.
*
* @param rotation an platform-specific amount of rotation of the wheel
* @see #mouseWheelMovedBackward(int)
*/
public abstract void mouseWheelMovedForward(int rotation);

/**
* Event to signal that the mouse wheel has been rotated a certain amount backward.
*
* @param rotation an platform-specific amount of rotation of the wheel
* @see #mouseWheelMovedForward(int)
*/
public abstract void mouseWheelMovedBackward(int rotation);

}

0 comments on commit 804a6f5

Please sign in to comment.