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, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public void setActive(boolean active)
EventHistory
setActive
in interface EventHistory
public boolean isActive()
EventHistory
isActive
in interface EventHistory
public void clear()
EventHistory
clear
in interface EventHistory
public String toHTML(Set<Class<? extends SciJavaEvent>> filtered, Set<Class<? extends SciJavaEvent>> highlighted)
EventHistory
toHTML
in interface EventHistory
filtered
- 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)
EventHistory
addListener
in interface EventHistory
public void removeListener(EventHistoryListener l)
EventHistory
removeListener
in interface EventHistory
protected void onEvent(SciJavaEvent event)
Copyright © 2015–2022 SciJava. All rights reserved.