public class DataInstance extends DenseInstance implements TechnicalInformationHandler
DataPoints
if the ActionListener
is added,
i.e., to the ColorBar
.DataPoint
,
DataInstances
,
ColorBar
,
Serialized FormModifier and Type | Field and Description |
---|---|
DataPoint |
input
Graphical object to represent this instance
|
DataPoint |
joint
Graphical object to represent this instance
|
String |
label
A string that resumes the classifier and dataset of the instance
|
DataPoint |
output
Graphical object to represent this instance
|
s_numericAfterDecimalPoint
Constructor and Description |
---|
DataInstance(Instances dataset,
double weight,
double[] attValues)
Constructor that initializes instance variable with given values for the given dataset.
|
DataInstance(Instances dataset,
Instance instance)
Constructor that initializes instance variable with given values.
|
Modifier and Type | Method and Description |
---|---|
Object |
copy()
Produces a shallow copy of this instance.
|
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed
information about the technical background of this class, e.g., paper
reference or book this class is based on.
|
ActionListener |
setColorChangeListener(ColorBar colorBar)
Sets an
ActionListener to sync the foreground color of the points of this instance
in a graph with the given ColorBar . |
void |
setPopupMenus(EntropyTrianglePanel etPanel)
Sets the right-click menu behavior for the points of this instance.
|
void |
setToolTips()
Sets and updates the tooltip windows of the
DataPoints of this object. |
getRevision, index, main, mergeInstance, numAttributes, numValues, replaceMissingValues, setValue, setValueSparse, toDoubleArray, toStringNoWeight, toStringNoWeight, value
attribute, attributeSparse, classAttribute, classIndex, classIsMissing, classValue, dataset, deleteAttributeAt, enumerateAttributes, equalHeaders, equalHeadersMsg, hasMissingValue, insertAttributeAt, isMissing, isMissing, isMissingSparse, numClasses, relationalValue, relationalValue, setClassMissing, setClassValue, setClassValue, setDataset, setMissing, setMissing, setValue, setValue, setValue, setWeight, stringValue, stringValue, toString, toString, toString, toString, toString, toStringMaxDecimalDigits, value, valueSparse, weight
public String label
public DataPoint joint
public DataPoint input
public DataPoint output
public DataInstance(Instances dataset, double weight, double[] attValues)
dataset
- the Instances dataset that this instance belongweight
- the weight of this instance in the datasetattValues
- an array with the attributes values of this instance in double formatpublic void setToolTips()
DataPoints
of this object.
This method should be called when any of the information showed in the tooltip may have changed.public ActionListener setColorChangeListener(ColorBar colorBar)
ActionListener
to sync the foreground color of the points of this instance
in a graph with the given ColorBar
.colorBar
- the object from where to get the new colorsColorBar
to
change the color of the DataPoints
of this DataInstance.ColorBar
public void setPopupMenus(EntropyTrianglePanel etPanel)
etPanel
- the panel where the points of this instance is being drawnpublic Object copy()
copy
in interface Copyable
copy
in class DenseInstance
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler