public interface MonitorView extends AgentStatusListener
AgentStatusListener methods are called on the AgentStatusAggregator thread.
All other methods declared by this interface should be called on AWT Event Dispatch Thread.
| Modifier and Type | Field and Description |
|---|---|
static MonitorField[] |
AVAILABLE_GROUP_FIELDS
Available standard
MonitorField constants for displaying a value corresponding to a group of display channels. |
static String |
CATEGORY
Category for general purpose
Persistable views. |
static MonitorField |
DEFAULT_GROUP_FIELD
Default
MonitorField to be used for displaying a value corresponding to a group of display channels. |
| Modifier and Type | Method and Description |
|---|---|
default String |
fieldToString(MonitorField field)
Converts
MonitorField to its string representation. |
default List<MonitorField> |
getFields()
Retrieves a list
MonitorField for display channel groups from the filter. |
AgentChannelsFilter |
getFilter()
Returns the filter associated with this view, or
null if there is none. |
default MonitorFormat |
getFormater()
Returns formatter associated with this view, if any.
|
default String |
getGroup(String displayPath)
Computes group name based on the display path returned by the filter.
|
default List<String> |
getGroups()
Returns a list of display channels groups.
|
default String |
getName()
Returns the name of this view.
|
JComponent |
getPanel()
Returns the graphical component maintained by this view.
|
default void |
install()
Installs this view, connecting it to the data source.
|
default boolean |
isEmpty()
Returns
true if this view has no content to display at the moment. |
void |
setFilter(AgentChannelsFilter filter)
Sets the channels filter to be used by this view.
|
default void |
setFormatter(MonitorFormat formatter)
Associates a formatter with this view.
|
default void |
setName(String name)
Sets the name of this view.
|
default MonitorField |
stringToField(String field)
Returns
MonitorField given its string representation. |
default void |
uninstall()
Uninstalls this view, disconnecting it from the data source.
|
configure, connect, disconnect, statusChangedstatic final String CATEGORY
Persistable views.static final MonitorField DEFAULT_GROUP_FIELD
MonitorField to be used for displaying a value corresponding to a group of display channels.static final MonitorField[] AVAILABLE_GROUP_FIELDS
MonitorField constants for displaying a value corresponding to a group of display channels.JComponent getPanel()
default String getName()
default void setName(String name)
name - View name.AgentChannelsFilter getFilter()
null if there is none.void setFilter(AgentChannelsFilter filter)
filter - Filter to be associated with this view.default MonitorFormat getFormater()
null if there is no formatter.default void setFormatter(MonitorFormat formatter)
formatter - Formatter to be associated with this view.default boolean isEmpty()
true if this view has no content to display at the moment.
This can be used report that the view can be closed, for example.
The default implementation returns false.default String getGroup(String displayPath)
displayPath - Display path.null if this display path does not belong to any group.default List<String> getGroups()
getFilter().getDisplayChannels()
and then applies getGroup(displayPath) to the result.null is the list is unknown at this time.default List<MonitorField> getFields()
MonitorField for display channel groups from the filter.
The default implementation calls getFilter().getFields(true) and
then applies stringToField(...).null if the filter does not provide the list.default MonitorField stringToField(String field)
MonitorField given its string representation.
The default implementation selects from AVAILABLE_GROUP_FIELDS, and returns DEFAULT_GROUP_FIELD if none matches.field - String representation of MonitorField.MonitorField corresponding to the provided string.default String fieldToString(MonitorField field)
MonitorField to its string representation.
The default implementation uses toString().field - MonitorField constant to convert.default void install()
default void uninstall()
Copyright © 2021 LSST. All rights reserved.