uk.ac.starlink.diva
Interface Draw

All Known Implementing Classes:
TestDrawActions

public interface Draw

DrawActions interface for a Diva canvas. Typically this will be part of component that is extending a JCanvas.

Version:
$Id$
Author:
Peter W. Draper
See Also:
JCanvas, DrawActions

Method Summary
 void addMouseListener(MouseListener l)
          Adds the specified mouse listener to receive mouse events from this component.
 void addMouseMotionListener(MouseMotionListener l)
          Adds the specified mouse motion listener to receive mouse motion events from this component.
 Component getComponent()
          Return a reference to the component that implements this interface, usually "this".
 DrawGraphicsPane getGraphicsPane()
          Return the instance of DrawGraphicsPane that is being used by this Canvas (a type of GraphicsPane)
 

Method Detail

getGraphicsPane

DrawGraphicsPane getGraphicsPane()
Return the instance of DrawGraphicsPane that is being used by this Canvas (a type of GraphicsPane)


addMouseListener

void addMouseListener(MouseListener l)
Adds the specified mouse listener to receive mouse events from this component.


addMouseMotionListener

void addMouseMotionListener(MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this component.


getComponent

Component getComponent()
Return a reference to the component that implements this interface, usually "this". Only used for dialog parents, so may be return null.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.