|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
util.rmi.RmiEvent
stella.MessageEvent
stella.CommandEvent
stella.command.MoveTelescope
stella.jview.JMoveTelescope
public class JMoveTelescope
A displayable version for the MoveTelescope command. To get valid,
the user must insert a valid right-ascension and declination in the
appropriate text fields. The derotator offset can be specified, as well
as the desired derotator-follows-telescope flag.
| Nested Class Summary | |
|---|---|
static class |
JMoveTelescope.Show
A small class to test the layout. |
| Nested classes/interfaces inherited from class stella.CommandEvent |
|---|
CommandEvent.Create |
| Field Summary | |
|---|---|
private JTextField |
dec
The text field used for entering dec. |
private JComboBox |
decunit
A drop-down list of declination units. |
private JTextField |
derot
The text field for the derotator position. |
private JCheckBox |
follow
The checkbox for a following derotator. |
private JButton |
move
The button that launches the command. |
private JTextField |
ra
The text field used for entering right ascension. |
private JComboBox |
raunit
A drop-down list of right-ascension units. |
| Fields inherited from class stella.command.MoveTelescope |
|---|
KEY_DEROTATOR, KEY_FOLLOW, KEY_USE |
| Fields inherited from class stella.CommandEvent |
|---|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATOR |
| Fields inherited from class stella.MessageEvent |
|---|
SEPCHAR |
| Fields inherited from class util.rmi.RmiEvent |
|---|
localHost, sourceName |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
JMoveTelescope(Object src)
Constructs a new JMoveTelescope command. |
|
JMoveTelescope(Object src,
String type,
long time)
Constructs a new JMoveTelescope command. |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener launch)
Adds a listener to the button that launches the telescope movement. |
CommandEvent |
getCommand()
Gets a fully-qualified command. |
Icon |
getIcon()
Return null |
Component |
getRepresentation()
Returns the representation of the move telescope command. |
void |
init()
Initializes the command. |
boolean |
isEnabled()
Returns true if the move telescope command is enabled. |
void |
removeActionListener(ActionListener launch)
Removes a listener from the launching button. |
void |
setEnabled(boolean isactive)
Disables the move telescope command. |
| Methods inherited from class stella.command.MoveTelescope |
|---|
getDec, getDerot, getLine, getRa, initWith, isFollow, parseLine, registerParameter, registerTarget, registerTargetProperties, setFields, setRaDe |
| Methods inherited from class stella.CommandEvent |
|---|
classNameToTemplate, createCommand, createCommand, createJCommand, extractType, getExpectedAcknowledgeNumber, parseForStrings, templateToClassName |
| Methods inherited from class stella.MessageEvent |
|---|
checkType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toString |
| Methods inherited from class util.rmi.RmiEvent |
|---|
getHost, getSourceName, setSourceName |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface stella.jview.JDisplayableCommand |
|---|
getType |
| Field Detail |
|---|
private JButton move
private JTextField ra
private JTextField dec
private JTextField derot
private JCheckBox follow
private JComboBox raunit
private JComboBox decunit
| Constructor Detail |
|---|
public JMoveTelescope(Object src)
public JMoveTelescope(Object src,
String type,
long time)
| Method Detail |
|---|
public void init()
getRepresentation().
init in interface Initializablepublic Icon getIcon()
getIcon in interface Displayablepublic Component getRepresentation()
getRepresentation in interface Displayablepublic void addActionListener(ActionListener launch)
addActionListener in interface JDisplayableCommandpublic void removeActionListener(ActionListener launch)
removeActionListener in interface JDisplayableCommandpublic void setEnabled(boolean isactive)
setEnabled in interface JDisplayableCommandpublic boolean isEnabled()
isEnabled in interface JDisplayableCommandpublic CommandEvent getCommand()
getCommand in interface JDisplayableCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||