|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
de.dfg.oc.logfileanalyzer.gui.ChartFrame
public class ChartFrame
Provides a frame containing a histogram chart.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
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 | |
---|---|
private DataElement |
currentElement
The current DataElement displayed in the
TableFrame . |
private JComboBox |
jComboBoxHistogramSelector
Selects the histogram displayed in this ChartFrame . |
private JComboBox |
jComboBoxTableSelector
Selects the classifier set displayed in this ChartFrame . |
private JPanel |
jPanelComboBoxes
Contains ComboBox es to select the classifier set and the
histogram displayed in this ChartFrame . |
private JPanel |
jPanelContentpane
Contains all panels of this ChartFrame . |
private JPanel |
jPanelHistogram
Contains the histogram. |
private JPanel |
jPanelInfoAndHistogram
Contains the jPanelInformation and the
jPanelHistogram . |
private JPanel |
jPanelInformation
Contains the iteration and the number of classifiers displayed in this ChartFrame . |
private JPanel |
jPanelLimits
Contains panels that define lower and upper limits for values displayed in this ChartFrame . |
private JPanel |
jPanelLowerLimit
Contains a TextField to define a lower limit for values
displayed in this ChartFrame . |
private JPanel |
jPanelUpperLimit
Contains a TextField to define an upper limit for values
displayed in this ChartFrame . |
private JTextArea |
jTextAreaClassifiers
Contains the number of classifiers displayed in this ChartFrame . |
private JTextArea |
jTextAreaIteration
Contains the iteration displayed in this ChartFrame . |
private JTextArea |
jTextAreaLowerLimit
Provides a description for the corresponding jTextFieldUpperLimit . |
private JTextArea |
jTextAreaUpperLimit
Provides a description for the corresponding jTextFieldLowerLimit . |
private JTextField |
jTextFieldLowerLimit
Defines a lower limit for values displayed in this ChartFrame . |
private JTextField |
jTextFieldUpperLimit
Defines an upper limit for values displayed in this ChartFrame . |
private TableFrame |
myTableFrame
TableFrame that created this ChartFrame |
private String[] |
tableSelection
Names of the classifier sets displayed in the jComboBoxTableSelector . |
Fields inherited from class javax.swing.JFrame |
---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ChartFrame(TableFrame _myTableFrame)
Creates a new ChartFrame that displays histograms. |
Method Summary | |
---|---|
private JComboBox |
getJComboBoxHistogramSelector()
Initializes the jComboBoxHistogramSelector that selects
the histogram displayed in this ChartFrame . |
private JComboBox |
getJComboBoxTableSelector()
Initializes the jComboBoxTableSelector that selects the
table displayed in this ChartFrame . |
private JPanel |
getJPanelComboBoxes()
Initializes the jPanelComboBoxes . |
private JPanel |
getJPanelContentpane()
Initializes the jPanelContentpane that contains all panels
used in this ChartFrame . |
private JPanel |
getJPanelHistogram()
Initializes the jPanelHistogram that contains the
histogram. |
private JPanel |
getJPanelInfoAndHistogram()
Initializes the jPanelInfoAndHistogram that contains the
jPanelInformation and the jPanelHistogram . |
private JPanel |
getJPanelInformation()
Initializes the jPanelInformation . |
private JPanel |
getJPanelLimits()
Initializes the jPanelLimits . |
private JPanel |
getJPanelLowerLimit()
Initializes the jPanelLowerLimit . |
private JPanel |
getJPanelUpperLimit()
Initializes the jPanelUpperLimit . |
private JTextArea |
getJTextAreaClassifiers()
Initializes the jTextAreaClassifiers that contains the
number of classifiers displayed in this ChartFrame . |
private JTextArea |
getJTextAreaLowerLimit()
Initializes the jTextAreaLowerLimit that provides a
description for the corresponding jTextFieldLowerLimit . |
private JTextArea |
getJTextAreaUpperLimit()
Initializes the jTextAreaUpperLimit that provides a
description for the corresponding jTextFieldUpperLimit . |
private JTextField |
getJTextFieldLowerLimit()
Initializes the jTextFieldLowerLimit that defines a lower
limit for values displayed in this ChartFrame . |
private JTextField |
getJTextFieldUpperLimit()
Initializes the jTextFieldUpperLimit that defines an upper
limit for values displayed in this ChartFrame . |
TableFrame |
getMyTableFrame()
Returns the TableFrame that opened this
ChartFrame . |
private void |
initialize()
Initializes a new ChartFrame . |
(package private) void |
loadNewDataSet()
Updates this ChartFrame with the current
DataElement of the TableFrame . |
(package private) void |
loadNewDataSet(DataElement _newDataSet)
Updates this ChartFrame with the data set given as
parameter. |
private String |
replaceCommas(String _str)
Replaces all commas ( ',' ) in the given
String by points ('.' |
private void |
setNewChartPanel(JPanel _newPanel)
Replaces the jPanelHistogram with the panel given as
parameter. |
private void |
updateChart()
Updates this ChartFrame after changes. |
Methods inherited from class java.awt.Frame |
---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
private TableFrame myTableFrame
TableFrame
that created this ChartFrame
private DataElement currentElement
DataElement
displayed in the
TableFrame
.
private JPanel jPanelContentpane
ChartFrame
.
private JPanel jPanelComboBoxes
ComboBox
es to select the classifier set and the
histogram displayed in this ChartFrame
.
private JPanel jPanelInfoAndHistogram
jPanelInformation
and the
jPanelHistogram
.
private JComboBox jComboBoxTableSelector
ChartFrame
.
private JComboBox jComboBoxHistogramSelector
ChartFrame
.
private String[] tableSelection
jComboBoxTableSelector
.
private JPanel jPanelHistogram
private JPanel jPanelInformation
ChartFrame
.
private JTextArea jTextAreaIteration
ChartFrame
.
private JTextArea jTextAreaClassifiers
ChartFrame
.
private JPanel jPanelLimits
ChartFrame
.
private JPanel jPanelUpperLimit
TextField
to define an upper limit for values
displayed in this ChartFrame
.
private JPanel jPanelLowerLimit
TextField
to define a lower limit for values
displayed in this ChartFrame
.
private JTextArea jTextAreaUpperLimit
jTextFieldLowerLimit
.
private JTextArea jTextAreaLowerLimit
jTextFieldUpperLimit
.
private JTextField jTextFieldLowerLimit
ChartFrame
.
private JTextField jTextFieldUpperLimit
ChartFrame
.
Constructor Detail |
---|
ChartFrame(TableFrame _myTableFrame)
ChartFrame
that displays histograms. A
ChartFrame
is opened by the TableFrame
-class
when "View-> New chart" is selected in the menu.
_myTableFrame
- TableFrame
that opened this
ChartFrame
Method Detail |
---|
private void initialize()
ChartFrame
.
private JPanel getJPanelContentpane()
jPanelContentpane
that contains all panels
used in this ChartFrame
.
jPanelContentpane
void loadNewDataSet()
ChartFrame
with the current
DataElement
of the TableFrame
.
void loadNewDataSet(DataElement _newDataSet)
ChartFrame
with the data set given as
parameter.
_newDataSet
- the new data set that will be displayedprivate void updateChart()
ChartFrame
after changes.
public TableFrame getMyTableFrame()
TableFrame
that opened this
ChartFrame
.
TableFrame
that opened this
ChartFrame
private JPanel getJPanelComboBoxes()
jPanelComboBoxes
. The panel contains
ComboBoxes to select the classifier set and the histogram displayed in
this ChartFrame
.
jPanelComboBoxes
private JPanel getJPanelInfoAndHistogram()
jPanelInfoAndHistogram
that contains the
jPanelInformation
and the jPanelHistogram
.
jPanelInfoAndHistogram
private JComboBox getJComboBoxTableSelector()
jComboBoxTableSelector
that selects the
table displayed in this ChartFrame
.
jComboBoxTableSelector
private JComboBox getJComboBoxHistogramSelector()
jComboBoxHistogramSelector
that selects
the histogram displayed in this ChartFrame
.
jComboBoxHistogramSelector
private JPanel getJPanelHistogram()
jPanelHistogram
that contains the
histogram.
jPanelChart
private void setNewChartPanel(JPanel _newPanel)
jPanelHistogram
with the panel given as
parameter.
_newPanel
- the new panel that will replace the current
jPanelHistogram
private JPanel getJPanelInformation()
jPanelInformation
. The panel contains the
iteration and the number of classifiers displayed in this
ChartFrame
.
jPanelInformation
private JTextArea getJTextAreaClassifiers()
jTextAreaClassifiers
that contains the
number of classifiers displayed in this ChartFrame
.
jTextAreaClassifiers
private JPanel getJPanelLimits()
jPanelLimits
. The panel contains
subpanels that contain TextField
s to define lower and
upper limits for values displayed in this ChartFrame
.
jPanelLimits
private JPanel getJPanelUpperLimit()
jPanelUpperLimit
. The panel contains a
TextField
to define an upper limit for values displayed in
this ChartFrame
.
jPanelUpperLimit
private JPanel getJPanelLowerLimit()
jPanelLowerLimit
. The panel contains a
TextField
to define a lower limit for values displayed in
this ChartFrame
.
jPanelLowerLimit
private JTextArea getJTextAreaUpperLimit()
jTextAreaUpperLimit
that provides a
description for the corresponding jTextFieldUpperLimit
.
jTextAreaUpperLimit
private JTextArea getJTextAreaLowerLimit()
jTextAreaLowerLimit
that provides a
description for the corresponding jTextFieldLowerLimit
.
jTextAreaLowerLimit
private JTextField getJTextFieldLowerLimit()
jTextFieldLowerLimit
that defines a lower
limit for values displayed in this ChartFrame
.
jTextFieldLowerLimit
private JTextField getJTextFieldUpperLimit()
jTextFieldUpperLimit
that defines an upper
limit for values displayed in this ChartFrame
.
jTextFieldUpperLimit
private String replaceCommas(String _str)
','
) in the given
String
by points ('.'
). Furthermore, only
the rightmost point is kept.
_str
- a String
for processing
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |