|
||||||||||
| 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
weka.gui.visualize.InstanceInfoFrame
adams.gui.visualization.weka.AbstractInstanceInfoFrame
public abstract class AbstractInstanceInfoFrame
Ancestor for frames for displaying information on the displayed data, with some more domain-specific functionality.
Methods to implement:getActions() - returns an array of String objects to
display in the combobox that allows the user to choose an action.
(m_ComboBoxActions)getActionMethod(String) - returns the Method object (no
parameters allowed) that is associated with the given action string.
locateMethod(String) can be used to determine the
reflection object.generateNumPointsLabel(int) - generates the text to
display in the label for the number of data points.
(m_LabelNumPoints)
| 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 | |
|---|---|
protected JButton |
m_ButtonDataGo
the button for displaying the instances. |
protected JButton |
m_ButtonTextGo
the button for displaying the instances. |
protected JComboBox |
m_ComboBoxData
the combobox with all the datasets. |
protected JComboBox |
m_ComboBoxDataActions
the combobox with all the actions. |
protected JComboBox |
m_ComboBoxTextActions
the combobox with all the actions. |
protected JComboBox |
m_ComboBoxTextInstances
the combobox with all the instances. |
protected JLabel |
m_LabelTextNumPoints
the number of data points. |
protected BasePanel |
m_PanelComboBoxData
the panel for the combobox listing the datasets. |
protected BasePanel |
m_PanelData
the panel holding the table and buttons for the dataset. |
protected JPanel |
m_PanelDataAction
the panel with buttons etc. |
protected JPanel |
m_PanelTextAction
the panel with buttons etc. |
protected BasePanel |
m_PanelTextAll
the panel for the text tab. |
protected BaseTabbedPane |
m_TabbedPane
the tabbed pane for displaying the data. |
protected SortableAndSearchableTable |
m_TableData
the table with the dataset. |
| Fields inherited from class weka.gui.visualize.InstanceInfoFrame |
|---|
m_Data, m_TextInfo |
| 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 | |
|---|---|
AbstractInstanceInfoFrame()
|
|
| Method Summary | |
|---|---|
protected int |
extractDatabaseID(String idStr)
Extracts the database ID from a string in the comboxbox. |
protected abstract String |
generateNumPointsLabel(int numPoints)
Generates the string for the label displaying the number of points that are currently selected. |
protected abstract Method |
getActionMethod(String action)
Returns the method associated with the specified action. |
protected abstract String[] |
getActions()
Returns the available actions to list. |
protected int[] |
getAllDatabaseIDs(int tabIndex)
Returns all database IDs. |
protected int |
getDatabaseIDColumnIndex()
Returns the index of the column with the database ID. |
protected String |
getDialogTitle()
Returns the title for the dialog. |
protected int |
getSelectedDatabaseID(int tabIndex)
Returns the database ID of the currently selected item. |
protected int[] |
getSelectedDatabaseIDs(int tabIndex)
Returns the database IDs of the currently selected items. |
protected void |
initGUI()
Sets up the GUI components. |
protected Method |
locateMethod(String name)
Locates the method with the specified name (method is expected to take no parameters). |
void |
setInfoData(Vector<weka.core.Instances> data)
Sets the underlying data. |
protected void |
updateDataTable()
Updates the data in the data table. |
| Methods inherited from class weka.gui.visualize.InstanceInfoFrame |
|---|
getInfoData, getInfoText, initFinished, initialize, setInfoText |
| 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 |
|---|
protected BaseTabbedPane m_TabbedPane
protected BasePanel m_PanelTextAll
protected JLabel m_LabelTextNumPoints
protected JComboBox m_ComboBoxTextInstances
protected JComboBox m_ComboBoxTextActions
protected JButton m_ButtonTextGo
protected JPanel m_PanelTextAction
protected SortableAndSearchableTable m_TableData
protected BasePanel m_PanelData
protected JComboBox m_ComboBoxData
protected BasePanel m_PanelComboBoxData
protected JComboBox m_ComboBoxDataActions
protected JButton m_ButtonDataGo
protected JPanel m_PanelDataAction
| Constructor Detail |
|---|
public AbstractInstanceInfoFrame()
| Method Detail |
|---|
protected void initGUI()
initGUI in class weka.gui.visualize.InstanceInfoFrameprotected String getDialogTitle()
protected abstract String generateNumPointsLabel(int numPoints)
numPoints - the number of points currently being displayed
protected abstract String[] getActions()
m_ComboBoxTextActionsprotected abstract Method getActionMethod(String action)
action - the action to retrieve the method for
locateMethod(String)protected Method locateMethod(String name)
name - the name of the method
protected int extractDatabaseID(String idStr)
idStr - the string from the combobox
protected int getDatabaseIDColumnIndex()
protected int getSelectedDatabaseID(int tabIndex)
tabIndex - the currently selected tab
Constants.NO_IDprotected int[] getSelectedDatabaseIDs(int tabIndex)
tabIndex - the currently selected tab
protected int[] getAllDatabaseIDs(int tabIndex)
tabIndex - the currently selected tab
public void setInfoData(Vector<weka.core.Instances> data)
setInfoData in interface weka.gui.visualize.InstanceInfosetInfoData in class weka.gui.visualize.InstanceInfoFramedata - the data of the info textprotected void updateDataTable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||