|
||||||||||
| 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.JPanel
adams.gui.core.BasePanel
adams.gui.visualization.core.PaintablePanel
adams.gui.visualization.stats.histogram.Histogram
public class Histogram
Class that displays a histogram displaying the data provided.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Double[] |
m_Array
double array to plot. |
protected double |
m_BinWidth
the bin width. |
protected String |
m_DataName
the name to use for the x-axis. |
protected HistogramOptions |
m_HistOptions
Options for the histogram |
protected int |
m_Index
Position of the residuals attribute within the instances |
protected Instances |
m_Instances
Instances to be plotted |
protected String |
m_Name
the name of the x-axis. |
protected HistogramPanel |
m_Plot
Panel for displaying the histogram |
protected double[][] |
m_Plotdata
the data to plot. |
protected HistogramPaintlet |
m_Val
Paintlet for plotting the data |
| Fields inherited from class adams.gui.visualization.core.PaintablePanel |
|---|
m_Paintlets |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
|---|---|
Histogram()
|
|
| Method Summary | |
|---|---|
protected boolean |
canPaint(Graphics g)
Returns true if the paintlets can be executed. |
Double[] |
getArray()
Returns the current array. |
double |
getBinWidth()
Returns the bin width. |
String |
getDataName()
Returns the name for the x-axis. |
int |
getIndex()
Returns the currently set index. |
Instances |
getInstances()
Returns the instanecs for the histogram. |
HistogramOptions |
getOptions()
Returns the option for this histogram. |
PlotPanel |
getPlot()
Returns the plot panel of the panel, null if no panel present. |
double[][] |
getPlotdata()
Returns the plot data. |
protected void |
initGUI()
For initializing the GUI. |
protected void |
initialize()
Initializes the members. |
void |
prepareUpdate()
Prepares the update, i.e., calculations etc. |
void |
setArray(Double[] value)
Sets the array for this histogram. |
void |
setDataName(String value)
Sets the name for the x-axis. |
void |
setIndex(int val)
Set the index of residuals attribute within the instances |
void |
setInstances(Instances inst)
Set the instances for the histogram |
void |
setOptions(HistogramOptions val)
Set the options for this histogram |
| Methods inherited from class adams.gui.visualization.core.PaintablePanel |
|---|
addPaintlet, paint, painted, paintlets, performUpdate, postUpdate, removePaintlet, update |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, finishInit, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, main, setParentTitle, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Instances m_Instances
protected Double[] m_Array
protected HistogramPanel m_Plot
protected HistogramPaintlet m_Val
protected HistogramOptions m_HistOptions
protected int m_Index
protected String m_DataName
protected double[][] m_Plotdata
protected double m_BinWidth
protected String m_Name
| Constructor Detail |
|---|
public Histogram()
| Method Detail |
|---|
protected void initialize()
initialize in class PaintablePanelprotected void initGUI()
initGUI in class BasePanelpublic void setOptions(HistogramOptions val)
val - Histogramoptions object containing all the optionspublic HistogramOptions getOptions()
public void setInstances(Instances inst)
inst - Instances for the histogram plotpublic Instances getInstances()
public void setArray(Double[] value)
value - the arraypublic Double[] getArray()
public void setDataName(String value)
value - the namepublic String getDataName()
public PlotPanel getPlot()
getPlot in class PaintablePanelpublic void prepareUpdate()
prepareUpdate in class PaintablePanelprotected boolean canPaint(Graphics g)
canPaint in class PaintablePanelg - the graphics context
public void setIndex(int val)
val - Position of residuals attributepublic int getIndex()
public double[][] getPlotdata()
public double getBinWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||