|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
uk.ac.starlink.topcat.plot.AxisDataSelector
public class AxisDataSelector
Graphical component allowing selection of one or more columns required for plotting data along one axis of a graph. The principal column is the one which defines the centre of the plotted points along the axis in question, but additional ones may be required according to whether error bars will be drawn.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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 | |
|---|---|
AxisDataSelector(String axisName,
String[] toggleNames,
ToggleButtonModel[] toggleModels)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener listener)
Adds an action listener. |
JComboBox[] |
getErrorSelectors()
Returns the currently displayed column selectors which provide error information. |
JComboBox |
getMainSelector()
Returns the main column selector associated with this selector. |
JComboBox[] |
getSelectors()
Returns an array of all the column selectors which may be displayed by this component. |
void |
removeActionListener(ActionListener listener)
Removes an action listener. |
void |
setEnabled(boolean enabled)
|
void |
setErrorMode(uk.ac.starlink.ttools.plot.ErrorMode errorMode)
Sets the error mode. |
void |
setTable(TopcatModel tcModel)
Configures this component for a given table, populating the column selectors accordingly. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AxisDataSelector(String axisName,
String[] toggleNames,
ToggleButtonModel[] toggleModels)
axisName - name of the axis, used for user labelstoggleNames - names of an array of toggle buttons to be
displayed in this componenttoggleModels - toggle button models to be displayed in this
component (same length as toggleNames)| Method Detail |
|---|
public void addActionListener(ActionListener listener)
listener - action listenerpublic void removeActionListener(ActionListener listener)
listener - action listenerpublic void setEnabled(boolean enabled)
setEnabled in class JComponentpublic JComboBox getMainSelector()
public JComboBox[] getErrorSelectors()
public void setErrorMode(uk.ac.starlink.ttools.plot.ErrorMode errorMode)
errorMode - error modepublic void setTable(TopcatModel tcModel)
tcModel - new table (may be null)public JComboBox[] getSelectors()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||