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, updateTitle
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dispose, onDisplayActivatedEvent, onDisplayUpdatedEvent, view
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public boolean isCompatible(UserInterface ui)
DisplayViewer
public boolean canView(Display<?> d)
DisplayViewer
protected abstract boolean canView(T value)
protected abstract void redoLayout()
protected abstract void setLabel(String s)
protected abstract void redraw()
public void onDisplayDeletedEvent(DisplayDeletedEvent e)
DisplayViewer
public void view(DisplayWindow w, Display<?> d)
DisplayViewer
view
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.