|
|||||||||
| 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.AxisEditor
public class AxisEditor
Axis configuration editor component. This provides boxes in which axis labels and data ranges can be entered. The data ranges are either some fixed numeric value, or Double.NaN; the latter means that the limit in question is to be assigned dynamically by the plot component (presumably by assessing the range of the available data).
| 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 | |
|---|---|
protected JTextField |
hiField_
|
protected JTextField |
loField_
|
| 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 |
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener listener)
Registers a listener to be notified when the state of this component changes. |
void |
addMaintainedRange(uk.ac.starlink.ttools.plot.Range range)
Adds a range which will be modified in accordance with changes of the state of this editor. |
void |
clearBounds()
Clears the upper and lower bounds in this editor. |
double[] |
getAxisBounds()
Returns the currently requested data range. |
protected double |
getHigh()
Returns the current upper bound, fixing state if necessary. |
String |
getLabel()
Returns the currently entered label for the axis in this editor. |
protected double |
getLow()
Returns the current lower bound, fixing state if necessary. |
void |
removeActionListener(ActionListener listener)
Unregisters a listener added by addActionListener(java.awt.event.ActionListener). |
void |
removeMaintainedRange(uk.ac.starlink.ttools.plot.Range range)
Removes a range previously added by addMaintainedRange(uk.ac.starlink.ttools.plot.Range). |
void |
setAxis(uk.ac.starlink.table.ValueInfo axis)
Configures this component to edit the configuration of a given axis. |
void |
setTitle(String title)
Sets the title of this editor. |
void |
updateRanges()
Updates all of the Ranges currently maintained by this editor according to its current state. |
| 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 |
| Field Detail |
|---|
protected final JTextField loField_
protected final JTextField hiField_
| Method Detail |
|---|
public void setAxis(uk.ac.starlink.table.ValueInfo axis)
axis differs from the last one which was submitted in
a call to this method. Thus it is important that the
equals() method of axis is implemented
properly.
axis - metadata of the axis to editpublic String getLabel()
public void addMaintainedRange(uk.ac.starlink.ttools.plot.Range range)
range will not be refelected by this
component.
range - range to maintainpublic void removeMaintainedRange(uk.ac.starlink.ttools.plot.Range range)
addMaintainedRange(uk.ac.starlink.ttools.plot.Range).
Note that object identity not equality is used for removal.
range - to unmaintainpublic double[] getAxisBounds()
public void clearBounds()
public void addActionListener(ActionListener listener)
listener - listener to addpublic void removeActionListener(ActionListener listener)
addActionListener(java.awt.event.ActionListener).
listener - listener to removepublic void setTitle(String title)
title - title textprotected double getLow()
protected double getHigh()
public void updateRanges()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||