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.
|
dispose, getContext, initialize, registerEventHandlers, setContext, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
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 © 2009–2016 SciJava. All rights reserved.