All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.gui.beans.AttributeSummarizer
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----javax.swing.JPanel
|
+----weka.gui.beans.DataVisualizer
|
+----weka.gui.beans.AttributeSummarizer
- public class AttributeSummarizer
- extends DataVisualizer
Bean that encapsulates displays bar graph summaries for attributes in
a data set.
- Version:
- $Revision: 1.3 $
- Author:
- Mark Hall
AttributeSummarizer()
- Creates a new
AttributeSummarizer instance.
enumerateRequests()
- Return an enumeration of actions that the user can ask this bean to
perform
getColoringIndex()
- Return the coloring index for the attribute summary plots
getGridWidth()
- Get the width of the grid of plots
getMaxPlots()
- Get the number of plots to display
main(String[])
-
performRequest(String)
- Perform a named user request
setBeanContext(BeanContext)
- Set a bean context for this bean
setColoringIndex(int)
- Set the coloring index for the attribute summary plots
setDesign(boolean)
- Set whether the appearance of this bean should be design or
application
setGridWidth(int)
- Set the width of the grid of plots
setInstances(Instances)
- Set instances for this bean.
setMaxPlots(int)
- Set the maximum number of plots to display
useDefaultVisual()
- Use the default appearance for this bean
AttributeSummarizer
public AttributeSummarizer()
Creates a new AttributeSummarizer instance.
setColoringIndex
public void setColoringIndex(int ci)
Set the coloring index for the attribute summary plots
- Parameters:
ci - an int value
getColoringIndex
public int getColoringIndex()
Return the coloring index for the attribute summary plots
- Returns:
- an
int value
setGridWidth
public void setGridWidth(int gw)
Set the width of the grid of plots
- Parameters:
gw - the width of the grid
getGridWidth
public int getGridWidth()
Get the width of the grid of plots
- Returns:
- the grid width
setMaxPlots
public void setMaxPlots(int mp)
Set the maximum number of plots to display
- Parameters:
mp - the number of plots to display
getMaxPlots
public int getMaxPlots()
Get the number of plots to display
- Returns:
- the number of plots to display
setDesign
public void setDesign(boolean design)
Set whether the appearance of this bean should be design or
application
- Parameters:
design - true if bean should appear in design mode
useDefaultVisual
public void useDefaultVisual()
Use the default appearance for this bean
- Overrides:
- useDefaultVisual in class DataVisualizer
enumerateRequests
public java.util.Enumeration enumerateRequests()
Return an enumeration of actions that the user can ask this bean to
perform
- Returns:
- an
Enumeration value - Overrides:
- enumerateRequests in class DataVisualizer
setBeanContext
public void setBeanContext(java.beans.beancontext.BeanContext bc)
Set a bean context for this bean
- Parameters:
bc - a BeanContext value
- Overrides:
- setBeanContext in class DataVisualizer
setInstances
public void setInstances(Instances inst) throws java.lang.Exception
Set instances for this bean. This method is a convenience method
for clients who use this component programatically
- Parameters:
inst - an Instances value
- Throws:
- java.lang.Exception - if an error occurs
- Overrides:
- setInstances in class DataVisualizer
performRequest
public void performRequest(java.lang.String request)
Perform a named user request
- Parameters:
request - a string containing the name of the request to perform
- Throws:
- java.lang.IllegalArgumentException - if request is not supported
- Overrides:
- performRequest in class DataVisualizer
main
public static void main(java.lang.String args[])
All Packages Class Hierarchy This Package Previous Next Index WEKA's home