public class Tracer extends Object implements Persistable
Implementation notes.
Persistency. Two kinds of Tracer instances exist: those created by Creator, and those created by TracerEditor.
For the first kind, the descriptor will always have valid creator property and null filter property.
For the second kind, creator property is null. These instances are created by the default constructor and a
call to restore(...).
| Modifier and Type | Class and Description |
|---|---|
static class |
Tracer.Descriptor |
| Constructor and Description |
|---|
Tracer() |
| Modifier and Type | Method and Description |
|---|---|
Tracer |
edit(String title,
Component parent)
Takes user input and returns a modified
Persistable instance. |
Tracer.Descriptor |
getDescriptor()
Returns a reference to the descriptor maintained by this component.
|
MessageFilter |
getFilter() |
JComponent |
getPanel()
Returns the graphical component that displays messages, creating it if it does not already exist.
|
void |
onMessage(org.lsst.ccs.bus.messages.BusMessage message) |
void |
restore(Persistable.Descriptor d)
Restores this component to the state specified by the provided JavaBean.
|
Tracer.Descriptor |
save()
Returns JavaBean describing the current state of this component.
|
void |
setFilter(MessageFilter filter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCategory, getPath, restorepublic static final String CATEGORY
public JComponent getPanel()
public MessageFilter getFilter()
public void setFilter(MessageFilter filter)
public void onMessage(org.lsst.ccs.bus.messages.BusMessage message)
public Tracer.Descriptor getDescriptor()
Persistablenull, and
that any properties set on the descriptor returned by this method are reflected by
descriptors subsequently returned by save(), unless modified between the two calls.getDescriptor in interface Persistablepublic Tracer.Descriptor save()
PersistablegetDescriptor().save in interface Persistablesave in interface Savablenull if no state information needs to be saved.public void restore(Persistable.Descriptor d)
Persistablerestore in interface Persistabled - JavaBean encapsulating the state.public Tracer edit(String title, Component parent)
PersistablePersistable instance.
This method should be called on EDT.
The default implementation returns null.edit in interface Persistabletitle - User-interaction dialog title, or null if the default title should be used.parent - Graphical component to be use as a parent for user-interaction dialog(s).this).
May return null to indicate that the Persistable should
be re-instantiated, letting the user select among available Creator
factories for the given category.Copyright © 2023 LSST. All rights reserved.