Package dk.gtz.graphedit.tool
Class LintInspectorTool
java.lang.Object
dk.gtz.graphedit.tool.AbstractBaseTool
dk.gtz.graphedit.tool.LintInspectorTool
- All Implemented Interfaces:
ITool
Tool to inspect lints of vertices.
When selected, simply hover over a vertex, and all the lints that are affecting
that vertex will be displayed in a context menu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.NodeGet the graphical representation for the tool selection button.Get a multiline string that describe the tool and how to use itGet a multiline tooltip string that briefly describes this toolvoidEvent handler for the case where an edge has been interacted with with the mousevoidEvent handler for the case where a vertex has been interacted with with the mouseMethods inherited from class dk.gtz.graphedit.tool.AbstractBaseTool
onKeyEvent, onViewportMouseEvent
-
Constructor Details
-
LintInspectorTool
public LintInspectorTool()Constructs a new lint inspector tool instance.
-
-
Method Details
-
getTooltip
Description copied from interface:IToolGet a multiline tooltip string that briefly describes this tool- Specified by:
getTooltipin interfaceITool- Overrides:
getTooltipin classAbstractBaseTool- Returns:
- a (possibly) multiline string
-
getGraphic
public javafx.scene.Node getGraphic()Description copied from interface:IToolGet the graphical representation for the tool selection button. Typically just aFontIcon, but can be anything- Returns:
- a javafx node that will be displayed inside the tool selector button
-
getHelpDescription
Description copied from interface:IToolGet a multiline string that describe the tool and how to use it- Returns:
- a (possibly) multiline string
-
onVertexMouseEvent
Description copied from interface:IToolEvent handler for the case where a vertex has been interacted with with the mouse- Specified by:
onVertexMouseEventin interfaceITool- Overrides:
onVertexMouseEventin classAbstractBaseTool- Parameters:
e- The event that happened
-
onEdgeMouseEvent
Description copied from interface:IToolEvent handler for the case where an edge has been interacted with with the mouse- Specified by:
onEdgeMouseEventin interfaceITool- Overrides:
onEdgeMouseEventin classAbstractBaseTool- Parameters:
e- The event that happened
-