public class VisibilityHandler extends LogRecordHandler
EMPTY
Constructor and Description |
---|
VisibilityHandler() |
VisibilityHandler(Object[] channels) |
Modifier and Type | Method and Description |
---|---|
boolean |
alsoHide(Object filter)
Show all the channels currently being printed, with the exception
of this new one
|
boolean |
alsoShow(Object filter)
Show all the channels currently being printed, in addition
to a new one
|
List<Redwood.Record> |
handle(Redwood.Record record)
Handle a log Record, either as a filter or by producing a side effect.
|
void |
hideAll()
Show none of the channels
|
void |
showAll()
Show all of the channels.
|
List<Redwood.Record> |
signalEndTrack(int newDepth,
long timeOfEnd)
Signal the end of a track, i.e.
|
List<Redwood.Record> |
signalStartTrack(Redwood.Record signal)
Signal the start of a track, i.e.
|
signalShutdown
public VisibilityHandler()
public VisibilityHandler(Object[] channels)
public void showAll()
public void hideAll()
public boolean alsoShow(Object filter)
filter
- The channel to also showpublic boolean alsoHide(Object filter)
filter
- The channel to also hidepublic List<Redwood.Record> handle(Redwood.Record record)
handle
in class LogRecordHandler
record
- The log record to handlepublic List<Redwood.Record> signalStartTrack(Redwood.Record signal)
signalStartTrack
in class LogRecordHandler
signal
- A record corresponding to the information in the track header.
The depth in this object is the old log depth.public List<Redwood.Record> signalEndTrack(int newDepth, long timeOfEnd)
signalEndTrack
in class LogRecordHandler
newDepth
- The new depth; that is, the current depth - 1.