jadex.swing.util
Interface Zoomable

All Known Implementing Classes:
CloneDisplay, LocusDisplay, TestPanel

public interface Zoomable

An interface all Zoomable display JPanel should be implemented.


Method Summary
 void addMouseListener(java.awt.event.MouseListener l)
          Add a mouseListener.
 void addMouseMotionListener(java.awt.event.MouseMotionListener l)
          Add a mouseMotionLister.
 void doZooming()
          How zooming should be implemented.
 float getVerticalPosition()
          The vertical line position.
 void repaint()
          Repaint to show the zoom rectangels.
 void setCursor(java.awt.Cursor c)
          Change the cursor for displaying zoomability when the mouse is in the rectangle.
 void setZoom(java.awt.geom.Rectangle2D.Float zoom)
          Zoom range should be passed from magnifier to here.
 

Method Detail

doZooming

public void doZooming()
How zooming should be implemented.

setZoom

public void setZoom(java.awt.geom.Rectangle2D.Float zoom)
Zoom range should be passed from magnifier to here. After zooming, zoom should be clear up, i.e., zoom = null

repaint

public void repaint()
Repaint to show the zoom rectangels.

getVerticalPosition

public float getVerticalPosition()
The vertical line position. Only rectangles around this line can be zoomed.

setCursor

public void setCursor(java.awt.Cursor c)
Change the cursor for displaying zoomability when the mouse is in the rectangle.

addMouseListener

public void addMouseListener(java.awt.event.MouseListener l)
Add a mouseListener. This method is used to add a magnifier to the zoomable.

addMouseMotionListener

public void addMouseMotionListener(java.awt.event.MouseMotionListener l)
Add a mouseMotionLister. This method is used to add a magnifier to the zoomable.