|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AssociatedPane
To enable mouse actions in an ImPane to affect another pane that implements this interface. For example, mouse hovering over an image causes indicators to move over a separate histogram image.
| Method Summary | |
|---|---|
void |
dragAction(int x,
int y,
int[] colour)
Called when mouse is dragged. |
int |
getNBands()
Return the number of channels in the image displayed in the associated pane. |
int |
getNBits()
Return the number of bits per channel in the image displayed in the associated pane. |
void |
moveAction(int x,
int y,
int[] colour)
Called when mouse is moved. |
void |
pressAction(int x,
int y,
int[] colour)
Called when mouse is pressed. |
void |
releaseAction(int x,
int y,
int[] colour)
Called when mouse is released. |
| Method Detail |
|---|
void dragAction(int x,
int y,
int[] colour)
x - The x coordinate of the mouse in the original pane.y - The y coordinate of the mouse in the original pane.colour - The channel values to be sent to the associated pane.
void moveAction(int x,
int y,
int[] colour)
x - The x coordinate of the mouse in the original pane.y - The y coordinate of the mouse in the original pane.colour - The channel values to be sent to the associated pane.
void pressAction(int x,
int y,
int[] colour)
x - The x coordinate of the mouse in the original pane.y - The y coordinate of the mouse in the original pane.colour - The channel values to be sent to the associated pane.
void releaseAction(int x,
int y,
int[] colour)
x - The x coordinate of the mouse in the original pane.y - The y coordinate of the mouse in the original pane.colour - The channel values to be sent to the associated pane.int getNBands()
int getNBits()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||