|
||||||||||
| 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.scatterplot.AbstractScatterPlot
adams.gui.visualization.stats.scatterplot.ScatterPlot
public class ScatterPlot
create a paintable panel displaying a scatter plot panel as well as combo boxes for choosing attributes.
| Nested Class Summary | |
|---|---|
protected class |
ScatterPlot.AttXListener
Listener for when the x attribute JComboBox selection changes |
protected class |
ScatterPlot.AttYListener
Listener for when the y attribute JComboBox selection changes |
| 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 JComboBox |
m_AttX
For choosing attribute to display on y axis |
protected JComboBox |
m_AttY
For choosing attribute to display on x axis |
protected DefaultComboBoxModel |
m_ComboBoxX
Model for the comboBox choosing the x attribute to display |
protected DefaultComboBoxModel |
m_ComboBoxY
Model for the comboBox choosing the y attribute to display |
protected AbstractScatterPlotPaintlet |
m_Def
default paintlet for GOEpanel |
protected AbstractScatterPlotOverlay[] |
m_Default
default object for the GAE |
protected GenericArrayEditorPanel |
m_PanelOverlay
for displaying a genericarrayEditor for choosing overlays |
protected GenericObjectEditorPanel |
m_PanelPaintlet
for displaying a genericobjecteditor for choosing paintlet |
protected Index |
m_XInd
Index object given as an option to choose x object |
protected BaseRegExp |
m_XIndexReg
Regular expression given as an option to choose x attribute |
protected Index |
m_YInd
Index given as an option to choose y attribute |
protected BaseRegExp |
m_YIndexReg
regular expression given as an option to choose y attribute |
| Fields inherited from class adams.gui.visualization.stats.scatterplot.AbstractScatterPlot |
|---|
m_Array, m_Instances, m_Plot, m_Val, m_XIndex, m_YIndex |
| 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 | |
|---|---|
ScatterPlot()
|
|
| Method Summary | |
|---|---|
void |
change()
called when a field has changed, updates all paintlets etc |
AbstractScatterPlotOverlay[] |
getOverlays()
Get the overlays array containing overlays to apply |
AbstractScatterPlotPaintlet |
getPaintlet()
Get the paintlet used initially to plot the data |
PlotPanel |
getPlot()
|
Index |
getX_Ind()
Get the index object for choosing the attribute to display |
BaseRegExp |
getX_IndexReg()
Gets the regular expression used when determining the x attribute |
Index |
getY_Ind()
Get the index object for choosing the y attribute |
BaseRegExp |
getY_IndexReg()
Gets the regular expression used when determining the y attribute |
protected void |
initGUI()
|
protected void |
initialize()
|
void |
prepareUpdate()
Updates the overlays, calculates each |
void |
reset()
Called by the class that creates this scatterplot called after fields have been set |
void |
setOverlays(AbstractScatterPlotOverlay[] val)
Set the overlays array containing overlays to apply |
void |
setPaintlet(AbstractScatterPlotPaintlet val)
Set the paintlet to use initially to plot the data |
void |
setX_Ind(Index val)
Set the x attribute index |
void |
setX_IndexReg(BaseRegExp val)
Set the regular expression to use when determining the x attribute |
void |
setY_Ind(Index val)
Set the index for the y attribute |
void |
setY_IndexReg(BaseRegExp val)
Set the regular expression to use when determining the y attribute |
| Methods inherited from class adams.gui.visualization.stats.scatterplot.AbstractScatterPlot |
|---|
canPaint, getInstances, getX_Index, getY_Index, removeOverlays, setInstances, setX, setY |
| 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 BaseRegExp m_XIndexReg
protected Index m_XInd
protected BaseRegExp m_YIndexReg
protected Index m_YInd
protected JComboBox m_AttY
protected JComboBox m_AttX
protected DefaultComboBoxModel m_ComboBoxX
protected DefaultComboBoxModel m_ComboBoxY
protected GenericArrayEditorPanel m_PanelOverlay
protected GenericObjectEditorPanel m_PanelPaintlet
protected AbstractScatterPlotOverlay[] m_Default
protected AbstractScatterPlotPaintlet m_Def
| Constructor Detail |
|---|
public ScatterPlot()
| Method Detail |
|---|
protected void initialize()
initialize in class PaintablePanelpublic PlotPanel getPlot()
getPlot in class AbstractScatterPlotpublic void reset()
protected void initGUI()
initGUI in class BasePanelpublic Index getX_Ind()
public void setX_Ind(Index val)
val - chosen indexpublic Index getY_Ind()
public void setY_Ind(Index val)
val - chosen y indexpublic void setX_IndexReg(BaseRegExp val)
val - regular expression for choosing x attributepublic BaseRegExp getX_IndexReg()
public void setY_IndexReg(BaseRegExp val)
val - regular expression for choosing y attributepublic BaseRegExp getY_IndexReg()
public void setOverlays(AbstractScatterPlotOverlay[] val)
val - Array containing overlays to apply to the scatter plotpublic AbstractScatterPlotOverlay[] getOverlays()
val - Array containing overlays to apply to the scatter plotpublic AbstractScatterPlotPaintlet getPaintlet()
public void setPaintlet(AbstractScatterPlotPaintlet val)
setPaintlet in class AbstractScatterPlotval - Initial paintlet to usepublic void change()
public void prepareUpdate()
prepareUpdate in class PaintablePanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||