stella.jview
Class JAllsky

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by jview.AbstractDisplayable
                  extended by jview.JWebcam
                      extended by jview.JDaycam
                          extended by jview.JBaycam
                              extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class jview.JBaycam
JBaycam.Direct
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static DateFormat DEFDATEFORMAT
          The default date formatter, known for this special chron.
private static long DEFTIMESTEP
          The default time step.
private static String DEFTIMEZERO
          The default zero-point string.
private static boolean DEFXFLIPIMAGE
          The all-sky display must be flipped in x.
static String KEY_TIMESTEP
          This is the stepping size in ms of the time format.
static String KEY_TIMEZERO
          This is the string that is used to define the zero point.
 
Fields inherited from class jview.JBaycam
KEY_APPEND, KEY_DATEFILE, KEY_DEFAULTURL, KEY_TIMEZONE
 
Fields inherited from class jview.JDaycam
KEY_INVERSE, KEY_SITE, KEY_SOLARLIGHT
 
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
 
Fields inherited from class jview.AbstractDisplayable
KEY_COMPONENTNAME, KEY_ICON, KEY_INSETS
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
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 jview.JBaycam
canDeliver, getTenerife, getTenerife, getWebcamImage, init
 
Methods inherited from class jview.JWebcam
getAuthentication, getRefreshInterval, getRepresentation, getRepresentationAt
 
Methods inherited from class jview.AbstractDisplayable
getComponentName, getIcon, getIcon
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jview.Displayable
getIcon
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
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
 

Field Detail

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
Constructor Detail

JAllsky

public JAllsky(Map prop)
Constructs a new webcam canvas.

Method Detail

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