@ConsoleLookup(id="org.lsst.ccs.gconsole.plugins.monitor.MonitorView", name="Tree View", path="Built-In/Tree", description="Monitoring data view that displays its data in a tree of tables.") public class TreeView extends AbstractMonitorView
MonitorView that displays monitoring data as a tree of tables. All
access to instances of this class, including construction, should happen on
the EDT.
DataNode and DataNodeLeaf)
that represents hierarchy of data channels displayed by this view. The leaves correspond
to specific channels, non-leaf nodes have flags associated with them that affect the
display of everything below them.
Separately, there is a SWING JTree displayed by the GUI.Its table consists of
DefaultMutableTreeNode instances that wrap either DataNode or TableHolder
as their "user objects".
Each DataNode that is not below a flattened DataNode is associated a JTree node.
Each JTree node that corresponds to a flattened DataNode has a child that
wraps a TableHolder.
filter| Constructor and Description |
|---|
TreeView() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,AgentChannel> channels)
Updates
path2data and calls setChannels(). |
JComponent |
getPanel()
Returns the graphical component maintained by this view.
|
boolean |
isEmpty()
Returns
true if this view has no content to display at the moment. |
protected void |
removeChannels(org.lsst.ccs.bus.data.AgentInfo agent,
List<String> paths)
Updates
path2data and calls setChannels(). |
void |
setFilter(AgentChannelsFilter filter)
Called to set a filter on this view.
|
protected void |
updateChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,Map.Entry<AgentChannel,List<String>>> channels)
Forwards updates to leaves.
|
configure, connect, connect, disconnect, disconnect, getFilter, isChannelListFixed, sendCommand, sendCommand, statusChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, install, setName, uninstallpublic JComponent getPanel()
getPanel in interface MonitorViewgetPanel in class AbstractMonitorViewpublic void setFilter(AgentChannelsFilter filter)
setFilter in interface MonitorViewsetFilter in class AbstractMonitorViewfilter - Filter to use.public boolean isEmpty()
MonitorViewtrue 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.protected void addChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,AgentChannel> channels)
path2data and calls setChannels().addChannels in class AbstractMonitorViewagent - Source agent.channels - Map of paths to channels.protected void removeChannels(org.lsst.ccs.bus.data.AgentInfo agent,
List<String> paths)
path2data and calls setChannels().removeChannels in class AbstractMonitorViewagent - Source agent.paths - Paths to remove.protected void updateChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,Map.Entry<AgentChannel,List<String>>> channels)
updateChannels in class AbstractMonitorViewagent - Source agent.channels - Map of paths to key-value pairs, where the key is as AgentChannel object
and the value is a list of changed attributes.Copyright © 2017 LSST. All rights reserved.