Package mgui.interfaces.tools.shapes
Class ToolCreateEllipse2D
java.lang.Object
mgui.interfaces.tools.graphics.Tool2D
mgui.interfaces.tools.shapes.ToolCreateEllipse2D
- All Implemented Interfaces:
java.lang.Cloneable
,PopupMenuObject
,Tool
,ToolInputListener
,IconObject
public class ToolCreateEllipse2D extends Tool2D
-
Field Summary
Fields Modifier and Type Field Description protected Ellipse2DInt
ellipse
protected java.awt.Point
lastPt
protected org.jogamp.vecmath.Point2f
nextPt
protected java.awt.Point
screenStartPt
protected org.jogamp.vecmath.Point2f
startPt
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 ToolCreateEllipse2D()
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
void
handleToolEvent(ToolInputEvent e)
Handle this tool eventprotected void
setIcon()
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
-
ellipse
-
startPt
protected org.jogamp.vecmath.Point2f startPt -
nextPt
protected org.jogamp.vecmath.Point2f nextPt -
lastPt
protected java.awt.Point lastPt -
screenStartPt
protected java.awt.Point screenStartPt
-
-
Constructor Details
-
ToolCreateEllipse2D
public ToolCreateEllipse2D()
-
-
Method Details
-
handleToolEvent
Description copied from interface:ToolInputListener
Handle this tool event- Specified by:
handleToolEvent
in interfaceToolInputListener
- Specified by:
handleToolEvent
in classTool2D
-
setIcon
protected void setIcon() -
clone
public java.lang.Object clone()
-