public class DefaultMonitorCell extends Object implements MonitorCell
MonitorField instance associated with this model,
describing the type of the displayed value, and a list of contributing DisplayChannel objects.
The model also contains the current FormattedValue.| Modifier and Type | Field and Description |
|---|---|
static DefaultMonitorCell |
EMPTY |
protected MonitorField |
field |
protected FormattedValue |
formattedValue |
protected List<DisplayChannel> |
items |
| Constructor and Description |
|---|
DefaultMonitorCell()
Constructs a cell with no associated channels,
NULL field, and no formatted current value. |
DefaultMonitorCell(DisplayChannel item,
MonitorField field)
Constructs a cell affected by a single data channel, with no current formatted value.
|
DefaultMonitorCell(List<? extends DisplayChannel> items,
MonitorField field)
Constructs a cell affected by zero or more data channels, with no current formatted value.
|
DefaultMonitorCell(List<? extends DisplayChannel> items,
MonitorField field,
FormattedValue data)
Constructs a cell affected by zero or more data channels, with no current formatted value.
|
| Modifier and Type | Method and Description |
|---|---|
List<DisplayChannel> |
getChannels()
Returns the list of handles for data channels that affect this cell.
|
MonitorField |
getField()
Returns the descriptor of the monitored field this cell displays.
|
FormattedValue |
getFormattedValue()
Returns the current formatted value to be displayed by this cell.
|
void |
setFormattedValue(FormattedValue formattedValue)
Sets the current formatted value to be displayed by this cell.
|
public static DefaultMonitorCell EMPTY
protected List<DisplayChannel> items
protected MonitorField field
protected FormattedValue formattedValue
public DefaultMonitorCell()
NULL field, and no formatted current value.public DefaultMonitorCell(DisplayChannel item, MonitorField field)
item - Handle of the channel to be displayed, or null if cell is unaffected by any channels.field - Field to be displayed.public DefaultMonitorCell(List<? extends DisplayChannel> items, MonitorField field)
items - Handles of the channels contributing to this cell. The list will be owned by this cell.field - Field to be displayed.public DefaultMonitorCell(List<? extends DisplayChannel> items, MonitorField field, FormattedValue data)
items - Display channels contributing to this cell. The list will be owned by this cell.field - Field to be displayed.data - Current formatted value.public List<DisplayChannel> getChannels()
getChannels in interface MonitorCellpublic MonitorField getField()
getField in interface MonitorCellpublic void setFormattedValue(FormattedValue formattedValue)
setFormattedValue in interface MonitorCellformattedValue - New formatted value.public FormattedValue getFormattedValue()
getFormattedValue in interface MonitorCellCopyright © 2019 LSST. All rights reserved.