jview
Class JDaycam
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
jview.AbstractDisplayable
jview.JWebcam
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.
| 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 |
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 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_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.
JDaycam
public JDaycam(Map prop)
- Constructs a new webcam canvas.
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