T - class of object needed to be displayed in a Swing UIpublic abstract class EasySwingDisplayViewer<T> extends AbstractDisplayViewer<T>
JPanel viewer for any object of
class T declared as a ItemIO output Parameter in
a Command.| Modifier and Type | Class and Description |
|---|---|
static class |
EasySwingDisplayViewer.SwingDisplayPanel |
| Modifier | Constructor and Description |
|---|---|
protected |
EasySwingDisplayViewer(Class<T> classOfObject) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canView(Display<?> d)
Returns true if an instance of this display viewer can view the given
display.
|
protected abstract boolean |
canView(T value) |
protected abstract JPanel |
createDisplayPanel(T value) |
boolean |
isCompatible(UserInterface ui)
Returns true if this display viewer can be used with the given UI.
|
void |
onDisplayDeletedEvent(DisplayDeletedEvent e)
Removes the user interface when the display is deleted.
|
protected abstract void |
redoLayout() |
protected abstract void |
redraw() |
protected abstract void |
setLabel(String s) |
void |
view(DisplayWindow w,
Display<?> d)
Begins viewing the given display.
|
getDisplay, getPanel, getWindow, onEvent, onEvent, setPanel, updateTitlegetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdispose, onDisplayActivatedEvent, onDisplayUpdatedEvent, viewgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic boolean isCompatible(UserInterface ui)
DisplayViewerpublic boolean canView(Display<?> d)
DisplayViewerprotected abstract boolean canView(T value)
protected abstract void redoLayout()
protected abstract void setLabel(String s)
protected abstract void redraw()
public void onDisplayDeletedEvent(DisplayDeletedEvent e)
DisplayViewerpublic void view(DisplayWindow w, Display<?> d)
DisplayViewerview in interface DisplayViewer<T>view in class AbstractDisplayViewer<T>w - The frame / window that will contain the GUI elementsd - the model for the display to show.Copyright © 2015–2022 SciJava. All rights reserved.