jsky.catalog.gui
Class TableSymbolConfig

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 jsky.catalog.gui.TableSymbolConfigGUI
                      extended by jsky.catalog.gui.TableSymbolConfig
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IApplyCancel

public class TableSymbolConfig
extends TableSymbolConfigGUI
implements IApplyCancel

A user interface for setting plot symbol preferences.

Version:
$Revision: 1.1 $
Author:
Allan Brighton
See Also:
Serialized Form

Nested Class Summary
 
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.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int ANGLE
           
static java.lang.String[] COL_NAMES
          Columns in the symbol description table
static int COLOR
           
static int COLUMNS
          Index of the column of the same name in the symbol JTable.
static int CONDITION
           
static int IMAGE_PIXEL_UNITS
           
static int LABEL
           
static int RATIO
           
static int SIZE
           
static int SYMBOL
           
static java.lang.String[] UNIT_NAMES
          Display names for units
static java.lang.String[] UNIT_STRINGS
          Internal names for units
static int UNITS
           
static int WCS_DEG_UNITS
           
 
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
TableSymbolConfig(TablePlotter plotter, TableQueryResult table)
          Constructor.
 
Method Summary
 void apply()
          Apply changes and replot.
 void cancel()
          Cancel changes
protected  void editSymbol(TablePlotSymbol symb)
          Edit the given symbol definition
protected  TablePlotSymbol[] getPlotSymbolInfo()
          Return an array of TablePlotSymbol objects based on the user's selections (one object for each row in the table).
protected  void setListData(javax.swing.JList list, java.lang.String[] ar)
          Set the contents of the given list to the given array.
protected  void setListData(javax.swing.JList list, java.util.Vector v)
          Set the contents of the given list to the given vector.
 void setTable(TableQueryResult table)
          Set the table to configure.
protected  void symbolSelected()
          Called when a symbol shape is selected from the combo box
protected  void updateSymbolTable()
          Update the selected symbolTable row with the currently displayed plot information.
 
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, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, 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
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, 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

COL_NAMES

public static final java.lang.String[] COL_NAMES
Columns in the symbol description table


COLUMNS

public static final int COLUMNS
Index of the column of the same name in the symbol JTable.

See Also:
Constant Field Values

SYMBOL

public static final int SYMBOL
See Also:
Constant Field Values

COLOR

public static final int COLOR
See Also:
Constant Field Values

RATIO

public static final int RATIO
See Also:
Constant Field Values

ANGLE

public static final int ANGLE
See Also:
Constant Field Values

LABEL

public static final int LABEL
See Also:
Constant Field Values

CONDITION

public static final int CONDITION
See Also:
Constant Field Values

SIZE

public static final int SIZE
See Also:
Constant Field Values

UNITS

public static final int UNITS
See Also:
Constant Field Values

UNIT_NAMES

public static final java.lang.String[] UNIT_NAMES
Display names for units


UNIT_STRINGS

public static final java.lang.String[] UNIT_STRINGS
Internal names for units


IMAGE_PIXEL_UNITS

public static final int IMAGE_PIXEL_UNITS
See Also:
Constant Field Values

WCS_DEG_UNITS

public static final int WCS_DEG_UNITS
See Also:
Constant Field Values
Constructor Detail

TableSymbolConfig

public TableSymbolConfig(TablePlotter plotter,
                         TableQueryResult table)
Constructor.

Parameters:
plotter - object to use to plot catalog symbols.
table - the table being configured
Method Detail

symbolSelected

protected void symbolSelected()
Called when a symbol shape is selected from the combo box


setTable

public void setTable(TableQueryResult table)
Set the table to configure. If the table is the result of a catalog query, this configures the plot symbols for the source catalog.

Parameters:
table - the table being configured.

setListData

protected void setListData(javax.swing.JList list,
                           java.lang.String[] ar)
Set the contents of the given list to the given array.


setListData

protected void setListData(javax.swing.JList list,
                           java.util.Vector v)
Set the contents of the given list to the given vector.


editSymbol

protected void editSymbol(TablePlotSymbol symb)
Edit the given symbol definition


updateSymbolTable

protected void updateSymbolTable()
Update the selected symbolTable row with the currently displayed plot information.


getPlotSymbolInfo

protected TablePlotSymbol[] getPlotSymbolInfo()
Return an array of TablePlotSymbol objects based on the user's selections (one object for each row in the table).


apply

public void apply()
Apply changes and replot.

Specified by:
apply in interface IApplyCancel

cancel

public void cancel()
Cancel changes

Specified by:
cancel in interface IApplyCancel