|
||||||||||
| 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.visualization.core.PlotPanel
adams.gui.visualization.stats.boxplot.BoxPlotGraph
public class BoxPlotGraph
Class that displays a single box plot graph
| 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 Color |
m_Color
Color to fill the boxes |
protected double[] |
m_Data
array for each value within an attribute |
protected boolean |
m_Fill
Fill each of the boxes with color |
protected double |
m_Lower
lower quartile for attribute |
protected double |
m_Max
maximum value for attribute |
protected double |
m_Median
median for attribute |
protected double |
m_Min
Minimum value for attribute |
protected double |
m_Upper
upper quartile for attribute |
| Fields inherited from class adams.gui.visualization.core.PlotPanel |
|---|
m_AxisBottom, m_AxisLeft, m_AxisRight, m_AxisTop, m_AxisWidth, m_BackgroundColor, m_CornerBottomLeft, m_CornerBottomRight, m_CornerTopLeft, m_CornerTopRight, m_Debug, m_ForegroundColor, m_GridColor, m_PaintListeners, m_PanelContent, m_ToolTipAxes |
| 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 | |
|---|---|
BoxPlotGraph()
Constructor |
|
| Method Summary | |
|---|---|
void |
axisSame(double max,
double min)
Axis are the same for each graph, this sets boundary values |
void |
paint(Graphics g)
repaints the data for the box plot |
void |
paintPlot(Graphics g)
Performs the painting on the graphics area |
void |
pass(Instances i,
Attribute att)
Passes in the data to construct the box plot graph |
void |
setColor(Color val)
Set the color used to fill the plots |
void |
setFill(boolean val)
Set whether the box plots should be filled with color |
| 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 double m_Median
protected double m_Lower
protected double m_Upper
protected double m_Min
protected double m_Max
protected double[] m_Data
protected boolean m_Fill
protected Color m_Color
| Constructor Detail |
|---|
public BoxPlotGraph()
| Method Detail |
|---|
public void pass(Instances i,
Attribute att)
i - Instance dataatt - Attribute being graphed in this box plotpublic void paintPlot(Graphics g)
g - Graphics object for painting on
public void axisSame(double max,
double min)
max - Maximum y valuemin - Minimum y valuepublic void setFill(boolean val)
val - True if boxes filledpublic void setColor(Color val)
val - color of box plotspublic void paint(Graphics g)
paint in class JComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||