Package mgui.interfaces.tools.graphics
Class ToolDZoom2D
java.lang.Object
mgui.interfaces.tools.graphics.Tool2D
mgui.interfaces.tools.graphics.ToolDZoom2D
- All Implemented Interfaces:
java.lang.Cloneable
,PopupMenuObject
,Tool
,ToolInputListener
,IconObject
public class ToolDZoom2D extends Tool2D
-
Field Summary
Fields Modifier and Type Field Description double
zoomRate
Fields inherited from class mgui.interfaces.tools.graphics.Tool2D
icon, is_active, isImmediate, last_tool, listeners, name, targetPanel, targetShape, toolPhase
-
Constructor Summary
Constructors Constructor Description ToolDZoom2D()
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
void
handleToolEvent(ToolInputEvent e)
Handle this tool eventprotected void
setIcon()
void
setZoomRate(double newRate)
Methods inherited from class mgui.interfaces.tools.graphics.Tool2D
activate, addListener, deactivate, fireListeners, fireListeners, getName, getObjectIcon, getPopupMenu, getPopupMenu, getPreviousTool, handlePopupEvent, isExclusive, isImmediate, removeListener, setTargetPanel, setTargetShape, showPopupMenu
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
zoomRate
public double zoomRate
-
-
Constructor Details
-
ToolDZoom2D
public ToolDZoom2D()
-
-
Method Details
-
setIcon
protected void setIcon() -
setZoomRate
public void setZoomRate(double newRate) -
handleToolEvent
Description copied from interface:ToolInputListener
Handle this tool event- Specified by:
handleToolEvent
in interfaceToolInputListener
- Specified by:
handleToolEvent
in classTool2D
-
clone
public java.lang.Object clone()
-