fr.inria.infovis.panel
Class DynamicQueryPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.Box
                  extended byfr.inria.infovis.panel.AbstractControlPanel
                      extended byfr.inria.infovis.panel.DynamicQueryPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.util.EventListener, java.awt.image.ImageObserver, javax.swing.event.ListDataListener, java.awt.MenuContainer, java.io.Serializable, javax.swing.event.TableModelListener

public class DynamicQueryPanel
extends AbstractControlPanel
implements javax.swing.event.TableModelListener

Panel managing the Dynamic Query controls on the visualized table.

Version:
$Revision: 1.1 $
Author:
Jean-Daniel Fekete
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.Box
javax.swing.Box.Filler
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
DynamicQueryPanel(infovis.Visualization vis, infovis.Table table)
          Constructor for DynamicQueryPanel.
DynamicQueryPanel(infovis.Visualization vis, infovis.Table table, infovis.column.FilterColumn filterColumn)
          Creates a new DynamicQueryPanel object.
DynamicQueryPanel(infovis.Visualization vis, infovis.Table table, infovis.column.FilterColumn filterColumn, infovis.column.ColumnFilter filter)
          Creates a new DynamicQueryPanel object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addMissingControls()
          Adds Dynamic Query controls for all columns in the table unless one already exists.
 int columnOffset(infovis.Column column)
           
 void createDefaultControl(infovis.Column c)
          Creates a default control for the specified column.
 boolean filter(infovis.Column c)
           
 infovis.panel.DynamicQuery getColumnDynamicQuery(infovis.Column c)
          Returns the dynamic query associated with a specified column.
 infovis.column.ColumnFilter getFilter()
          Returns the filter.
 infovis.column.FilterColumn getFilterColumn()
          Returns the filterColumn.
 void removeControl(infovis.Column c)
          Removes the control associated with a specified column.
 void setFilter(infovis.column.ColumnFilter filter)
          Sets the filter.
 void setFilterColumn(infovis.column.FilterColumn filterColumn)
          Sets the filterColumn.
 void tableChanged(javax.swing.event.TableModelEvent e)
           
 
Methods inherited from class fr.inria.infovis.panel.AbstractControlPanel
contentsChanged, dispose, getVisualization, intervalAdded, intervalRemoved, setMaximumSize, setTitleBorder, stateChanged
 
Methods inherited from class javax.swing.Box
createGlue, createHorizontalBox, createHorizontalGlue, createHorizontalStrut, createRigidArea, createVerticalBox, createVerticalGlue, createVerticalStrut, getAccessibleContext, setLayout
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicQueryPanel

public DynamicQueryPanel(infovis.Visualization vis,
                         infovis.Table table)
Constructor for DynamicQueryPanel.

Parameters:
table - the table.

DynamicQueryPanel

public DynamicQueryPanel(infovis.Visualization vis,
                         infovis.Table table,
                         infovis.column.FilterColumn filterColumn)
Creates a new DynamicQueryPanel object.

Parameters:
table - the Table to filter.
filterColumn - the FilterColumn.

DynamicQueryPanel

public DynamicQueryPanel(infovis.Visualization vis,
                         infovis.Table table,
                         infovis.column.FilterColumn filterColumn,
                         infovis.column.ColumnFilter filter)
Creates a new DynamicQueryPanel object.

Parameters:
table - the Table to filter.
filterColumn - the FilterColumn.
filter - the ColumnFilter.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class AbstractControlPanel
See Also:
ActionListener.actionPerformed(ActionEvent)

createDefaultControl

public void createDefaultControl(infovis.Column c)
Creates a default control for the specified column.

Parameters:
c - the column.

removeControl

public void removeControl(infovis.Column c)
Removes the control associated with a specified column.

Parameters:
c - the column.

filter

public boolean filter(infovis.Column c)

addMissingControls

public void addMissingControls()
Adds Dynamic Query controls for all columns in the table unless one already exists.


tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Specified by:
tableChanged in interface javax.swing.event.TableModelListener
See Also:
TableModelListener.tableChanged(TableModelEvent)

columnOffset

public int columnOffset(infovis.Column column)

getFilterColumn

public infovis.column.FilterColumn getFilterColumn()
Returns the filterColumn.

Returns:
FilterColumn

setFilterColumn

public void setFilterColumn(infovis.column.FilterColumn filterColumn)
Sets the filterColumn.

Parameters:
filterColumn - The filterColumn to set

getColumnDynamicQuery

public infovis.panel.DynamicQuery getColumnDynamicQuery(infovis.Column c)
Returns the dynamic query associated with a specified column.

Parameters:
c - the column.
Returns:
the dynamic query associated with a specified column or null if no dynamic query exist for this column.

getFilter

public infovis.column.ColumnFilter getFilter()
Returns the filter.

Returns:
ColumnFilter

setFilter

public void setFilter(infovis.column.ColumnFilter filter)
Sets the filter.

Parameters:
filter - The filter to set