Class MatrixPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MatrixPanel extends JPanel
This panel displays a plot matrix of the user selected attributes of a given data set. The datapoints are coloured using a discrete colouring set if the user has selected a nominal attribute for colouring. If the user has selected a numeric attribute then the datapoints are coloured using a colour spectrum ranging from blue to red (low values to high). Datapoints missing a class value are displayed in black.
Version:
$Revision: 15301 $
Author:
Ashraf M. Kibriya (amk14@cs.waikato.ac.nz)
See Also:
  • Constructor Details

    • MatrixPanel

      public MatrixPanel()
      Constructor
  • Method Details

    • initInternalFields

      public void initInternalFields()
      Initializes internal data fields, i.e. data values, type, missing and color cache arrays
    • setupAttribLists

      public void setupAttribLists()
      Sets up the UI's attributes lists
    • setPercent

      public void setPercent()
      Calculates the percentage to resample
    • setInstances

      public void setInstances(Instances newInst)
      This method changes the Instances object of this class to a new one. It also does all the necessary initializations for displaying the panel. This must be called before trying to display the panel.
      Parameters:
      newInst - The new set of Instances
    • main

      public static void main(String[] args)
      Main method for testing this class
    • setPointSize

      public void setPointSize(int pointSize)
      Set the point size for the plots
      Parameters:
      pointSize - the point size to use
    • setPlotSize

      public void setPlotSize(int plotSize)
      Set the plot size
      Parameters:
      plotSize - the plot size to use
    • setPlotBackgroundColour

      public void setPlotBackgroundColour(Color c)
      Set the background colour for the cells in the matrix
      Parameters:
      c - the background colour
    • applySettings

      public void applySettings(Settings settings, String ownerID)
      Parameters:
      settings -
      ownerID -
    • updatePanel

      public void updatePanel()
      Update the display. Typically called after changing plot size, point size etc.