public class DefaultEventHistory extends AbstractService implements EventHistory
| Constructor and Description |
|---|
DefaultEventHistory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(EventHistoryListener l)
Adds an event history listener.
|
void |
clear()
Clears the recorded event history.
|
boolean |
isActive()
Gets whether event history tracking is currently active.
|
protected void |
onEvent(SciJavaEvent event) |
void |
removeListener(EventHistoryListener l)
Removes an event history listener.
|
void |
setActive(boolean active)
Activates or deactivates event history tracking.
|
String |
toHTML(Set<Class<? extends SciJavaEvent>> filtered,
Set<Class<? extends SciJavaEvent>> highlighted)
Gets the recorded event history as an HTML string.
|
getContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic void setActive(boolean active)
EventHistorysetActive in interface EventHistorypublic boolean isActive()
EventHistoryisActive in interface EventHistorypublic void clear()
EventHistoryclear in interface EventHistorypublic String toHTML(Set<Class<? extends SciJavaEvent>> filtered, Set<Class<? extends SciJavaEvent>> highlighted)
EventHistorytoHTML in interface EventHistoryfiltered - Set of event types to filter out from the history.highlighted - Set of event types to highlight in the history.public void addListener(EventHistoryListener l)
EventHistoryaddListener in interface EventHistorypublic void removeListener(EventHistoryListener l)
EventHistoryremoveListener in interface EventHistoryprotected void onEvent(SciJavaEvent event)
Copyright © 2015–2022 SciJava. All rights reserved.