|
|||||||||
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.vo.SkyPositionEntry
public class SkyPositionEntry
Component for acquiring from the user a sky position and radius. Object name resolution is provided.
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 | |
---|---|
SkyPositionEntry(String coordSysLabel)
Constructor. |
Method Summary | |
---|---|
void |
addActionListener(ActionListener listener)
Adds an action listener to the entry fields of this component. |
void |
addCaretListener(CaretListener listener)
Adds a caret listener to the entry fields of this component. |
void |
addField(DoubleValueField field)
Adds a field to the list of ones controlled by this component. |
DoubleValueField |
getDecDegreesField()
Returns the field containing declination in degrees. |
DoubleValueField |
getRaDegreesField()
Returns the field containing right ascension in degrees. |
JTextField |
getResolveField()
Returns the field in which an astronomical object whose position is be resolved can be entered. |
void |
removeActionListener(ActionListener listener)
Removes an action listener from the entry fields of this component. |
void |
removeCaretListener(CaretListener listener)
Removes a caret listener from the entry fields of this component. |
void |
setEnabled(boolean enabled)
|
void |
setPosition(double raDegrees,
double decDegrees,
boolean clearResolver)
Sets the current sky position in degrees. |
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 SkyPositionEntry(String coordSysLabel)
coordSysLabel
- label such as "J2000" identifying the coordinate
system for additional info to the user;
may be nullMethod Detail |
---|
public void addField(DoubleValueField field)
field
- field to addpublic DoubleValueField getRaDegreesField()
public DoubleValueField getDecDegreesField()
public JTextField getResolveField()
public void setEnabled(boolean enabled)
setEnabled
in class JComponent
public void addActionListener(ActionListener listener)
listener
- listener to addpublic void removeActionListener(ActionListener listener)
listener
- listener to removepublic void addCaretListener(CaretListener listener)
listener
- listener to addpublic void removeCaretListener(CaretListener listener)
listener
- listener to removepublic void setPosition(double raDegrees, double decDegrees, boolean clearResolver)
raDegrees
- right ascension in degreeesdecDegrees
- declination in degreesclearResolver
- if true, clear the contents of the
resolved object field
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |