at.tuwien.ifs.somtoolbox.apps.viewer.controls
Class ShiftsControlPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel
                      extended by at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl
                          extended by at.tuwien.ifs.somtoolbox.apps.viewer.controls.ShiftsControlPanel
All Implemented Interfaces:
ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class ShiftsControlPanel
extends AbstractViewerControl
implements ActionListener, ItemListener

Version:
$Id: ShiftsControlPanel.java 3873 2010-10-28 09:29:58Z frank $
Author:
Doris Baum
See Also:
Serialized Form

Nested Class Summary
private  class ShiftsControlPanel.outlierAbsoluteChangeListener
           
private  class ShiftsControlPanel.outlierPercentChangeListener
           
private  class ShiftsControlPanel.stableAbsoluteChangeListener
           
private  class ShiftsControlPanel.stablePercentChangeListener
           
 
Nested classes/interfaces inherited from class at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel
TitledCollapsiblePanel.Orientation
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
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
(package private) static String absoluteToolTip
           
private  JCheckBox adjacentCB
           
private  GridBagConstraints bag
           
private  JCheckBox clusterCB
           
private  JLabel clusterLabel
           
private  JSpinner clusterSpinner
           
private  JRadioButton countAbsoluteRB
           
private  JLabel countLabel
           
private  JRadioButton countPercentRB
           
private  JCheckBox cumulativeCB
           
(package private) static String cumulativeToolTip
           
private  SOMPane mapPane
           
private  JLabel minAbsoluteCLabel
           
private  JSpinner minAbsoluteCountSpinner
           
(package private) static String minAbsoluteToolTip
           
private  JCheckBox multiMatchCB
           
private  JLabel noShiftInfoLoaded
           
private  JCheckBox outlierCB
           
private  JLabel outlierCLabel
           
private  JSpinner outlierCountSpinner
           
(package private) static String outlierCountToolTip
           
private  JRadioButton posBottomRB
           
private  JLabel positionLabel
           
private  JLabel positionLabelX
           
private  JLabel positionLabelY
           
(package private) static String positionManualToolTip
           
(package private) static String positionToolTip
           
private  JSpinner positionXSpinner
           
private  JSpinner positionYSpinner
           
private  JRadioButton posLeftRB
           
private  JRadioButton posRightRB
           
private  JRadioButton posTopRB
           
private  JSeparator sep1
           
private  JSeparator sep2
           
private  JSeparator sep3
           
private static long serialVersionUID
           
(package private) static String showOnlyToolTip
           
private  JLabel sourceLabel
           
private  JSpinner sourceSpinner
           
(package private) static String sourceToolTip
           
private  JCheckBox stableCB
           
private  JLabel stableCLabel
           
private  JSpinner stableCountSpinner
           
(package private) static String stableCountToolTip
           
private  JLabel targetLabel
           
private  JSpinner targetSpinner
           
(package private) static String targetToolTip
           
 
Fields inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl
SMALL_INSETS, smallerFont, smallFont, state
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ShiftsControlPanel(SOMPane mapPane, CommonSOMViewerStateData state, String title)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 Dimension getMinimumSize()
           
 void initGUIElements()
           
 void initNoShiftsInfo()
           
 void itemStateChanged(ItemEvent e)
           
private  void removeAllGUIElements()
           
 void setThresholdBlock(boolean state)
           
 void switchCountSpinners(boolean absolute)
           
 
Methods inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl
isFullFunctional, setIcon, setSelected, setVisible
 
Methods inherited from class at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel
add, add, add, add, add, getContentBackground, getContentBorder, getContentPane, getDecoratorPadding, getHorizontalTitleAlignment, getHorizontalTitleTextPosition, getIcon, getIconTitleGap, getLayout, getOrientation, getPreferredSize, getShowTitleDecoration, getTitle, getTitleBackground, getTitleBorder, isAnimated, isCollapsed, pack, remove, remove, removeAll, setAnimated, setCollapsed, setContentBackground, setContentBorder, setContentPane, setDecoratorPadding, setHorizontalTitleAlignment, setHorizontalTitleTextPosition, setIcon, setIconTitleGap, setLayout, setOrientation, setShowTitleDecoration, setTitle, setTitleBackground, setTitleBorder
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
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, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, hide, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

sourceToolTip

static final String sourceToolTip
See Also:
Constant Field Values

targetToolTip

static final String targetToolTip
See Also:
Constant Field Values

stableCountToolTip

static final String stableCountToolTip
See Also:
Constant Field Values

outlierCountToolTip

static final String outlierCountToolTip
See Also:
Constant Field Values

minAbsoluteToolTip

static final String minAbsoluteToolTip
See Also:
Constant Field Values

positionToolTip

static final String positionToolTip
See Also:
Constant Field Values

positionManualToolTip

static final String positionManualToolTip
See Also:
Constant Field Values

cumulativeToolTip

static final String cumulativeToolTip
See Also:
Constant Field Values

absoluteToolTip

static final String absoluteToolTip
See Also:
Constant Field Values

showOnlyToolTip

static final String showOnlyToolTip
See Also:
Constant Field Values

mapPane

private SOMPane mapPane

bag

private GridBagConstraints bag

noShiftInfoLoaded

private JLabel noShiftInfoLoaded

sourceSpinner

private JSpinner sourceSpinner

targetSpinner

private JSpinner targetSpinner

outlierCountSpinner

private JSpinner outlierCountSpinner

stableCountSpinner

private JSpinner stableCountSpinner

minAbsoluteCountSpinner

private JSpinner minAbsoluteCountSpinner

sourceLabel

private JLabel sourceLabel

targetLabel

private JLabel targetLabel

countLabel

private JLabel countLabel

outlierCLabel

private JLabel outlierCLabel

stableCLabel

private JLabel stableCLabel

minAbsoluteCLabel

private JLabel minAbsoluteCLabel

countPercentRB

private JRadioButton countPercentRB

countAbsoluteRB

private JRadioButton countAbsoluteRB

cumulativeCB

private JCheckBox cumulativeCB

sep1

private JSeparator sep1

sep2

private JSeparator sep2

sep3

private JSeparator sep3

positionLabel

private JLabel positionLabel

posBottomRB

private JRadioButton posBottomRB

posTopRB

private JRadioButton posTopRB

posLeftRB

private JRadioButton posLeftRB

posRightRB

private JRadioButton posRightRB

positionLabelX

private JLabel positionLabelX

positionLabelY

private JLabel positionLabelY

positionXSpinner

private JSpinner positionXSpinner

positionYSpinner

private JSpinner positionYSpinner

outlierCB

private JCheckBox outlierCB

stableCB

private JCheckBox stableCB

adjacentCB

private JCheckBox adjacentCB

clusterCB

private JCheckBox clusterCB

multiMatchCB

private JCheckBox multiMatchCB

clusterLabel

private JLabel clusterLabel

clusterSpinner

private JSpinner clusterSpinner
Constructor Detail

ShiftsControlPanel

public ShiftsControlPanel(SOMPane mapPane,
                          CommonSOMViewerStateData state,
                          String title)
Method Detail

removeAllGUIElements

private void removeAllGUIElements()

setThresholdBlock

public void setThresholdBlock(boolean state)

initGUIElements

public void initGUIElements()

initNoShiftsInfo

public void initNoShiftsInfo()

getMinimumSize

public Dimension getMinimumSize()
Overrides:
getMinimumSize in class JComponent

switchCountSpinners

public void switchCountSpinners(boolean absolute)

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

itemStateChanged

public void itemStateChanged(ItemEvent e)
Specified by:
itemStateChanged in interface ItemListener