Class MetricPaneController
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.app.AbstractController
-
- net.sourceforge.pmd.util.fxdesigner.MetricPaneController
-
- All Implemented Interfaces:
javafx.fxml.Initializable
,ApplicationComponent
,NodeSelectionSource
,SettingsOwner
public class MetricPaneController extends AbstractController implements NodeSelectionSource
Controller of the node info panel (left).- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sourceforge.pmd.util.fxdesigner.app.NodeSelectionSource
NodeSelectionSource.NodeSelectionEvent
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.util.fxdesigner.app.NodeSelectionSource
CARET_POSITION, SELECTION_RECOVERY
-
-
Constructor Summary
Constructors Constructor Description MetricPaneController(DesignerRoot designerRoot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
beforeParentInit()
Executed before the parent's initialization.java.lang.String
getDebugName()
A debug name for this component, used in developer mode to e.g.org.reactfx.value.Val<java.lang.Integer>
numAvailableMetrics()
void
setFocusNode(net.sourceforge.pmd.lang.ast.Node node, DataHolder options)
Displays info about a node.-
Methods inherited from class net.sourceforge.pmd.util.fxdesigner.app.AbstractController
afterChildrenInit, afterParentInit, getChildren, getChildrenSettingsNodes, getDesignerRoot, initialize, shutdown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.util.fxdesigner.app.ApplicationComponent
getDesignerRoot, getGlobalLanguageVersion, getLogCategory, getLogger, getMainStage, getService, isDeveloperMode, logInternalDebugInfo, logInternalDebugInfo, logInternalException, logUserException, raiseParsableSourceFlag, raiseParsableXPathFlag
-
Methods inherited from interface net.sourceforge.pmd.util.fxdesigner.app.NodeSelectionSource
initNodeSelectionHandling
-
-
-
-
Constructor Detail
-
MetricPaneController
public MetricPaneController(DesignerRoot designerRoot)
-
-
Method Detail
-
beforeParentInit
protected void beforeParentInit()
Description copied from class:AbstractController
Executed before the parent's initialization. Always executed once at the start of the initialization of this controller.- Overrides:
beforeParentInit
in classAbstractController
-
setFocusNode
public void setFocusNode(net.sourceforge.pmd.lang.ast.Node node, DataHolder options)
Displays info about a node. If null, the panels are reset.- Specified by:
setFocusNode
in interfaceNodeSelectionSource
- Parameters:
node
- Node to inspectoptions
-
-
numAvailableMetrics
public org.reactfx.value.Val<java.lang.Integer> numAvailableMetrics()
-
getDebugName
public java.lang.String getDebugName()
Description copied from interface:ApplicationComponent
A debug name for this component, used in developer mode to e.g. trace events handling paths.- Specified by:
getDebugName
in interfaceApplicationComponent
-
-