Package mgui.interfaces.tools.shapes
Class ToolCreateImage2D
java.lang.Object
mgui.interfaces.tools.graphics.Tool2D
mgui.interfaces.tools.shapes.ToolCreateImage2D
- All Implemented Interfaces:
java.lang.Cloneable
,PopupMenuObject
,Tool
,ToolInputListener
,IconObject
public class ToolCreateImage2D extends Tool2D
Tool allows user to select a file or url pointing to an image, and specify
rectangular bounds for that image in model space.
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
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 ToolCreateImage2D()
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
void
handleToolEvent(ToolInputEvent e)
Handle this tool eventMethods inherited from class mgui.interfaces.tools.graphics.Tool2D
activate, addListener, deactivate, fireListeners, fireListeners, getName, getObjectIcon, getPopupMenu, getPopupMenu, getPreviousTool, handlePopupEvent, isExclusive, isImmediate, removeListener, setIcon, setTargetPanel, setTargetShape, showPopupMenu
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
startPt
public java.awt.Point startPt -
lastPt
public java.awt.Point lastPt
-
-
Constructor Details
-
ToolCreateImage2D
public ToolCreateImage2D()
-
-
Method Details
-
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()
-