public class SelectData
extends javax.swing.JPanel
implements javax.swing.Scrollable
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
SelectData()
Builder
|
SelectData(Experiments frame)
Builder
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all the data estructures of this object, and allocates new
memory for them
|
protected void |
computeDatasetsLabelWidth(java.util.Vector dataset)
We try to compute the JLabels width in pixels, from the length of
the label text in characters...
|
void |
crisp_actionPerformed(java.awt.event.ActionEvent e)
Crisp button
|
void |
crisp_lqd_actionPerformed(java.awt.event.ActionEvent e)
Crisp to LQD button
|
protected void |
deleteFromXML(int index)
Delete a data set from the XML file
|
void |
deselectAll()
UnSelect all
|
java.awt.Dimension |
getPreferredScrollableViewportSize()
scroll control
|
int |
getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction) |
boolean |
getScrollableTracksViewportHeight() |
boolean |
getScrollableTracksViewportWidth() |
int |
getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction) |
void |
hideImportButton()
Hide import button
|
void |
importar_actionPerformed(java.awt.event.ActionEvent e)
Import user data sets button control
|
void |
insert(DatasetXML ds,
java.lang.String path)
Insert a new External Object Description (of a data set) in the list
|
void |
insertC_LQD(DatasetXML ds,
java.lang.String path)
Insert a new External Object Description (of a data set) in the list
|
void |
insertC(DatasetXML ds,
java.lang.String path)
Insert a new External Object Description (of a data set) in the list
|
void |
insertLQD_C(DatasetXML ds,
java.lang.String path)
Insert a new External Object Description (of a data set) in the list
|
void |
invertSelection_actionPerformed(java.awt.event.ActionEvent e)
Invert button
|
void |
invertSelectionC_actionPerformed(java.awt.event.ActionEvent e)
Invert button
|
void |
invertSelectionC_LQD_actionPerformed(java.awt.event.ActionEvent e)
Invert button
|
void |
invertSelectionLQD_C_actionPerformed(java.awt.event.ActionEvent e)
Invert button
|
void |
invertSelectionUser_actionPerformed(java.awt.event.ActionEvent e)
Invert button
|
boolean |
isAnySelected()
Test if any of the data sets in the list are selected by their
correspondent check button
|
boolean |
isAnySelectedC_LQD()
Test if any of the data sets in the list are selected by their
correspondent check button
|
boolean |
isAnySelectedC()
Test if any of the data sets in the list are selected by their
correspondent check button
|
boolean |
isAnySelectedLQD_C()
Test if any of the data sets in the list are selected by their
correspondent check button
|
void |
lqd_crisp_actionPerformed(java.awt.event.ActionEvent e)
LQD to Crisp button
|
int |
reload_crisp_lqd(javax.swing.JPanel contain)
Reload the data set list, given the experiment type
|
int |
reload_crisp()
Reload the data set list
|
int |
reload_lqd_crisp(javax.swing.JPanel contain)
Reload the data set list, given the experiment type
|
void |
reload(int type)
Reload the data set list, given the experiment type
|
void |
reloadPreviousActiveDataSets()
Once the Buttons has been loaded again, we must set their state
as it was previously set by the user <- we take the state saved from saveSelected()
|
void |
remove_actionPerformed(java.awt.event.ActionEvent e)
Rmove button
|
void |
removeAllData()
Removes all the data sets from the list
|
void |
saveSelected()
Method for saving the selected data sets so we can restore them later
|
void |
selectAll_actionPerformed(java.awt.event.ActionEvent e)
Select all button
|
void |
selectAllC_actionPerformed(java.awt.event.ActionEvent e)
Select all button
|
void |
selectAllC_LQD_actionPerformed(java.awt.event.ActionEvent e)
Select all button
|
void |
selectAllLQD_C_actionPerformed(java.awt.event.ActionEvent e)
Select all button
|
void |
selectAllUser_actionPerformed(java.awt.event.ActionEvent e)
Select all button
|
void |
setMaxUnitIncrement(int pixels) |
void |
sortDatasetC_LQD()
This function sorts the inserted data set lists,
so they will appear sorted in the GUI
|
void |
sortDatasetC()
This function sorts the inserted data set lists,
so they will appear sorted in the GUI
|
void |
sortDatasetLQD_C()
This function sorts the inserted data set lists,
so they will appear sorted in the GUI
|
void |
sortDatasets()
This function sorts the inserted data set lists,
so they will appear sorted in the GUI
|
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, 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, 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
public SelectData()
public SelectData(Experiments frame)
frame
- Parent framepublic void insert(DatasetXML ds, java.lang.String path)
ds
- the new data setspath
- the path to the data set(s) file(s)public void insertC_LQD(DatasetXML ds, java.lang.String path)
ds
- the new data setspath
- the path to the data set(s) file(s)public void insertLQD_C(DatasetXML ds, java.lang.String path)
ds
- the new data setspath
- the path to the data set(s) file(s)public void insertC(DatasetXML ds, java.lang.String path)
ds
- the new data setspath
- the path to the data set(s) file(s)public void saveSelected()
public void removeAllData()
public boolean isAnySelected()
public boolean isAnySelectedLQD_C()
public boolean isAnySelectedC_LQD()
public boolean isAnySelectedC()
public void clear()
public void reload(int type)
type
- The current experiment type, which determines the data sets to be loadedpublic void reloadPreviousActiveDataSets()
public java.awt.Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize
in interface javax.swing.Scrollable
public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement
in interface javax.swing.Scrollable
public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
getScrollableBlockIncrement
in interface javax.swing.Scrollable
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface javax.swing.Scrollable
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface javax.swing.Scrollable
public void setMaxUnitIncrement(int pixels)
public void importar_actionPerformed(java.awt.event.ActionEvent e)
e
- The action event related to this codepublic int reload_crisp_lqd(javax.swing.JPanel contain)
contain
- Panel of the containerpublic int reload_crisp()
public int reload_lqd_crisp(javax.swing.JPanel contain)
contain
- The current experiment type, which determines the data sets to be loadedpublic void crisp_lqd_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void crisp_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void lqd_crisp_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void remove_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void selectAll_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void selectAllC_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void selectAllC_LQD_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void selectAllLQD_C_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void invertSelection_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void invertSelectionC_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void invertSelectionC_LQD_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void invertSelectionLQD_C_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void selectAllUser_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventpublic void deselectAll()
public void invertSelectionUser_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventprotected void deleteFromXML(int index)
index
- the index of the data set to be deletedpublic void sortDatasets()
public void sortDatasetC_LQD()
public void sortDatasetLQD_C()
public void sortDatasetC()
protected void computeDatasetsLabelWidth(java.util.Vector dataset)
public void hideImportButton()