public class StepTreeLeafDetails
extends java.lang.Object
implements java.io.Serializable
StepTree - e.g. tool tip
text, wrapped algorithm name (in the case of a WekaAlgorithmWrapper.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_leafLabel
the label (usually derived from the qualified name or wrapped algorithm)
for the leaf
|
protected javax.swing.Icon |
m_scaledIcon
icon to display at the leaf (scaled appropriately)
|
protected boolean |
m_showTipText
If a tool tip text is set, whether to show it or not
|
protected java.lang.Class |
m_stepClazz
Class of the step stored at this leaf
|
protected java.lang.String |
m_toolTipText
tool tip text to display
|
protected java.lang.String |
m_wrappedWekaAlgoName
The name of the algorithm wrapped by a WekaAlgorithmWrapper step
|
| Constructor and Description |
|---|
StepTreeLeafDetails(java.lang.Object step)
Constructor
|
StepTreeLeafDetails(java.lang.Object step,
boolean showTipText)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.Icon |
getIcon()
Gets the icon for this bean
|
java.lang.String |
getToolTipText()
Get the tool tip for this leaf
|
StepVisual |
instantiateStep()
Instantiate the step at this leaf and return it wrapped in a StepVisual
|
boolean |
isWrappedAlgorithm()
Returns true if this leaf represents a wrapped Weka algorithm (i.e. filter,
classifier, clusterer etc.).
|
void |
setShowTipTexts(boolean show)
Set whether to show tip text or not
|
java.lang.String |
toString()
Returns the leaf label
|
protected java.lang.Class m_stepClazz
protected java.lang.String m_wrappedWekaAlgoName
protected java.lang.String m_leafLabel
protected transient javax.swing.Icon m_scaledIcon
protected java.lang.String m_toolTipText
protected boolean m_showTipText
public StepTreeLeafDetails(java.lang.Object step)
step - the step to wrap in this StepTreeLeafDetails instancepublic StepTreeLeafDetails(java.lang.Object step,
boolean showTipText)
step - the step to wrap in this StepTreeLeafDetails instanceshowTipText - true if the tool tip text should be shown for this
instancepublic void setShowTipTexts(boolean show)
show - true to show tip textpublic java.lang.String getToolTipText()
public java.lang.String toString()
toString in class java.lang.Objectprotected javax.swing.Icon getIcon()
public boolean isWrappedAlgorithm()
public StepVisual instantiateStep() throws java.lang.Exception
java.lang.Exception - if a problem occurs