java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessiblepublic class PointSelector
extends javax.swing.JPanel
AxesSelector object.java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategyjava.awt.Container.AccessibleAWTContainer| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
TABLE_CHANGED |
ActionEvent command string indicating a change of table.
|
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor | Description |
|---|---|
PointSelector(AxesSelector axesSelector,
MutableStyleSet styles) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addActionListener(java.awt.event.ActionListener listener) |
Adds an action listener.
|
void |
addSubsetSelectionListener(javax.swing.event.ListSelectionListener listener) |
Adds a ListSelectionListener which will be notified when the
subset selection changes.
|
void |
addTopcatListener(TopcatListener listener) |
Adds a TopcatListener which will be notified when changes occur to
the TopcatModel associated with this selector.
|
void |
configureForTable(TopcatModel tcModel) |
Sets this selector to work from a table described by a given
TopcatModel.
|
AxesSelector |
getAxesSelector() |
Returns the AxesSelector used by this PointSelector.
|
java.awt.event.ActionListener |
getErrorModeListener() |
Returns a listener which should be informed every time the error
mode changes.
|
java.lang.String |
getLabel() |
Returns the label for this selector.
|
int[] |
getOrderedSubsetSelection() |
Returns a list of indices giving the selected subsets.
|
uk.ac.starlink.ttools.plot.Style |
getStyle(int isub) |
Returns the style to use for a given subset index.
|
javax.swing.Icon |
getStyleLegendIcon(uk.ac.starlink.ttools.plot.Style style) |
Returns the icon used to represent a given style in legends for this
selector.
|
uk.ac.starlink.ttools.plot.StyleSet |
getStyles() |
Returns the style set used by this selector.
|
StyleWindow |
getStyleWindow() |
Returns this selector's style window.
|
java.lang.String |
getSubsetDisplayLabel(int isub) |
Returns the subset label to be used for annotating one of the subsets
controlled by this selector in a plot legend.
|
boolean[] |
getSubsetSelection() |
Returns an array of flags indicating which of the row subsets have
been selected.
|
TopcatModel |
getTable() |
Returns the currently selected table.
|
boolean |
isReady() |
Indicates whether this selector has enough state filled in to be
able to specify some point data.
|
void |
removeActionListener(java.awt.event.ActionListener listener) |
Removes an action listener which was previously added.
|
void |
removeSubsetSelectionListener(javax.swing.event.ListSelectionListener listner) |
Removes a ListSelectionListener which was previously added.
|
void |
removeTopcatListener(TopcatListener listener) |
Removes a TopcatListener which was previously added.
|
void |
setHorizontalEntryScrolling(boolean isScroll) |
Determines whether the component containing the column selectors
will scroll horizontally if required or not.
|
void |
setLabel(java.lang.String label) |
Sets a label for this selector.
|
void |
setStyles(MutableStyleSet styles) |
Resets the style set to be used by this selector.
|
void |
setStyleWindow(StyleWindow styler) |
Sets the style window associated with this selector.
|
void |
setSubsetSelection(boolean[] selected) |
Sets the current selection pattern for row subsets.
|
void |
setTable(TopcatModel tcModel,
boolean init) |
Sets the table to which this selector currently applies.
|
void |
setVerticalEntryScrolling(boolean isScroll) |
Determines whether the component containing the column selectors
will scroll vertically if required or not.
|
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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleadd, 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, transferFocusDownCycle, validate, validateTreeaddAncestorListener, 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, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, updatepublic static final java.lang.String TABLE_CHANGED
public PointSelector(AxesSelector axesSelector, MutableStyleSet styles)
public AxesSelector getAxesSelector()
public boolean isReady()
public void setHorizontalEntryScrolling(boolean isScroll)
isScroll - true iff the entry box should scroll horizontallypublic void setVerticalEntryScrolling(boolean isScroll)
isScroll - true iff the entry box should scroll verticallypublic void setStyleWindow(StyleWindow styler)
styler - style windowpublic StyleWindow getStyleWindow()
public void setLabel(java.lang.String label)
label - label stringpublic java.lang.String getLabel()
public TopcatModel getTable()
public void setTable(TopcatModel tcModel, boolean init)
tcModel - tableinit - whether to initialise the columns with sensible
starting valuespublic void setSubsetSelection(boolean[] selected)
selected - array of selection flags for subsetspublic boolean[] getSubsetSelection()
public int[] getOrderedSubsetSelection()
getSubsetSelection(), but in a different form and with
the additional information of what order the selections were
made in.public uk.ac.starlink.ttools.plot.Style getStyle(int isub)
isub - subset indexpublic uk.ac.starlink.ttools.plot.StyleSet getStyles()
public void setStyles(MutableStyleSet styles)
styles - new style setpublic javax.swing.Icon getStyleLegendIcon(uk.ac.starlink.ttools.plot.Style style)
style - style to representpublic java.awt.event.ActionListener getErrorModeListener()
public void addActionListener(java.awt.event.ActionListener listener)
listener - listener to addpublic void removeActionListener(java.awt.event.ActionListener listener)
listener - listener to removeaddActionListener(java.awt.event.ActionListener)public void addSubsetSelectionListener(javax.swing.event.ListSelectionListener listener)
ListSelectionEvents which are sent
will be this PointSelector.listener - listener to addpublic void removeSubsetSelectionListener(javax.swing.event.ListSelectionListener listner)
listner - listener to removeaddSubsetSelectionListener(javax.swing.event.ListSelectionListener)public void addTopcatListener(TopcatListener listener)
listener - listener to addpublic void removeTopcatListener(TopcatListener listener)
listener - listener to removeaddTopcatListener(uk.ac.starlink.topcat.TopcatListener)public void configureForTable(TopcatModel tcModel)
tcModel - table to work withpublic java.lang.String getSubsetDisplayLabel(int isub)
isub - subset indexCopyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.