weka.gui.knowledgeflow
Class StepTreeLeafDetails
- java.lang.Object
-
- weka.gui.knowledgeflow.StepTreeLeafDetails
-
- All Implemented Interfaces:
- java.io.Serializable
public class StepTreeLeafDetails extends java.lang.Object implements java.io.SerializableMaintains information about a step in theStepTree- e.g. tool tip text, wrapped algorithm name (in the case of aWekaAlgorithmWrapper.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description StepTreeLeafDetails(java.lang.Object step)ConstructorStepTreeLeafDetails(java.lang.Object step, boolean showTipText)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetToolTipText()Get the tool tip for this leafStepVisualinstantiateStep()Instantiate the step at this leaf and return it wrapped in a StepVisualbooleanisWrappedAlgorithm()Returns true if this leaf represents a wrapped Weka algorithm (i.e.voidsetShowTipTexts(boolean show)Set whether to show tip text or notjava.lang.StringtoString()Returns the leaf label
-
-
-
Constructor Detail
-
StepTreeLeafDetails
public StepTreeLeafDetails(java.lang.Object step)
Constructor- Parameters:
step- the step to wrap in thisStepTreeLeafDetailsinstance
-
StepTreeLeafDetails
public StepTreeLeafDetails(java.lang.Object step, boolean showTipText)Constructor- Parameters:
step- the step to wrap in thisStepTreeLeafDetailsinstanceshowTipText- true if the tool tip text should be shown for this instance
-
-
Method Detail
-
setShowTipTexts
public void setShowTipTexts(boolean show)
Set whether to show tip text or not- Parameters:
show- true to show tip text
-
getToolTipText
public java.lang.String getToolTipText()
Get the tool tip for this leaf- Returns:
- the tool tip
-
toString
public java.lang.String toString()
Returns the leaf label- Overrides:
toStringin classjava.lang.Object- Returns:
- the leaf label
-
isWrappedAlgorithm
public boolean isWrappedAlgorithm()
Returns true if this leaf represents a wrapped Weka algorithm (i.e. filter, classifier, clusterer etc.).- Returns:
- true if this leaf represents a wrapped algorithm
-
instantiateStep
public StepVisual instantiateStep() throws java.lang.Exception
Instantiate the step at this leaf and return it wrapped in a StepVisual- Returns:
- a StepVisual instance wrapping a copy of the step at this leaf
- Throws:
java.lang.Exception- if a problem occurs
-
-
DataMelt 3.0 © DataMelt by jWork.ORG