public class MonitorFormat extends Object
Instances of this class are used by MonitorView to produce formatted values for display.
By default, calls are simply forwarded to MonitorField methods. Subclasses can modify
this behavior and provide custom formatting.
This class also provides convenience methods for formatting monitoring table cells, etc.
All these methods forward to format(MonitorField field, List channels).
| Modifier and Type | Field and Description |
|---|---|
static MonitorFormat |
DEFAULT |
| Constructor and Description |
|---|
MonitorFormat() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
format(MonitorCell cell)
Convenience method that updates
FormattedValue associated with the specified cell. |
boolean |
format(MonitorCell cell,
DisplayChannel channelHandle)
Convenience method that updates
FormattedValue associated with the specified cell,
assuming that the only possible reason for a change are changes in the specified channel. |
FormattedValue |
format(MonitorField field,
AgentChannel channel)
Produces formatted value, given the monitored field and the data channel whose value needs to be formatted.
|
FormattedValue |
format(MonitorField field,
DisplayChannel channelHandle)
Convenience method that produces formatted value, given the field and the channel handle.
|
FormattedValue |
format(MonitorField field,
List<AgentChannel> channels)
Produces formatted value, given the field and the list of contributing channels.
|
public static final MonitorFormat DEFAULT
public FormattedValue format(MonitorField field, List<AgentChannel> channels)
MonitorField.format(List).field - Monitored field.channels - Contributing channels.public FormattedValue format(MonitorField field, AgentChannel channel)
MonitorField.format(AgentChannel).field - Monitored field.channel - Data channel.public boolean format(MonitorCell cell)
FormattedValue associated with the specified cell.
The actual formatting is done by format(MonitorField field, List channels).cell - Cell to be formatted.public boolean format(MonitorCell cell, DisplayChannel channelHandle)
FormattedValue associated with the specified cell,
assuming that the only possible reason for a change are changes in the specified channel. format(MonitorCell cell),
ignoring the channelHandle argument. Subclasses might implement more efficient formatting
for cells that depend on multiple channels.cell - Cell to be formatted.channelHandle - Handle of the data channel that might have changed.public FormattedValue format(MonitorField field, DisplayChannel channelHandle)
format(MonitorField field, AgentChannel channel).field - Monitored field.channelHandle - Handle of a data channel whose value needs to be formatted.Copyright © 2023 LSST. All rights reserved.