|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.ui.viewer.AbstractDisplayViewer<T>
public abstract class AbstractDisplayViewer<T>
The AbstractDisplayViewer provides some basic generic implementations for a DisplayViewer such as storing and providing the display, window and panel for a DisplayViewer.
Constructor Summary | |
---|---|
AbstractDisplayViewer()
|
Method Summary | |
---|---|
void |
dispose()
Performs any needed cleanup of the object's services, in preparation for the object being retired (e.g., to make garbage collection possible). |
Display<T> |
getDisplay()
Gets the display being viewed. |
DisplayPanel |
getPanel()
Gets the display panel that hosts the gui elements. |
DisplayWindow |
getWindow()
Gets the window in which the view is displayed. |
void |
onDisplayActivatedEvent(DisplayActivatedEvent e)
Handles a display activated event directed at this viewer's display. |
void |
onDisplayDeletedEvent(DisplayDeletedEvent e)
Removes the user interface when the display is deleted. |
void |
onDisplayUpdatedEvent(DisplayUpdatedEvent e)
Synchronizes the user interface appearance with the display model. |
protected void |
onEvent(DisplayCreatedEvent event)
|
protected void |
onEvent(DisplayUpdatedEvent event)
|
void |
setPanel(DisplayPanel panel)
Installs the display panel. |
protected void |
updateTitle()
|
void |
view(DisplayWindow w,
Display<?> d)
Begins viewing the given display. |
Methods inherited from class org.scijava.plugin.AbstractRichPlugin |
---|
compareTo, getInfo, getPriority, setInfo, setPriority, toString |
Methods inherited from class org.scijava.AbstractContextual |
---|
context, getContext, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.scijava.ui.viewer.DisplayViewer |
---|
canView, isCompatible |
Methods inherited from interface org.scijava.Contextual |
---|
context, getContext, setContext |
Methods inherited from interface org.scijava.Prioritized |
---|
getPriority, setPriority |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.scijava.plugin.HasPluginInfo |
---|
getInfo, setInfo |
Constructor Detail |
---|
public AbstractDisplayViewer()
Method Detail |
---|
public void view(DisplayWindow w, Display<?> d)
DisplayViewer
view
in interface DisplayViewer<T>
w
- The frame / window that will contain the GUI elementsd
- the model for the display to show.public Display<T> getDisplay()
DisplayViewer
getDisplay
in interface DisplayViewer<T>
public DisplayWindow getWindow()
DisplayViewer
getWindow
in interface DisplayViewer<T>
public void setPanel(DisplayPanel panel)
DisplayViewer
setPanel
in interface DisplayViewer<T>
panel
- the panel used to host the guipublic DisplayPanel getPanel()
DisplayViewer
getPanel
in interface DisplayViewer<T>
public void onDisplayDeletedEvent(DisplayDeletedEvent e)
DisplayViewer
onDisplayDeletedEvent
in interface DisplayViewer<T>
public void onDisplayUpdatedEvent(DisplayUpdatedEvent e)
DisplayViewer
onDisplayUpdatedEvent
in interface DisplayViewer<T>
public void onDisplayActivatedEvent(DisplayActivatedEvent e)
DisplayViewer
onDisplayActivatedEvent
in interface DisplayViewer<T>
public void dispose()
Disposable
dispose
in interface Disposable
protected void updateTitle()
protected void onEvent(DisplayCreatedEvent event)
protected void onEvent(DisplayUpdatedEvent event)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |