public class MonitorCell extends Object
MonitorField instance associated with this model,
describing the type of the displayed value, and a list of contributing ChannelHandle objects.
The model also contains the current FormattedValue.| Modifier and Type | Field and Description |
|---|---|
static MonitorCell |
EMPTY |
| Constructor and Description |
|---|
MonitorCell()
Constructs a cell with no associated channels,
NULL field, and no formatted current value. |
MonitorCell(ChannelHandle item,
MonitorField field)
Constructs a cell affected by a single data channel, with no current formatted value.
|
MonitorCell(List<? extends ChannelHandle> items,
MonitorField field)
Constructs a cell affected by zero or more data channels, with no current formatted value.
|
MonitorCell(List<? extends ChannelHandle> 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<ChannelHandle> |
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 MonitorCell EMPTY
public MonitorCell()
NULL field, and no formatted current value.public MonitorCell(ChannelHandle 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 MonitorCell(List<? extends ChannelHandle> 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 MonitorCell(List<? extends ChannelHandle> items, MonitorField field, FormattedValue data)
items - Handles of the channels contributing to this cell. The list will be owned by this cell.field - Field to be displayed.public List<ChannelHandle> getChannels()
public MonitorField getField()
public void setFormattedValue(FormattedValue formattedValue)
formattedValue - New formatted value.public FormattedValue getFormattedValue()
Copyright © 2018 LSST. All rights reserved.