|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JScrollPane
weka.gui.visualize.AttributePanel
public class AttributePanel
This panel displays one dimensional views of the attributes in a dataset. Colouring is done on the basis of a column in the dataset or an auxiliary array (useful for colouring cluster predictions).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
AttributePanel()
|
|
AttributePanel(Color background)
This constructs an attributePanel. |
|
| Method Summary | |
|---|---|
void |
addAttributePanelListener(AttributePanelListener a)
Add a listener to the list of things listening to this panel |
static void |
main(String[] args)
Main method for testing this class. |
void |
setCindex(int c)
Set the index of the attribute by which to colour the data. |
void |
setCindex(int c,
double h,
double l)
Set the index of the attribute by which to colour the data. |
void |
setColours(FastVector cols)
Sets a list of colours to use for colouring data points |
void |
setInstances(Instances ins)
This sets the instances to be drawn into the attribute panel |
void |
setX(int x)
shows which bar is the current x attribute. |
void |
setY(int y)
shows which bar is the current y attribute. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributePanel()
public AttributePanel(Color background)
| Method Detail |
|---|
public void addAttributePanelListener(AttributePanelListener a)
a - the listener to notify when attribute bars are clicked on
public void setCindex(int c,
double h,
double l)
c - the index of the attribute to colour onh - maximum value of this attributel - minimum value of this attributepublic void setCindex(int c)
c - the index of the attribute to colour onpublic void setColours(FastVector cols)
cols - a list of java.awt.Color
public void setInstances(Instances ins)
throws Exception
ins - The instances.
Exceptionpublic void setX(int x)
x - The attributes index.public void setY(int y)
y - The attributes index.public static void main(String[] args)
args - first argument should be an arff file. Second argument
can be an optional class col
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||