public class SetInstancesPanel extends JPanel
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected JButton |
m_CloseBut
Click to close the dialog
|
protected JPanel |
m_CloseButPanel
the panel the Close-Button is located in
|
protected ConverterFileChooser |
m_FileChooser
The file chooser for selecting arff files
|
protected Instances |
m_Instances
The current set of instances loaded
|
protected Thread |
m_IOThread
The thread we do loading in
|
protected String |
m_LastURL
Stores the last URL that instances were loaded from
|
protected Loader |
m_Loader
The current loader used to obtain the current instances
|
protected JButton |
m_OpenFileBut
Click to open instances from a file
|
protected JButton |
m_OpenURLBut
Click to open instances from a URL
|
protected JFrame |
m_ParentFrame
the parent frame.
|
protected boolean |
m_readIncrementally |
protected InstancesSummaryPanel |
m_Summary
The instance summary component
|
protected PropertyChangeSupport |
m_Support
Manages sending notifications to people when we change the set of
working instances.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
SetInstancesPanel()
Create the panel.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener who will be notified of value changes.
|
void |
closeFrame()
closes the frame, i.e., the visibility is set to false
|
Instances |
getInstances()
Gets the set of instances currently held by the panel
|
Loader |
getLoader()
Gets the currently used Loader
|
JFrame |
getParentFrame()
Returns the current frame the panel knows of, that it resides in.
|
boolean |
getReadIncrementally()
Gets whether instances are to be read incrementally or not
|
InstancesSummaryPanel |
getSummary()
Gets the instances summary panel associated with
this panel
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener.
|
void |
setInstances(Instances i)
Updates the set of instances that is currently held by the panel
|
protected void |
setInstancesFromFile(File f)
Loads results from a set of instances contained in the supplied
file.
|
void |
setInstancesFromFileQ()
Queries the user for a file to load instances from, then loads the
instances in a background process.
|
protected void |
setInstancesFromURL(URL u)
Loads instances from a URL.
|
void |
setInstancesFromURLQ()
Queries the user for a URL to load instances from, then loads the
instances in a background process.
|
void |
setParentFrame(JFrame parent)
Sets the frame, this panel resides in.
|
void |
setReadIncrementally(boolean incremental)
Sets whether or not instances should be read incrementally
by the Loader.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected JButton m_OpenFileBut
protected JButton m_OpenURLBut
protected JButton m_CloseBut
protected InstancesSummaryPanel m_Summary
protected ConverterFileChooser m_FileChooser
protected String m_LastURL
protected Thread m_IOThread
protected PropertyChangeSupport m_Support
protected Instances m_Instances
protected Loader m_Loader
protected JFrame m_ParentFrame
protected JPanel m_CloseButPanel
protected boolean m_readIncrementally
public void setParentFrame(JFrame parent)
parent
- the parent framepublic JFrame getParentFrame()
public void closeFrame()
public void setInstancesFromFileQ()
public void setInstancesFromURLQ()
protected void setInstancesFromFile(File f)
f
- a value of type 'File'protected void setInstancesFromURL(URL u)
u
- the URL to load from.public void setInstances(Instances i)
i
- a value of type 'Instances'public Instances getInstances()
public Loader getLoader()
public InstancesSummaryPanel getSummary()
public void setReadIncrementally(boolean incremental)
incremental
- true if instances are to be read incrementallypublic boolean getReadIncrementally()
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in class Container
l
- a value of type 'PropertyChangeListener'public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in class Component
l
- a value of type 'PropertyChangeListener'Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.