org.knime.base.node.viz.pie.impl
Class PieProperties<D extends PieVizModel>

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JTabbedPane
                  extended by org.knime.base.node.viz.plotter.AbstractPlotterProperties
                      extended by org.knime.base.node.viz.pie.impl.PieProperties<D>
Type Parameters:
D - the PieVizModel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants
Direct Known Subclasses:
FixedPieProperties, InteractivePieProperties

public abstract class PieProperties<D extends PieVizModel>
extends AbstractPlotterProperties

The abstract pie properties panel which allows to change the different view options.

Author:
Tobias Koetter, University of Konstanz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JTabbedPane
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener
 
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
static String AGGREGATION_COLUMN_LABEL
          The label of the aggregation column.
static String PIE_COLUMN_LABEL
          The label of the pie column.
 
Fields inherited from class javax.swing.JTabbedPane
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT
 
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 javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PieProperties(D vizModel)
          Constructor for class PieProperties.
 
Method Summary
protected  void addAggrMethodListener(ActionListener listener)
           
protected  void addColumnTab(JComponent pieCol, JComponent aggrCol)
           
protected  void addExplodeSelectedSectionListener(ItemListener listener)
           
protected  void addExplodeSizeChangeListener(ChangeListener listener)
           
protected  void addLabelDisplayListener(ActionListener listener)
           
protected  void addPieSizeChangeListener(ChangeListener listener)
           
protected  void addShowDetailsListener(ItemListener listener)
           
protected  void addShowMissingValSectionListener(ItemListener listener)
           
 void addShowSectionOutlineChangedListener(ItemListener listener)
           
protected  void addValueScaleListener(ActionListener listener)
           
protected  void enableAggrMethodGroup(boolean enable)
           
protected  void enableMissingSectionOption(boolean enable)
           
protected  void enableShowDetailsOption(boolean enable)
           
 LabelDisplayPolicy getLabelDisplayPolicy()
           
 ValueScale getValueScale()
           
protected abstract  void onSelectAggrMethod(AggregationMethod aggrMethod)
           
 void updateHTMLDetailsPanel(String html)
           
 void updatePanel(D vizModel)
           
protected abstract  void updatePanelInternal(D vizModel)
           
 
Methods inherited from class org.knime.base.node.viz.plotter.AbstractPlotterProperties
getAntialiasButton, getChooseBackgroundButton, getColorChooser, getFitToScreenButton, getMouseSelectionBox
 
Methods inherited from class javax.swing.JTabbedPane
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabComponentAt, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, indexOfTabComponent, insertTab, isEnabledAt, paramString, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setTitleAt, setToolTipTextAt, 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, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, 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, setVisible, 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, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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

PIE_COLUMN_LABEL

public static final String PIE_COLUMN_LABEL
The label of the pie column.

See Also:
Constant Field Values

AGGREGATION_COLUMN_LABEL

public static final String AGGREGATION_COLUMN_LABEL
The label of the aggregation column.

See Also:
Constant Field Values
Constructor Detail

PieProperties

public PieProperties(D vizModel)
Constructor for class PieProperties.

Parameters:
vizModel - the visualization model to initialize all swing components
Method Detail

enableMissingSectionOption

protected void enableMissingSectionOption(boolean enable)
Parameters:
enable - true if the show missing section check box should be enabled or not

enableShowDetailsOption

protected void enableShowDetailsOption(boolean enable)
Parameters:
enable - true if the show details check box should be enabled or not

enableAggrMethodGroup

protected void enableAggrMethodGroup(boolean enable)
Parameters:
enable - true if the aggregation method group should be enabled

updateHTMLDetailsPanel

public void updateHTMLDetailsPanel(String html)
Parameters:
html - the new details view

addColumnTab

protected void addColumnTab(JComponent pieCol,
                            JComponent aggrCol)
Parameters:
pieCol - the pie column component
aggrCol - the aggregation column component

updatePanel

public void updatePanel(D vizModel)
Parameters:
vizModel - the actual PieVizModel

updatePanelInternal

protected abstract void updatePanelInternal(D vizModel)
Parameters:
vizModel - the actual PieVizModel

getValueScale

public ValueScale getValueScale()
Returns:
the label display policy

getLabelDisplayPolicy

public LabelDisplayPolicy getLabelDisplayPolicy()
Returns:
the label display policy

onSelectAggrMethod

protected abstract void onSelectAggrMethod(AggregationMethod aggrMethod)
Parameters:
aggrMethod - new AggregationMethod

addLabelDisplayListener

protected void addLabelDisplayListener(ActionListener listener)
Parameters:
listener - the listener to listen if the label display policy has changed

addValueScaleListener

protected void addValueScaleListener(ActionListener listener)
Parameters:
listener - the listener to listen if the label display policy has changed

addShowSectionOutlineChangedListener

public void addShowSectionOutlineChangedListener(ItemListener listener)
Parameters:
listener - adds the listener to the show section outline check box

addPieSizeChangeListener

protected void addPieSizeChangeListener(ChangeListener listener)
Parameters:
listener - adds the listener to the bin width slider

addExplodeSizeChangeListener

protected void addExplodeSizeChangeListener(ChangeListener listener)
Parameters:
listener - adds the listener to the bin width slider

addAggrMethodListener

protected void addAggrMethodListener(ActionListener listener)
Parameters:
listener - adds the listener to the aggregation method button group

addExplodeSelectedSectionListener

protected void addExplodeSelectedSectionListener(ItemListener listener)
Parameters:
listener - adds the listener to the show empty bins select box

addShowDetailsListener

protected void addShowDetailsListener(ItemListener listener)
Parameters:
listener - adds the listener to the show empty bins select box

addShowMissingValSectionListener

protected void addShowMissingValSectionListener(ItemListener listener)
Parameters:
listener - adds the listener to the show missing value bin select box


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.