|
||||||||||
| 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.Box
jview.JSightInfo
public class JSightInfo
A small panel that shows information on star visibility. This includes culmination height, time span of above-horizon, date of opposition to the sun and dates of heliacal rise and set.
| Nested Class Summary | |
|---|---|
static class |
JSightInfo.Display
A class to test the layout of the sight info panel. |
| Nested classes/interfaces inherited from class javax.swing.Box |
|---|
Box.AccessibleBox, Box.Filler |
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private JLabel |
culmlabel
The label holding the target culmination hight. |
private static String |
CULMPREPEND
Prepend this to culmination height. |
private double |
h
The target elevation it must have at heliacal rise/set. |
private static String |
HELRISE
Prepend this to heliacal rise. |
private static String |
HELSET
Prepend this to heliacal set. |
private double |
hsol
The sun elevation for which we calculate the heliacal rise/set. |
private static String |
INVISIBLE
Placeholder for invalid dates (never rises/sets). |
private Double |
latitude
The latitude of the observer. |
private JLabel |
namelabel
The label holding the target name or position. |
private static String |
NAMEPREPEND
Prepend this to star name. |
private JLabel |
opplabel
The label holding the target opposition date. |
private static String |
OPPOSITION
Prepend this to opposition date. |
private StarDescription |
radec
The star the panel is drawn for. |
private JLabel |
riselabel
The label holding the target helical rise date. |
private JLabel |
setlabel
The label holding the target helical set date. |
private JLabel |
spanlabel
The label holding the nightly target visibility span. |
private static String |
UNKNOWN
Placeholder for invalid target names. |
private static String |
VISPREPEND
Prepend this to visibility duration. |
| 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 | |
|---|---|
JSightInfo()
Constructs a new sight info for the specified star at the given latitude. |
|
| Method Summary | |
|---|---|
void |
init()
Lays out the panel. |
void |
setHeliacalHeight(double htarget)
Sets the heliacal target height on rise and set. |
void |
setHeliacalSunHeight(double h)
Sets the heliacal sun height on rise and set. |
void |
setLatitude(double lat)
Sets the latitude of the sight info. |
void |
setObject(StarDescription star)
Sets the object of the sight info. |
private void |
update()
Updates relevant labels. |
| Methods inherited from class javax.swing.Box |
|---|
createGlue, createHorizontalBox, createHorizontalGlue, createHorizontalStrut, createRigidArea, createVerticalBox, createVerticalGlue, createVerticalStrut, getAccessibleContext, paintComponent, setLayout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final String NAMEPREPEND
private static final String CULMPREPEND
private static final String VISPREPEND
private static final String HELRISE
private static final String OPPOSITION
private static final String HELSET
private static final String UNKNOWN
private static final String INVISIBLE
private StarDescription radec
private double hsol
private double h
private Double latitude
private JLabel namelabel
private JLabel culmlabel
private JLabel spanlabel
private JLabel riselabel
private JLabel opplabel
private JLabel setlabel
| Constructor Detail |
|---|
public JSightInfo()
init()
method.
star - A star with at least right ascension and declination, both
in degrees.latitude - The observer's latitude, in degrees.| Method Detail |
|---|
public void setLatitude(double lat)
public void setObject(StarDescription star)
public void setHeliacalSunHeight(double h)
public void setHeliacalHeight(double htarget)
private void update()
public void init()
init in interface Initializable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||