stella.jview
Class JAllsky
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
jview.AbstractDisplayable
jview.JWebcam
jview.JDaycam
jview.JBaycam
stella.jview.JAllsky
- All Implemented Interfaces:
- Cloneable, Displayable, DisplayChronology, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying
public class JAllsky
- extends JBaycam
A allsky chronology is connected to the all-sky camera on Teide. It is also
pick listening to display the sky when a target was picked.
| Fields inherited from class jview.JWebcam |
KEY_CLIPRAW, KEY_DATECOLOR, KEY_DATEFONT, KEY_DATEFORMAT, KEY_DATEHORJUST, KEY_DATEPOS, KEY_DATEVERTJUST, KEY_HOST, KEY_PASSPHRASE, KEY_PATH, KEY_PROTOCOL, KEY_SHOWDATE, KEY_TIMEMETHOD, KEY_UPDATE |
|
Constructor Summary |
JAllsky(Map prop)
Constructs a new webcam canvas. |
|
Method Summary |
URL |
getDownloadUrl(Date when)
First, we define a t0 by taking the current date, append the zero
time to it and parse this string into a date. |
long |
getTimeStep()
Returns the allsky frame rate in ms. |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
KEY_TIMESTEP
public static final String KEY_TIMESTEP
- This is the stepping size in ms of the time format.
- See Also:
- Constant Field Values
KEY_TIMEZERO
public static final String KEY_TIMEZERO
- This is the string that is used to define the zero point.
- See Also:
- Constant Field Values
DEFXFLIPIMAGE
private static final boolean DEFXFLIPIMAGE
- The all-sky display must be flipped in x.
- See Also:
- Constant Field Values
DEFDATEFORMAT
private static final DateFormat DEFDATEFORMAT
- The default date formatter, known for this special chron.
DEFTIMESTEP
private static final long DEFTIMESTEP
- The default time step.
- See Also:
- Constant Field Values
DEFTIMEZERO
private static final String DEFTIMEZERO
- The default zero-point string.
- See Also:
- Constant Field Values
JAllsky
public JAllsky(Map prop)
- Constructs a new webcam canvas.
getTimeStep
public long getTimeStep()
- Returns the allsky frame rate in ms.
getDownloadUrl
public URL getDownloadUrl(Date when)
- First, we define a t0 by taking the current date, append the zero
time to it and parse this string into a date. Then, from the
current timestamp, we deduce the timestamp that is closest to now
and is separated from t0 a integer multiple from
KEY_TIMESTEP.
This is then converted to a string using the same prescription as
the baycam part.
- Overrides:
getDownloadUrl in class JBaycam