|
||||||||||
| 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
stella.jview.JSensorTable
public class JSensorTable
A table that displays some sensor data. The user can click on the column
header giving the sensor name to scroll between true, predicted, smoothened
and derivative data. It typically looks like this:
| Nested Class Summary | |
|---|---|
private class |
JSensorTable.JSensorTableDisplay
We have to define special cell renderer for the zeroth column. |
static class |
JSensorTable.Show
Pops up a frame and displays the sensor table. |
private static class |
JSensorTable.WeatherRenderer
A helper class to allow colored sensor names. |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private static TableCellRenderer |
bad
The cell renderer for bad wether. |
private static TableCellRenderer |
clear
The cell renderer for clear wether. |
private static Color |
DEFBADCOLOR
Color for bad weather, if reason is equal shown one. |
private static Color |
DEFCLEARCOLOR
The default clear color. |
private static String |
DEFCOLUMNLABEL
The default column labels. |
private static Color |
DEFNOWEATHERCOLOR
Color for invalid weather. |
private static Color |
DEFRETARDBADCOLOR
Color for bad weather retard, if reason is equal shown one. |
private static Color |
DEFRETARDCLEARCOLOR
Color for bad weather retard, if reason is equal shown one. |
private static long |
DEFSAMPLEPERIOD
The default sampling period. |
static String |
KEY_BADCOLOR
The color for bad sensor readings. |
static String |
KEY_CLEARCOLOR
The color for clear sensor readings. |
static String |
KEY_COLUMNLABEL
The labels on the sensor value columns, comma-separated. |
static String |
KEY_NOWEATHERCOLOR
The color for non-weather sensors. |
static String |
KEY_REPOSITORY
The name of the repository the table should bind to. |
static String |
KEY_RETARDBADCOLOR
The color for sensor retarding to bad. |
static String |
KEY_RETARDCLEARCOLOR
The color for sensor retarding to good. |
static String |
KEY_SAMPLEPERIOD
The key to the averaging period imposed on the table model. |
static String |
KEY_SENSORLIST
The key to a list of sensor that should be displayed. |
private static TableCellRenderer |
noweather
The cell renderer for no wether. |
private static TableCellRenderer |
retardbad
The cell renderer for retarding bad wether. |
private static TableCellRenderer |
retardclear
The cell renderer for retarding good wether. |
private SensorTableModel |
sensor
My sensor table to ease access. |
private JTable |
view
The jtable to display. |
| 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 | |
|---|---|
JSensorTable(Map prop)
Constructs a new sensor table. |
|
| Method Summary | |
|---|---|
Component |
getRepresentation()
Returns the JTable dedescant that describes this table. |
void |
init()
Initializes the sensor by building a SensorTableModel and
binding it to the KEY_REPOSITORY. |
| 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 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_REPOSITORY
public static final String KEY_SENSORLIST
public static final String KEY_SAMPLEPERIOD
public static final String KEY_CLEARCOLOR
public static final String KEY_BADCOLOR
public static final String KEY_RETARDCLEARCOLOR
public static final String KEY_RETARDBADCOLOR
public static final String KEY_NOWEATHERCOLOR
public static final String KEY_COLUMNLABEL
private static final long DEFSAMPLEPERIOD
private static final Color DEFCLEARCOLOR
private static final Color DEFBADCOLOR
private static final Color DEFRETARDBADCOLOR
private static final Color DEFRETARDCLEARCOLOR
private static final Color DEFNOWEATHERCOLOR
private static final String DEFCOLUMNLABEL
private JTable view
private SensorTableModel sensor
private static TableCellRenderer clear
private static TableCellRenderer bad
private static TableCellRenderer retardclear
private static TableCellRenderer retardbad
private static TableCellRenderer noweather
| Constructor Detail |
|---|
public JSensorTable(Map prop)
init() method.
| Method Detail |
|---|
public void init()
SensorTableModel and
binding it to the KEY_REPOSITORY. Additionally, a
JTable is initialized, which is then delivered in the
getRepresentation() method.
init in interface Initializableinit in class PropertyResourcespublic Component getRepresentation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||