org.geotools.gui.widget
Interface Widget

All Known Subinterfaces:
FrameWidget, PanelWidget

public interface Widget

A widget is a component which can be added to a display. Typical widgets include MapPane, Legend, PanButton, etc.

Version:
$Id: Widget.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Cameron Shorter

Method Summary
 void addMouseListener(java.lang.Object l)
          Deprecated. Adds the specified mouse listener to receive mouse events from this component.
 int getWidth()
          Deprecated. Returns the current width of this component.
 void removeMouseListener(java.lang.Object l)
          Deprecated. Removes the specified mouse listener so that it no longer receives mouse events from this component.
 

Method Detail

addMouseListener

public void addMouseListener(java.lang.Object l)
Deprecated. 
Adds the specified mouse listener to receive mouse events from this component. If listener l is null, no exception is thrown and no action is performed.

Parameters:
l - the mouse listener
Since:
JDK1.1
See Also:
MouseEvent, MouseListener, removeMouseListener(java.lang.Object), #getMouseListeners
Task:
REVIST Can classes in the core module depend on awt events?

removeMouseListener

public void removeMouseListener(java.lang.Object l)
Deprecated. 
Removes the specified mouse listener so that it no longer receives mouse events from this component. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If listener l is null, no exception is thrown and no action is performed.

Parameters:
l - the mouse listener
Since:
JDK1.1
See Also:
MouseEvent, MouseListener, addMouseListener(java.lang.Object), #getMouseListeners
Task:
REVIST Can classes in the core module depend on awt events?

getWidth

public int getWidth()
Deprecated. 
Returns the current width of this component.

Returns:
the current width of this component


Copyright © GeoTools. All Rights Reserved.