Package org.scijava.ui.viewer
Class AbstractDisplayViewer<T>
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.ui.viewer.AbstractDisplayViewer<T>
-
- All Implemented Interfaces:
Comparable<Prioritized>,Contextual,Disposable,Identifiable,Locatable,Logged,HasPluginInfo,RichPlugin,SciJavaPlugin,Prioritized,DisplayViewer<T>,Versioned
- Direct Known Subclasses:
AbstractTextDisplayViewer,HeadlessDisplayViewer
public abstract class AbstractDisplayViewer<T> extends AbstractRichPlugin implements DisplayViewer<T>
The AbstractDisplayViewer provides some basic generic implementations for a DisplayViewer such as storing and providing the display, window and panel for a DisplayViewer.- Author:
- Lee Kamentsky, Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description AbstractDisplayViewer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Display<T>getDisplay()Gets the display being viewed.DisplayPanelgetPanel()Gets the display panel that hosts the gui elements.DisplayWindowgetWindow()Gets the window in which the view is displayed.protected voidonEvent(DisplayCreatedEvent event)protected voidonEvent(DisplayUpdatedEvent event)voidsetPanel(DisplayPanel panel)Installs the display panel.protected voidupdateTitle()voidview(DisplayWindow w, Display<?> d)Begins viewing the given display.-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority, toString
-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.ui.viewer.DisplayViewer
canView, dispose, isCompatible, onDisplayActivatedEvent, onDisplayDeletedEvent, onDisplayUpdatedEvent, view
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
view
public void view(DisplayWindow w, Display<?> d)
Description copied from interface:DisplayViewerBegins viewing the given display.- Specified by:
viewin interfaceDisplayViewer<T>- Parameters:
w- The frame / window that will contain the GUI elementsd- the model for the display to show.
-
getDisplay
public Display<T> getDisplay()
Description copied from interface:DisplayViewerGets the display being viewed.- Specified by:
getDisplayin interfaceDisplayViewer<T>
-
getWindow
public DisplayWindow getWindow()
Description copied from interface:DisplayViewerGets the window in which the view is displayed.- Specified by:
getWindowin interfaceDisplayViewer<T>
-
setPanel
public void setPanel(DisplayPanel panel)
Description copied from interface:DisplayViewerInstalls the display panel.- Specified by:
setPanelin interfaceDisplayViewer<T>- Parameters:
panel- the panel used to host the gui
-
getPanel
public DisplayPanel getPanel()
Description copied from interface:DisplayViewerGets the display panel that hosts the gui elements.- Specified by:
getPanelin interfaceDisplayViewer<T>
-
updateTitle
protected void updateTitle()
-
onEvent
protected void onEvent(DisplayCreatedEvent event)
-
onEvent
protected void onEvent(DisplayUpdatedEvent event)
-
-