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:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class ShiftsControlPanel
extends AbstractViewerControl
implements java.awt.event.ActionListener, java.awt.event.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
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private) static java.lang.String absoluteToolTip
           
private  javax.swing.JCheckBox adjacentCB
           
private  java.awt.GridBagConstraints bag
           
private  javax.swing.JCheckBox clusterCB
           
private  javax.swing.JLabel clusterLabel
           
private  javax.swing.JSpinner clusterSpinner
           
private  javax.swing.JRadioButton countAbsoluteRB
           
private  javax.swing.JLabel countLabel
           
private  javax.swing.JRadioButton countPercentRB
           
private  javax.swing.JCheckBox cumulativeCB
           
(package private) static java.lang.String cumulativeToolTip
           
private  SOMPane mapPane
           
private  javax.swing.JLabel minAbsoluteCLabel
           
private  javax.swing.JSpinner minAbsoluteCountSpinner
           
(package private) static java.lang.String minAbsoluteToolTip
           
private  javax.swing.JCheckBox multiMatchCB
           
private  javax.swing.JLabel noShiftInfoLoaded
           
private  javax.swing.JCheckBox outlierCB
           
private  javax.swing.JLabel outlierCLabel
           
private  javax.swing.JSpinner outlierCountSpinner
           
(package private) static java.lang.String outlierCountToolTip
           
private  javax.swing.JRadioButton posBottomRB
           
private  javax.swing.JLabel positionLabel
           
private  javax.swing.JLabel positionLabelX
           
private  javax.swing.JLabel positionLabelY
           
(package private) static java.lang.String positionManualToolTip
           
(package private) static java.lang.String positionToolTip
           
private  javax.swing.JSpinner positionXSpinner
           
private  javax.swing.JSpinner positionYSpinner
           
private  javax.swing.JRadioButton posLeftRB
           
private  javax.swing.JRadioButton posRightRB
           
private  javax.swing.JRadioButton posTopRB
           
private  javax.swing.JSeparator sep1
           
private  javax.swing.JSeparator sep2
           
private  javax.swing.JSeparator sep3
           
private static long serialVersionUID
           
(package private) static java.lang.String showOnlyToolTip
           
private  javax.swing.JLabel sourceLabel
           
private  javax.swing.JSpinner sourceSpinner
           
(package private) static java.lang.String sourceToolTip
           
private  javax.swing.JCheckBox stableCB
           
private  javax.swing.JLabel stableCLabel
           
private  javax.swing.JSpinner stableCountSpinner
           
(package private) static java.lang.String stableCountToolTip
           
private  javax.swing.JLabel targetLabel
           
private  javax.swing.JSpinner targetSpinner
           
(package private) static java.lang.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, java.lang.String title)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.awt.Dimension getMinimumSize()
           
 void initGUIElements()
           
 void initNoShiftsInfo()
           
 void itemStateChanged(java.awt.event.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, 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 java.lang.String sourceToolTip
See Also:
Constant Field Values

targetToolTip

static final java.lang.String targetToolTip
See Also:
Constant Field Values

stableCountToolTip

static final java.lang.String stableCountToolTip
See Also:
Constant Field Values

outlierCountToolTip

static final java.lang.String outlierCountToolTip
See Also:
Constant Field Values

minAbsoluteToolTip

static final java.lang.String minAbsoluteToolTip
See Also:
Constant Field Values

positionToolTip

static final java.lang.String positionToolTip
See Also:
Constant Field Values

positionManualToolTip

static final java.lang.String positionManualToolTip
See Also:
Constant Field Values

cumulativeToolTip

static final java.lang.String cumulativeToolTip
See Also:
Constant Field Values

absoluteToolTip

static final java.lang.String absoluteToolTip
See Also:
Constant Field Values

showOnlyToolTip

static final java.lang.String showOnlyToolTip
See Also:
Constant Field Values

mapPane

private SOMPane mapPane

bag

private java.awt.GridBagConstraints bag

noShiftInfoLoaded

private javax.swing.JLabel noShiftInfoLoaded

sourceSpinner

private javax.swing.JSpinner sourceSpinner

targetSpinner

private javax.swing.JSpinner targetSpinner

outlierCountSpinner

private javax.swing.JSpinner outlierCountSpinner

stableCountSpinner

private javax.swing.JSpinner stableCountSpinner

minAbsoluteCountSpinner

private javax.swing.JSpinner minAbsoluteCountSpinner

sourceLabel

private javax.swing.JLabel sourceLabel

targetLabel

private javax.swing.JLabel targetLabel

countLabel

private javax.swing.JLabel countLabel

outlierCLabel

private javax.swing.JLabel outlierCLabel

stableCLabel

private javax.swing.JLabel stableCLabel

minAbsoluteCLabel

private javax.swing.JLabel minAbsoluteCLabel

countPercentRB

private javax.swing.JRadioButton countPercentRB

countAbsoluteRB

private javax.swing.JRadioButton countAbsoluteRB

cumulativeCB

private javax.swing.JCheckBox cumulativeCB

sep1

private javax.swing.JSeparator sep1

sep2

private javax.swing.JSeparator sep2

sep3

private javax.swing.JSeparator sep3

positionLabel

private javax.swing.JLabel positionLabel

posBottomRB

private javax.swing.JRadioButton posBottomRB

posTopRB

private javax.swing.JRadioButton posTopRB

posLeftRB

private javax.swing.JRadioButton posLeftRB

posRightRB

private javax.swing.JRadioButton posRightRB

positionLabelX

private javax.swing.JLabel positionLabelX

positionLabelY

private javax.swing.JLabel positionLabelY

positionXSpinner

private javax.swing.JSpinner positionXSpinner

positionYSpinner

private javax.swing.JSpinner positionYSpinner

outlierCB

private javax.swing.JCheckBox outlierCB

stableCB

private javax.swing.JCheckBox stableCB

adjacentCB

private javax.swing.JCheckBox adjacentCB

clusterCB

private javax.swing.JCheckBox clusterCB

multiMatchCB

private javax.swing.JCheckBox multiMatchCB

clusterLabel

private javax.swing.JLabel clusterLabel

clusterSpinner

private javax.swing.JSpinner clusterSpinner
Constructor Detail

ShiftsControlPanel

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

removeAllGUIElements

private void removeAllGUIElements()

setThresholdBlock

public void setThresholdBlock(boolean state)

initGUIElements

public void initGUIElements()

initNoShiftsInfo

public void initNoShiftsInfo()

getMinimumSize

public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class javax.swing.JComponent

switchCountSpinners

public void switchCountSpinners(boolean absolute)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener