net.sf.sdedit.ui
Interface PanelPaintDeviceListener

All Known Implementing Classes:
Editor

public interface PanelPaintDeviceListener

This interface can be implemented by classes whose instances are using a PanelPaintDevice and that are interested in the question which drawable component is currently visited by the user's mouse.

Author:
Markus Strauch

Method Summary
 void mouseClickedDrawable(Drawable drawable)
          This method is called when the mouse clicked into the rectangle belonging to some drawable component.
 boolean mouseEnteredDrawable(Drawable drawable)
          This method is called when the mouse entered a rectangle belonging to some drawable component.
 void mouseExitedDrawable(Drawable drawable)
          This method is called when the mouse exited a rectangle belonging to some drawable component.
 

Method Detail

mouseEnteredDrawable

boolean mouseEnteredDrawable(Drawable drawable)
This method is called when the mouse entered a rectangle belonging to some drawable component.

Parameters:
drawable - the drawable component that has been entered by the mouse
Returns:
true if the listener is interested in the drawable component, the PanelPaintDevice will then change the shape of the cursor

mouseExitedDrawable

void mouseExitedDrawable(Drawable drawable)
This method is called when the mouse exited a rectangle belonging to some drawable component.

Parameters:
drawable - the drawable component that has been entered by the mouse

mouseClickedDrawable

void mouseClickedDrawable(Drawable drawable)
This method is called when the mouse clicked into the rectangle belonging to some drawable component.

Parameters:
drawable - the drawable component that has been clicked


Copyright © 2011. All Rights Reserved.