类 AttributePanel

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants

public class AttributePanel extends JScrollPane
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).
版本:
$Revision: 7059 $
作者:
Malcolm Ware (mfw4@cs.waikato.ac.nz), Mark Hall (mhall@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • AttributePanel

      public AttributePanel()
    • AttributePanel

      public AttributePanel(Color background)
      This constructs an attributePanel.
  • 方法详细资料

    • addAttributePanelListener

      public void addAttributePanelListener(AttributePanelListener a)
      Add a listener to the list of things listening to this panel
      参数:
      a - the listener to notify when attribute bars are clicked on
    • setCindex

      public void setCindex(int c, double h, double l)
      Set the index of the attribute by which to colour the data. Updates the number of entries in the colour list if there are more values for this new attribute than previous ones.
      参数:
      c - the index of the attribute to colour on
      h - maximum value of this attribute
      l - minimum value of this attribute
    • setCindex

      public void setCindex(int c)
      Set the index of the attribute by which to colour the data. Updates the number of entries in the colour list if there are more values for this new attribute than previous ones.
      参数:
      c - the index of the attribute to colour on
    • setColours

      public void setColours(FastVector cols)
      Sets a list of colours to use for colouring data points
      参数:
      cols - a list of java.awt.Color
    • setInstances

      public void setInstances(Instances ins) throws Exception
      This sets the instances to be drawn into the attribute panel
      参数:
      ins - The instances.
      抛出:
      Exception
    • setX

      public void setX(int x)
      shows which bar is the current x attribute.
      参数:
      x - The attributes index.
    • setY

      public void setY(int y)
      shows which bar is the current y attribute.
      参数:
      y - The attributes index.
    • main

      public static void main(String[] args)
      Main method for testing this class.
      参数:
      args - first argument should be an arff file. Second argument can be an optional class col