Package mgui.interfaces.tools.shapes
Class ToolQueryShape2D
java.lang.Object
mgui.interfaces.tools.graphics.Tool2D
mgui.interfaces.tools.shapes.ToolQueryShape2D
- All Implemented Interfaces:
java.lang.Cloneable,PopupMenuObject,QueryTool,Tool,ToolInputListener,IconObject
public class ToolQueryShape2D extends Tool2D implements QueryTool
Tool allowing point-and-click vertex-wise querying of 2D objects, for a InterfaceGraphic3D window.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description protected InterfaceShapeQuerycurrent_queryFields inherited from class mgui.interfaces.tools.graphics.Tool2D
icon, is_active, isImmediate, last_tool, listeners, name, targetPanel, targetShape, toolPhase -
Constructor Summary
Constructors Constructor Description ToolQueryShape2D(InterfaceShapeQuery query)ToolQueryShape2D(InterfaceShapeQuery.QueryMode mode, InterfaceShapeQuery query) -
Method Summary
Modifier and Type Method Description java.lang.Objectclone()InterfaceQuerygetQuery()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.voidsetMode(InterfaceShapeQuery.QueryMode mode)Methods inherited from class mgui.interfaces.tools.graphics.Tool2D
activate, addListener, deactivate, fireListeners, 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, waitMethods inherited from interface mgui.resources.icons.IconObject
getObjectIconMethods inherited from interface mgui.interfaces.menus.PopupMenuObject
getPopupMenu, getPopupMenu, handlePopupEvent, showPopupMenuMethods inherited from interface mgui.interfaces.tools.Tool
activate, addListener, deactivate, getName, getPreviousTool, isImmediate, removeListener, setTargetPanel
-
Field Details
-
current_query
-
-
Constructor Details
-
ToolQueryShape2D
-
ToolQueryShape2D
-
-
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 classTool2D- Returns:
-
setMode
-
getQuery
-
handleToolEvent
Description copied from interface:ToolInputListenerHandle this tool event- Specified by:
handleToolEventin interfaceToolInputListener- Specified by:
handleToolEventin classTool2D
-
clone
public java.lang.Object clone()
-