|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
jview.AbstractDisplayable
jview.JWebcam
jview.JDaycam
jview.JBaycam
public class JBaycam
A baycam canvas is connected to a webcam that stores images with a special date extension.
| Nested Class Summary | |
|---|---|
static class |
JBaycam.Direct
Returns and displays an image directly retrieved from tenerife. |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private static String |
DEFTIMEZONE
Default time zone. |
private boolean |
failure
|
static String |
KEY_APPEND
The file-name to append to the download url after date. |
static String |
KEY_DATEFILE
The date formatter to use. |
static String |
KEY_DEFAULTURL
An image known to exist. |
static String |
KEY_TIMEZONE
How the fetch time should be formatted. |
private URL |
lasturl
My last download url to check for equality. |
| 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 | |
|---|---|
JBaycam(Map<String,String> 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. |
protected URL |
getDownloadUrl(Date when)
Formats the given day and uses the server path to retrieve a download url. |
static Image |
getTenerife(String label)
Calls a remote method on archive, which gets an image pointed toward the telescope without turn on of light. |
static Image |
getTenerife(String label,
ProgressMonitor echo)
Calls a remote method on archive, which gets an image pointed toward the telescope without turn on of light. |
protected BufferedImage |
getWebcamImage(URL download)
Returns the webcam image from the stated url. |
void |
init()
Additionally constructs the solar height parameter. |
| 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 |
|---|
public static final String KEY_APPEND
public static final String KEY_DATEFILE
public static final String KEY_TIMEZONE
public static final String KEY_DEFAULTURL
private static final String DEFTIMEZONE
private URL lasturl
private boolean failure
| Constructor Detail |
|---|
public JBaycam(Map<String,String> prop)
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class JDaycampublic boolean canDeliver()
canDeliver in interface DisplayChronologycanDeliver in class JDaycamprotected URL getDownloadUrl(Date when)
getDownloadUrl in class JWebcam
protected BufferedImage getWebcamImage(URL download)
throws IOException
getWebcamImage in class JWebcamIOExceptionpublic static Image getTenerife(String label)
public static Image getTenerife(String label,
ProgressMonitor echo)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||