public abstract class AbstractImageDisplayViewer extends AbstractDisplayViewer<DataView> implements ImageDisplayViewer
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractImageDisplayViewer.ZoomScaleOption |
Constructor and Description |
---|
AbstractImageDisplayViewer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canView(Display<?> d) |
protected Dataset |
getDataset(DataView view) |
ImageDisplay |
getDisplay() |
protected AbstractImageDisplayViewer.ZoomScaleOption |
getZoomScaleOption()
Implement this in the derived class to get the user's preference for
displaying zoom scale (as a fraction or percent)
|
protected void |
onEvent(DatasetRestructuredEvent event) |
protected void |
onEvent(DatasetUpdatedEvent event) |
protected void |
onEvent(DelayedPositionEvent event) |
protected void |
onEvent(DisplayUpdatedEvent event) |
protected void |
onEvent(PanZoomEvent event) |
protected void |
onEvent(WinActivatedEvent event) |
protected void |
updateLabel()
Recalculate the label text and update it on the panel.
|
protected void |
updateTitle() |
void |
view(DisplayWindow w,
Display<?> d) |
getPanel, getWindow, onEvent, setPanel
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
capture
dispose, getPanel, getWindow, isCompatible, onDisplayActivatedEvent, onDisplayDeletedEvent, onDisplayUpdatedEvent, setPanel, view
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public ImageDisplay getDisplay()
getDisplay
in interface ImageDisplayViewer
getDisplay
in interface DisplayViewer<DataView>
getDisplay
in class AbstractDisplayViewer<DataView>
public boolean canView(Display<?> d)
canView
in interface DisplayViewer<DataView>
public void view(DisplayWindow w, Display<?> d)
view
in interface DisplayViewer<DataView>
view
in class AbstractDisplayViewer<DataView>
protected void updateLabel()
protected AbstractImageDisplayViewer.ZoomScaleOption getZoomScaleOption()
protected void updateTitle()
updateTitle
in class AbstractDisplayViewer<DataView>
protected void onEvent(WinActivatedEvent event)
protected void onEvent(PanZoomEvent event)
protected void onEvent(DatasetRestructuredEvent event)
protected void onEvent(DelayedPositionEvent event)
protected void onEvent(DatasetUpdatedEvent event)
protected void onEvent(DisplayUpdatedEvent event)
onEvent
in class AbstractDisplayViewer<DataView>
Copyright © 2014–2022 ImageJ. All rights reserved.