Package mgui.interfaces.tools.shapes
Class ToolSelectNodesWithPolygon
java.lang.Object
mgui.interfaces.tools.graphics.Tool3D
mgui.interfaces.tools.shapes.ToolSelectNodesWithPolygon
- All Implemented Interfaces:
java.lang.Cloneable,PopupMenuObject,Tool,ToolInputListener,IconObject
public class ToolSelectNodesWithPolygon extends Tool3D
Tool specifies options with a dialog and then calls an inner class instance of Tool3D
to allow the user to select nodes on the Canvas3D.
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.interfaces.tools.graphics.Tool3D
icon, isImmediate, listeners, name, previous_tool, targetPanel, targetShape, toolPhase -
Constructor Summary
Constructors Constructor Description ToolSelectNodesWithPolygon() -
Method Summary
Modifier and Type Method Description java.lang.Objectclone()voiddeactivate()Should be called once a tool is deactivated; instances of Tool should perform clean-up activities here.protected voiddisplayNode(org.jogamp.vecmath.Point3d point, java.awt.Color c)protected voiddisplaySelectedNodes()voidhandleToolEvent(ToolInputEvent e)Handle this tool eventbooleanisExclusive()Specifies whether this tool requires exclusively; otherwise it will run in parallel with the default tool, if one exists.protected voidrenderPolygon()Methods inherited from class mgui.interfaces.tools.graphics.Tool3D
activate, addListener, fireDeactivated, fireListeners, getName, getObjectIcon, getPopupMenu, getPopupMenu, getPreviousTool, handlePopupEvent, isImmediate, removeListener, setIcon, setTargetPanel, setTargetShape, showPopupMenuMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ToolSelectNodesWithPolygon
public ToolSelectNodesWithPolygon()
-
-
Method Details
-
isExclusive
public boolean isExclusive()Description copied from interface:ToolSpecifies whether this tool requires exclusively; otherwise it will run in parallel with the default tool, if one exists.- Specified by:
isExclusivein interfaceTool- Overrides:
isExclusivein classTool3D- Returns:
-
handleToolEvent
Description copied from interface:ToolInputListenerHandle this tool event- Specified by:
handleToolEventin interfaceToolInputListener- Overrides:
handleToolEventin classTool3D
-
deactivate
public void deactivate()Description copied from interface:ToolShould be called once a tool is deactivated; instances of Tool should perform clean-up activities here.- Specified by:
deactivatein interfaceTool- Overrides:
deactivatein classTool3D
-
clone
public java.lang.Object clone() -
renderPolygon
protected void renderPolygon() -
displayNode
protected void displayNode(org.jogamp.vecmath.Point3d point, java.awt.Color c) -
displaySelectedNodes
protected void displaySelectedNodes()
-