|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.java.dev.joode.graphics2D.tool.AbstractTool
net.java.dev.joode.graphics2D.tool.MouseZoomScroll
public class MouseZoomScroll
allows a 2D view to be interacted with using an intuative cartesian interface left click and holding moves the view around, right click dragging zooms in and out
| Field Summary |
|---|
| Fields inherited from class net.java.dev.joode.graphics2D.tool.AbstractTool |
|---|
tools |
| Constructor Summary | |
|---|---|
MouseZoomScroll()
|
|
| Method Summary | |
|---|---|
void |
activate()
Tells the tool that it has been activated (i.e. |
void |
deactivate()
Tells the tool that it has been deactivate (i.e. |
double |
getZoomSpeed()
|
boolean |
isIsotropicZoom()
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
setIsotropicZoom(boolean isotropicZoom)
flag so keep the zoom factor the same in both dimensions |
void |
setZoomSpeed(double zoomSpeed)
fspeed fo the zooming, the nearer to 1 the slower the speed |
void |
update()
updates the views view |
| Methods inherited from class net.java.dev.joode.graphics2D.tool.AbstractTool |
|---|
getIcon, getLabel, install, mouseClicked, mouseEntered, mouseExited, mouseMoved, notifyQuickStep, notifyStep |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MouseZoomScroll()
| Method Detail |
|---|
public boolean isIsotropicZoom()
public void setIsotropicZoom(boolean isotropicZoom)
public double getZoomSpeed()
public void setZoomSpeed(double zoomSpeed)
public void update()
update in interface ViewToolupdate in class AbstractToolpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class AbstractToolpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class AbstractToolpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class AbstractToolpublic void activate()
ViewTool
activate in interface ViewToolactivate in class AbstractToolpublic void deactivate()
ViewTool
deactivate in interface ViewTooldeactivate in class AbstractTool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||