public class DefaultMonitorCell extends Object implements MonitorCell
MonitorCell.| Modifier and Type | Field and Description |
|---|---|
protected List<DisplayChannel> |
channels |
protected MonitorField |
field |
protected FormattedValue |
formattedValue |
EMPTY| Constructor and Description |
|---|
DefaultMonitorCell()
Constructs a cell with no associated channels,
NULL field, and no formatted current value. |
DefaultMonitorCell(DisplayChannel channel,
MonitorField field)
Constructs a cell affected by a single display channel, with no current formatted value.
|
DefaultMonitorCell(List<? extends DisplayChannel> channels,
MonitorField field)
Constructs a cell affected by zero or more data channels, with no current formatted value.
|
DefaultMonitorCell(List<? extends DisplayChannel> channels,
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 display channels that affect this cell.
|
MonitorField |
getField()
Returns the monitored field descriptor that defines formatting of this cell.
|
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.
|
protected List<DisplayChannel> channels
protected MonitorField field
protected FormattedValue formattedValue
public DefaultMonitorCell()
NULL field, and no formatted current value.public DefaultMonitorCell(DisplayChannel channel, MonitorField field)
channel - 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> channels, MonitorField field)
channels - 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> channels, MonitorField field, FormattedValue data)
channels - 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 © 2023 LSST. All rights reserved.