|
||||||||||
| 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.stats.boxplot.BoxPlotManager
public class BoxPlotManager
Class that displays box plots for a number of attributes
| 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 JButton |
m_Add
Button to add selected attribute to chosen attributes list |
protected JButton |
m_AddAll
Button to add all attributes to chosen attributes list |
protected DefaultListModel |
m_Attributes
attributes that can be chosen |
protected BaseListWithButtons |
m_AttributesDis
Object that contains a list and a group of buttons for choosing attributes |
protected boolean |
m_AxisSame
whether the axis should have the same scale |
protected JSpinner |
m_AxisWidSpin
spinner to choose the axis width of each box plot |
protected int |
m_AxisWidth
width of the axis of each box plot |
protected JPanel |
m_Centre
Panel for displaying box plots |
protected DefaultListModel |
m_Chosen
attributes that have been chosen |
protected BaseListWithButtons |
m_ChosenDis
Object that contains a list and a group of buttons for removing attributes |
protected Color |
m_Color
Color to fill boxes with |
protected JButton |
m_Colorbutton
Button to choose color of boxes |
protected boolean |
m_Fill
Whether boxes should be filled |
protected JCheckBox |
m_FillCheck
Check box to choose if boxes should b filled |
protected JSpinner |
m_GridSpin
Spinner for choosing the number of box plots to be displayed horizontally |
protected int |
m_Height
Height of graphs drawn |
protected JSpinner |
m_HeightSpin
Spinner to choose the height of each box plot |
protected Instances |
m_Instances
Instances to be graphed |
protected int |
m_NumHorizontal
Number of box plots to display horizontally |
protected ParameterPanel |
m_PanelParams
Object that contains a set of label and component objects, aids displaying |
protected Range |
m_Range
Range of box plots to display initially |
protected JButton |
m_Remove
Button to remove a selected attribute from chosen attributes list |
protected JButton |
m_RemoveAll
Button to remove all attributes from the chosen attributes list |
protected JCheckBox |
m_SameAxis
select whether graphs have the same axis |
protected int |
m_Width
width of graphs drawn |
protected int |
m_WidthLeft
width of left hand panel of the box plot manager |
protected JSpinner |
m_WidthSpin
spinner to choose the width of each box plot |
| 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 | |
|---|---|
BoxPlotManager()
Constructor |
|
| Method Summary | |
|---|---|
protected void |
addAllClicked()
Displays box plots for all attributes |
protected void |
addClicked()
adds attributes to selected attributes list |
protected void |
colorChange()
Color for box plots changes |
protected void |
fillChange(ItemEvent val)
Fill boxes check box is changed |
protected void |
finishInit()
finishes the initialization. |
int |
getAxisWidth()
Get the width of the left axis for each boxplot |
int |
getBoxHeight()
Get the height of each box plot |
int |
getBoxWidth()
Get the width of each box plot drawn |
int |
getNumHorizontal()
Get the number of box plots to display on each row |
Range |
getRange()
Get the range of box plots to be displayed initially |
boolean |
getSameAxis()
get whether the box plots should all use the same axis scale |
protected void |
initGUI()
Initializes the gui |
protected void |
initialize()
|
void |
painted(PaintEvent e)
Controls the painting of the box plots |
protected void |
removeAllClicked()
removes all attributes from the chosen attribute list |
protected void |
removeClicked()
removes attribute from selected list and places in attribute list |
void |
reset()
Called when the fields set from the class that created this boxplotmanager object |
protected void |
sameAxisChange(ItemEvent e)
Sets the axis scale to be the same for each box plot |
void |
setAxisWidth(int val)
Set the width of the left axis for each box plot |
void |
setBoxHeight(int val)
Set the height of each box plot drawn |
void |
setBoxWidth(int val)
Set the width of each box plot |
void |
setColor(Color val)
Set the color to fill the boxes with |
void |
setFill(boolean val)
Set whether the boxes should be filled with color |
void |
setInstances(Instances inst)
sets the instances to be displayed |
void |
setNumHorizontal(int val)
Set the number of box plots to display on each row |
void |
setRange(Range val)
Set the range of box plots to display initially |
void |
setSameAxis(boolean val)
Set whether each box plot should have the same axis scale |
protected void |
spinAxisChange(ChangeEvent e)
Changes the width of the left axis on each box plot |
protected void |
spinHeightChange(ChangeEvent e)
Changes the height of the box plots |
protected void |
spinHorizontalChange(ChangeEvent e)
Change the number of box plots to be displayed in each row |
protected void |
spinWidthChange(ChangeEvent e)
Changes the width of the box plots |
protected void |
update()
Update the display with box plots required |
protected void |
updateButtons()
Updates whether each of the buttons can be pressed depending on the selected list objects |
protected void |
updateGui()
Updates the state of gui components after options have been set |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, 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 DefaultListModel m_Attributes
protected DefaultListModel m_Chosen
protected JPanel m_Centre
protected Instances m_Instances
protected int m_WidthLeft
protected int m_Width
protected int m_Height
protected int m_AxisWidth
protected int m_NumHorizontal
protected boolean m_AxisSame
protected Color m_Color
protected boolean m_Fill
protected JSpinner m_WidthSpin
protected JSpinner m_HeightSpin
protected JSpinner m_AxisWidSpin
protected JCheckBox m_SameAxis
protected Range m_Range
protected JButton m_Add
protected JButton m_AddAll
protected BaseListWithButtons m_AttributesDis
protected BaseListWithButtons m_ChosenDis
protected JButton m_Remove
protected JButton m_RemoveAll
protected ParameterPanel m_PanelParams
protected JSpinner m_GridSpin
protected JCheckBox m_FillCheck
protected JButton m_Colorbutton
| Constructor Detail |
|---|
public BoxPlotManager()
| Method Detail |
|---|
protected void initialize()
initialize in class BasePanelpublic void setInstances(Instances inst)
inst - Instances object for displayingprotected void updateButtons()
protected void initGUI()
initGUI in class BasePanelprotected void finishInit()
finishInit in class BasePanelprotected void fillChange(ItemEvent val)
val - protected void colorChange()
protected void updateGui()
public void reset()
protected void addClicked()
protected void removeClicked()
protected void removeAllClicked()
protected void addAllClicked()
protected void spinWidthChange(ChangeEvent e)
e - The event that occurredprotected void spinHeightChange(ChangeEvent e)
e - The event that occurredprotected void spinAxisChange(ChangeEvent e)
e - The event that occurredprotected void spinHorizontalChange(ChangeEvent e)
e - The event that occuredprotected void sameAxisChange(ItemEvent e)
e - The event that occuredpublic void setBoxWidth(int val)
val - Width in pixelspublic int getBoxWidth()
public void setBoxHeight(int val)
val - Height in pixelspublic int getBoxHeight()
public void setAxisWidth(int val)
val - Width in pixelspublic int getAxisWidth()
public void setNumHorizontal(int val)
val - number on each rowpublic int getNumHorizontal()
public void setSameAxis(boolean val)
val - true if same axispublic boolean getSameAxis()
public void setRange(Range val)
val - Range object containing range of attributespublic Range getRange()
public void setFill(boolean val)
val - True if filledpublic void setColor(Color val)
val - Color to fillprotected void update()
public void painted(PaintEvent e)
painted in interface PaintListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||