|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jview.JMosaic
stella.jview.JBaycamMosaic
public class JBaycamMosaic
A baycam mosaic consists of images taken by the
STELLA baycam. Each tile takes it images from KEY_BAYCAMHOST,
matches them with KEY_BAYCAMNAMES and updates them regularily
using the time base in KEY_BAYCAMUPDATE. The number of file names
in KEY_BAYCAMNAMES defines the number of rows. The size of the
individual
tiles can be set with JMosaic.KEY_TILESIZE from the base class. Specifying
a height of -1 there keeps the aspect ratio of the webcam images.
| Nested Class Summary | |
|---|---|
protected class |
JBaycamMosaic.StellaFilter
A file fliter that takes the name of the file and tries to match it with the constructed head. |
static class |
JBaycamMosaic.Test
Test class. |
| Nested classes/interfaces inherited from class jview.JMosaic |
|---|
JMosaic.Stella |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private static SimpleDateFormat |
DATEFORMAT
|
private static String |
DEFBAYCAMHOST
The default baycam host. |
private static String |
DEFBAYCAMNAMES
The default baycam names for STELLA-I. |
private static String |
DEFBAYCAMPATH
The default baycam path. |
private static String |
DEFBAYCAMPROTOCOL
The default baycam protocol. |
private static long |
DEFBAYCAMUPDATE
The default update frequency in ms. |
private static int |
DEFTILESHRINK
Per default, we shrink by a factor of two. |
static String |
KEY_BAYCAMHOST
The host name of the server providing the baycam images. |
static String |
KEY_BAYCAMNAMES
The names parts of the baycam images used for display. |
static String |
KEY_BAYCAMPATH
The path name of the server providing the baycam images directory. |
static String |
KEY_BAYCAMPROTOCOL
The protocol of the server providing the baycam images. |
static String |
KEY_BAYCAMUPDATE
The update interval for baycam images. |
private List |
latest
A list of latest-url instances to check for new images. |
| Fields inherited from class jview.JMosaic |
|---|
KEY_BORDERCOLOR, KEY_BORDERSIZE, KEY_COLUMNSMOSAIC, KEY_ROWSMOSAIC, KEY_TILESHRINK, KEY_TILESIZE |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JBaycamMosaic(PropertyBearing info)
Constructs a new baycam mosaic. |
|
| Method Summary | |
|---|---|
long |
getRefreshInterval()
Returns the scheduling period. |
void |
init()
Initializes the baycam mosaic. |
boolean |
isFixedRate()
Returns false. |
boolean |
isRefreshNeeded()
Returns true if the mosaic is visible. |
void |
refresh()
The method that does the update. |
void |
setComposedProperties(PropertyBearing prop)
Sets the composed properties of the baycam image. |
| Methods inherited from class jview.JMosaic |
|---|
getComposedProperties, setImages |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY_BAYCAMPROTOCOL
public static final String KEY_BAYCAMHOST
public static final String KEY_BAYCAMPATH
public static final String KEY_BAYCAMNAMES
public static final String KEY_BAYCAMUPDATE
private static final String DEFBAYCAMPROTOCOL
private static final String DEFBAYCAMHOST
private static final String DEFBAYCAMPATH
private static final String DEFBAYCAMNAMES
private static final long DEFBAYCAMUPDATE
private static final int DEFTILESHRINK
private static final SimpleDateFormat DATEFORMAT
private List latest
| Constructor Detail |
|---|
public JBaycamMosaic(PropertyBearing info)
| Method Detail |
|---|
public void setComposedProperties(PropertyBearing prop)
setComposedProperties in interface PropertyAwaresetComposedProperties in class JMosaicpublic void init()
init in interface Initializableinit in class JMosaicpublic void refresh()
refresh in interface Refreshingpublic long getRefreshInterval()
getRefreshInterval in interface Refreshingpublic boolean isFixedRate()
isFixedRate in interface RefreshingTimerpublic boolean isRefreshNeeded()
isRefreshNeeded in interface ConditionalRefreshing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||