jview
Class JDaycam

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
All Implemented Interfaces:
Cloneable, Displayable, DisplayChronology, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying
Direct Known Subclasses:
JBaycam, JFtpWebcam

public class JDaycam
extends JWebcam

A daycam canvas is connected to a webcam that operates in white light, thus cannot deliver when its dark. If the KEY_INVERSE property is set, we have a night cam. The class calculates the daytime via the solar hight. The #KEY_SOLOPERATE delivers the critical solar hight, for day cams the time they stop working, if sun is below.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static boolean DEFINVERSE
          Default is a daycam.
private static String DEFSITE
          Default location is izana observatory.
private static double DEFSOLARLIGHT
          Default solar operation height is soon after sunset
static String KEY_INVERSE
          If true, we have a night cam.
static String KEY_SITE
          The name of the site.
static String KEY_SOLARLIGHT
          The toggling solar height.
private  SolHeight light
          The solar height parameter.
 
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
JDaycam(Map prop)
          Constructs a new webcam canvas.
 
Method Summary
 boolean canDeliver()
          We can deliver if the modification time on the server is below the modification time of our latest retrieval.
 void init()
          Additionally constructs the solar height parameter.
 
Methods inherited from class jview.JWebcam
getAuthentication, getDownloadUrl, getRefreshInterval, getRepresentation, getRepresentationAt, getWebcamImage
 
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_SITE

public static final String KEY_SITE
The name of the site.

See Also:
Constant Field Values

KEY_SOLARLIGHT

public static final String KEY_SOLARLIGHT
The toggling solar height.

See Also:
Constant Field Values

KEY_INVERSE

public static final String KEY_INVERSE
If true, we have a night cam.

See Also:
Constant Field Values

DEFSITE

private static final String DEFSITE
Default location is izana observatory.

See Also:
Constant Field Values

DEFSOLARLIGHT

private static final double DEFSOLARLIGHT
Default solar operation height is soon after sunset

See Also:
Constant Field Values

DEFINVERSE

private static final boolean DEFINVERSE
Default is a daycam.

See Also:
Constant Field Values

light

private SolHeight light
The solar height parameter.

Constructor Detail

JDaycam

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

Method Detail

init

public void init()
Additionally constructs the solar height parameter.

Specified by:
init in interface Initializable
Overrides:
init in class JWebcam

canDeliver

public boolean canDeliver()
We can deliver if the modification time on the server is below the modification time of our latest retrieval.

Specified by:
canDeliver in interface DisplayChronology
Overrides:
canDeliver in class JWebcam