|
||||||||||
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.TableFrame
public class TableFrame
Provides the main window containing the menu, buttons to step through the
iterations, and tables displaying the classifier sets. It also manages the
ChartFrame
s and provides them with the current data.
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 Vector<ChartFrame> |
chartFrames
Contains all opened ChartFrames displaying histograms |
private DataElement |
currentElement
Containing the classifier sets of the current iteration |
private DataMemory |
dataMemory
Contains all classifier sets |
private JButton |
jButtonFirst
Gets the fist DataElement and updates the tables. |
private JButton |
jButtonLast
Gets the last DataElement and updates the tables. |
private JButton |
jButtonNext
Gets the next DataElement and updates the tables. |
private JButton |
jButtonPrevious
Gets the previous DataElement and updates the tables. |
private JCheckBoxMenuItem |
jCheckBoxMenuItemAll
JCheckBoxItem for selecting all table columns. |
private JCheckBoxMenuItem |
jCheckBoxMenuItemNone
JCheckBoxItem for deselecting all table columns. |
private JPanel |
jContentPane
Contains the jPanelControlPane and jTabbedPane . |
private JMenuBar |
jJMenuBar
MenuBar |
private JLabel |
jLabel_input
Label "LCS input" |
private JLabel |
jLabel_iteration
Label "iteration" |
private JMenu |
jMenuFile
File menu |
private JMenuItem |
jMenuItemExit
File menu item "exit" |
private JMenuItem |
jMenuItemOpen
File menu item "open" |
private JMenuItem |
jMenuNewChart
Menu item "New chart" |
private JMenu |
jMenuSelectColumns
Menu item to hide or show columns. |
private JMenu |
jMenuView
View menu |
private JPanel |
jPanelControlpane
Contains the jTextFieldIteration, jButtonNext,
jButtonPrevious, jButtonFirst and jButtonLast . |
private JScrollPane |
jScrollPaneActionSet
Contains a table for the action set. |
private JScrollPane |
jScrollPaneMatchSet
Contains a table for the match set. |
private JScrollPane |
jScrollPanePopulation
Contains the population table. |
private JTabbedPane |
jTabbedPane
Tabs for switching among population, match and action sets. |
private JTable |
jTableActionSet
Contains the match set. |
private JTable |
jTableMatchSet
Contains the match set. |
private JTable |
jTablePopulation
Contains a table for the classifier population. |
private JTextField |
jTextField_input
|
private JTextField |
jTextFieldIteration
Shows the current iteration. |
private File |
logFilePath
Path to the last opened file. |
private JCheckBoxMenuItem[] |
viewItems
Array creating a JCheckBoxItem -object for every column of
the table. |
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 | |
---|---|
TableFrame()
Constructor. |
Method Summary | |
---|---|
(package private) void |
addChartFrame(ChartFrame newChartFrame)
Stores a new ChartFrame into this class' vector of
ChartFrame s. |
private void |
addTableRowSort(JTable table)
Adds RowSorter s to every column of the given table. |
(package private) DataElement |
getCurrentElement()
Returns the current DataElement with the currently shown
data. |
private JButton |
getJButtonFirst()
Initializes the jButtonFirst . |
private JButton |
getJButtonLast()
Initializes the jButtonLast . |
private JButton |
getJButtonNext()
Initializes the jButtonNext . |
private JButton |
getJButtonPrevious()
Initializes the jButtonPrevious . |
private JCheckBoxMenuItem |
getJCheckBoxMenuItemAll()
Initializes the jCheckBoxMenuItemAll . |
private JCheckBoxMenuItem |
getJCheckBoxMenuItemNone()
Initializes the jCheckBoxMenuItemNone . |
private JPanel |
getJContentPane()
Initializes the jContentPane . |
private JMenuBar |
getJJMenuBar()
Initializes the jJMenuBar and adds jMenuFile
and jMenuView . |
private JMenu |
getJMenuFile()
Initializes the jMenuFile and adds
jMenuItemOpen and jMenuItemExit . |
private JMenuItem |
getJMenuItemChart()
Initializes the jMenuNewChart and adds an
actionListener . |
private JMenuItem |
getJMenuItemExit()
Initializes the jMenuItemExit and adds an
actionListener . |
private JMenuItem |
getJMenuItemOpen()
Initializes the jMenuItemOpen and adds an
actionListener . |
private JMenu |
getJMenuTable()
Initializes the jMenuSelectColumns . |
private JMenu |
getJMenuView()
Initializes the jMenuView . |
private JPanel |
getJPanelControlpane()
Initializes the jPanelControlpane and adds
jTextFieldIteration , jButtonPrevious
jButtonNext , jButtonFirst and
jButtonLast . |
private JScrollPane |
getJScrollPaneActionSet()
Initializes the jScrollPaneActionSet . |
private JScrollPane |
getJScrollPaneMatchSet()
Initializes the jScrollPaneMatchSet . |
private JScrollPane |
getJScrollPanePopulation()
Initializes the jScrollPanePopulation . |
private JTabbedPane |
getJTabbedPane()
Initializes the jTabbedPane . |
private JTable |
getJTableActionSet()
Initializes the jTableActionSet . |
private JTable |
getJTableMatchSet()
Initializes the jTableMatchSet . |
private JTable |
getJTablePopulation()
Initializes the jTablePopulation . |
private JTextField |
getJTextField_input()
Initializes jTextField_input . |
private JTextField |
getJTextFieldIteration()
Initializes the jTextFieldIteration and adds an
actionListener to search for a specific iteration. |
private void |
initialize()
Initializes the GUI and all contents. |
private void |
refresh()
Refreshes the tables and all open ChartFrame s. |
private void |
refreshCharts()
Refreshes all open ChartFrame s. |
(package private) void |
removeChartFrame(ChartFrame deleteChartFrame)
Deletes a ChartFrame out of this class' vector of
ChartFrame s. |
private void |
resizeTable(JTable table)
Resizes the column widths of a table to fit the size of the contents and the header. |
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 DataMemory dataMemory
private DataElement currentElement
private Vector<ChartFrame> chartFrames
ChartFrames
displaying histograms
private JPanel jContentPane
jPanelControlPane
and jTabbedPane
.
private JPanel jPanelControlpane
jTextFieldIteration, jButtonNext,
jButtonPrevious, jButtonFirst
and jButtonLast
.
private JTextField jTextFieldIteration
private JButton jButtonNext
DataElement
and updates the tables.
private JButton jButtonPrevious
DataElement
and updates the tables.
private JMenuBar jJMenuBar
private JMenu jMenuFile
private JMenuItem jMenuItemOpen
private JTabbedPane jTabbedPane
private JScrollPane jScrollPanePopulation
private JTable jTablePopulation
private JScrollPane jScrollPaneMatchSet
private JTable jTableMatchSet
private JScrollPane jScrollPaneActionSet
private JTable jTableActionSet
private JButton jButtonFirst
DataElement
and updates the tables.
private JButton jButtonLast
DataElement
and updates the tables.
private JMenuItem jMenuItemExit
private JMenu jMenuView
private JMenu jMenuSelectColumns
private JCheckBoxMenuItem[] viewItems
JCheckBoxItem
-object for every column of
the table. With these checkboxes you can hide or show a specific column.
private JCheckBoxMenuItem jCheckBoxMenuItemAll
JCheckBoxItem
for selecting all table columns.
private JCheckBoxMenuItem jCheckBoxMenuItemNone
JCheckBoxItem
for deselecting all table columns.
private File logFilePath
private JMenuItem jMenuNewChart
private JTextField jTextField_input
private JLabel jLabel_input
private JLabel jLabel_iteration
Constructor Detail |
---|
public TableFrame()
Method Detail |
---|
private JPanel getJPanelControlpane()
jPanelControlpane
and adds
jTextFieldIteration
, jButtonPrevious
jButtonNext
, jButtonFirst
and
jButtonLast
.
jPanelControlpane
private JTextField getJTextFieldIteration()
jTextFieldIteration
and adds an
actionListener
to search for a specific iteration.
jTextFieldIteration
private JButton getJButtonNext()
jButtonNext
. On click the next
DataElement
is loaded.
jButtonNext
private JButton getJButtonPrevious()
jButtonPrevious
. On click the previous
DataElement
is loaded.
jButtonPrevious
private JMenuBar getJJMenuBar()
jJMenuBar
and adds jMenuFile
and jMenuView
.
jJMenuBar
.private JMenu getJMenuFile()
jMenuFile
and adds
jMenuItemOpen
and jMenuItemExit
.
jMenuFile
private JMenuItem getJMenuItemOpen()
jMenuItemOpen
and adds an
actionListener
. On click an OpenFile-dialogue is opened and
the DataMemory
is created.
jMenuItemOpen
private JTabbedPane getJTabbedPane()
jTabbedPane
.
jTabbedPane
private JScrollPane getJScrollPanePopulation()
jScrollPanePopulation
.
jScrollPanePopulation
private JTable getJTablePopulation()
jTablePopulation
.
jTablePopulation
private JScrollPane getJScrollPaneMatchSet()
jScrollPaneMatchSet
.
jScrollPaneMatchSet
private JTable getJTableMatchSet()
jTableMatchSet
.
jTableMatchSet
private JScrollPane getJScrollPaneActionSet()
jScrollPaneActionSet
.
jScrollPaneActionSet
private JTable getJTableActionSet()
jTableActionSet
.
jTableActionSet
private JButton getJButtonFirst()
jButtonFirst
. On click the first
DataElement
is loaded.
jButtonFirst
private JButton getJButtonLast()
jButtonLast
. On click the last
DataElement
is loaded.
jButtonLast
private JMenuItem getJMenuItemExit()
jMenuItemExit
and adds an
actionListener
. On click the program is closed.
jMenuItemExit
private JMenu getJMenuView()
jMenuView
.
jMenuView
private JMenu getJMenuTable()
jMenuSelectColumns
. For each column of the
table a checkbox-item is created.
jMenuSelectColumns
private JCheckBoxMenuItem getJCheckBoxMenuItemAll()
jCheckBoxMenuItemAll
.
jCheckBoxMenuItemAll
private JCheckBoxMenuItem getJCheckBoxMenuItemNone()
jCheckBoxMenuItemNone
.
jCheckBoxMenuItemNone
private JMenuItem getJMenuItemChart()
jMenuNewChart
and adds an
actionListener
. On action a new ChartFrame
is
created.
jMenuNewChart
private void initialize()
private JPanel getJContentPane()
jContentPane
.
jContentPane
private void refresh()
ChartFrame
s. The method
removes columns deselected in the View->Columns-Menu, resizes the column
width and sets RowSorter
s for the tables. If the
currentElement is null
, the controls are disabled and a
notification is shown.
private void refreshCharts()
ChartFrame
s.
private void resizeTable(JTable table)
table
- table used for resizeprivate void addTableRowSort(JTable table)
RowSorter
s to every column of the given table.
table
- table that will equipped with RowSorter
sDataElement getCurrentElement()
DataElement
with the currently shown
data.
DataElement
void addChartFrame(ChartFrame newChartFrame)
ChartFrame
into this class' vector of
ChartFrame
s.
newChartFrame
- a new ChartFrame
void removeChartFrame(ChartFrame deleteChartFrame)
ChartFrame
out of this class' vector of
ChartFrame
s.
deleteChartFrame
- ChartFrame
to deleteprivate JTextField getJTextField_input()
jTextField_input
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |