public abstract class AbstractDisplayViewer<T> extends AbstractRichPlugin implements DisplayViewer<T>
Constructor and Description |
---|
AbstractDisplayViewer() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canView, dispose, isCompatible, onDisplayActivatedEvent, onDisplayDeletedEvent, onDisplayUpdatedEvent, view
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
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>
protected void updateTitle()
protected void onEvent(DisplayCreatedEvent event)
protected void onEvent(DisplayUpdatedEvent event)
Copyright © 2015–2022 SciJava. All rights reserved.