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 InterfaceShapeQuery
current_query
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 ToolQueryShape2D(InterfaceShapeQuery query)
ToolQueryShape2D(InterfaceShapeQuery.QueryMode mode, InterfaceShapeQuery query)
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
InterfaceQuery
getQuery()
void
handleToolEvent(ToolInputEvent e)
Handle this tool eventboolean
isExclusive()
Specifies whether this tool requires exclusively; otherwise it will run in parallel with the default tool, if one exists.void
setMode(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, showPopupMenu
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mgui.resources.icons.IconObject
getObjectIcon
Methods inherited from interface mgui.interfaces.menus.PopupMenuObject
getPopupMenu, getPopupMenu, handlePopupEvent, showPopupMenu
Methods 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:Tool
Specifies whether this tool requires exclusively; otherwise it will run in parallel with the default tool, if one exists.- Specified by:
isExclusive
in interfaceTool
- Overrides:
isExclusive
in classTool2D
- Returns:
-
setMode
-
getQuery
-
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()
-