public class Viewer extends IcyFrame implements java.awt.event.KeyListener, SequenceListener, IcyCanvasListener, PluginLoader.PluginLoaderListener
IcyFrame.IcyFrameState
Constructor and Description |
---|
Viewer(Sequence sequence) |
Viewer(Sequence sequence,
boolean visible) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ViewerListener listener)
Add a listener
|
void |
canvasChanged(IcyCanvasEvent event) |
int |
getC()
Deprecated.
Use
getPositionZ() instead. |
IcyCanvas |
getCanvas()
Return the viewer Canvas object
|
javax.swing.JPanel |
getCanvasPanel()
Return the viewer Canvas panel
|
IcyBufferedImage |
getCurrentImage()
Get the current image
|
int |
getFrameRate()
Returns the frame rate (given in frame per second) for play command.
|
IcyBufferedImage |
getImage(int t,
int z)
Deprecated.
Use
getImage(int, int, int) with C = -1 instead. |
IcyBufferedImage |
getImage(int t,
int z,
int c)
Delegation for
IcyCanvas.getImage(int, int, int) |
LUT |
getLut()
Returns the viewer LUT
|
IcyLutViewer |
getLutPanel()
Deprecated.
Use
getLutViewer() instead |
LUTViewer |
getLutViewer()
Return the viewer Lut panel
|
int |
getMaxC()
Get maximum C value
|
int |
getMaxT()
Get maximum T value
|
int |
getMaxZ()
Get maximum Z value
|
int |
getNumSelectedSamples()
Return the number of "selected" samples
|
int |
getPositionC() |
int |
getPositionT() |
int |
getPositionZ() |
java.awt.image.BufferedImage |
getRenderedImage(int t,
int z,
int c,
boolean canvasView) |
Sequence |
getRenderedSequence(boolean canvasView,
ProgressListener progressListener) |
Sequence |
getSequence() |
int |
getT()
Deprecated.
Use
getPositionT() instead. |
javax.swing.JToolBar |
getToolBar()
Return the viewer ToolBar object
|
int |
getViewSyncId() |
int |
getZ()
Deprecated.
Use
getPositionZ() instead. |
boolean |
isInitialized()
Returns true if the viewer initialization (correct image resizing) is completed.
|
boolean |
isPlaying()
Returns true if currently playing.
|
boolean |
isRepeat()
Returns true if
repeat is enabled for play command. |
boolean |
isSynchronizedViewSupported()
return true if current canvas's viewer does support synchronized view
|
boolean |
isUnique()
Return true if only this viewer is currently displaying its attached sequence
|
boolean |
isViewSynchronized()
Return true if this viewer has its view synchronized
|
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
onClosed()
Called when viewer is closed.
|
void |
pluginLoaderChanged(PluginLoader.PluginLoaderEvent e) |
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
void |
removeListener(ViewerListener listener)
Remove a listener
|
void |
sequenceChanged(SequenceEvent event)
Called when sequence has changed (type, data, metadata or property).
|
void |
sequenceClosed(Sequence sequence)
Called when sequence has been closed (all viewers displaying it closed).
|
void |
setC(int c)
Deprecated.
Use
setPositionZ(int) instead. |
void |
setCanvas(IcyCanvas value)
Deprecated.
Use
setCanvas(String) instead. |
void |
setCanvas(java.lang.String pluginClassName)
Set the specified canvas for the viewer (from the
PluginCanvas class name). |
void |
setFrameRate(int fps)
Sets the frame rate (given in frame per second) for play command.
|
void |
setLut(LUT value)
Set the specified LUT for the viewer.
|
void |
setLutPanel(IcyLutViewer lutViewer)
Deprecated.
Use
setLutViewer(LUTViewer) instead. |
void |
setLutViewer(LUTViewer value)
Set the
LUTViewer for this viewer. |
void |
setPositionC(int c)
Set the current C (channel) position (multi channel sequence)
|
void |
setPositionT(int t)
Set the current T position (for multi frame sequence).
|
void |
setPositionZ(int z)
Set the current Z position (for stack sequence).
|
void |
setRepeat(boolean value)
Set
repeat mode for play command. |
void |
setT(int t)
Deprecated.
Use
setPositionT(int) instead. |
boolean |
setViewSyncId(int id)
Set the view synchronization group id (0 means unsynchronized).
|
void |
setZ(int z)
Deprecated.
Use
setPositionZ(int) instead. |
void |
startPlay()
Start sequence play.
|
void |
stopPlay()
Stop sequence play.
|
add, add, add, addComponentListener, addFrameListener, addKeyListener, addTo, addTo, addTo, addToDesktopPane, addToDesktopPane, addToMainDesktopPane, attach, center, close, detach, dispose, externalize, findIcyFrame, frameClosed, getActionMap, getAllFrames, getAllFrames, getBorder, getBounds, getBoundsExternal, getBoundsInternal, getContentPane, getDefaultSystemMenu, getExternalFrame, getFrame, getHeight, getHeightExternal, getHeightInternal, getIcyExternalFrame, getIcyInternalFrame, getInputMap, getInternalFrame, getJMenuBar, getLocation, getLocationExternal, getLocationInternal, getMaximumSize, getMaximumSizeExternal, getMaximumSizeInternal, getMinimumSize, getMinimumSizeExternal, getMinimumSizeInternal, getMousePosition, getParent, getPreferredSize, getPreferredSizeExternal, getPreferredSizeInternal, getRootPane, getSize, getSizeExternal, getSizeInternal, getSwitchStateAction, getSystemMenuCallback, getTitle, getTitleBarVisible, getToolkit, getVisibleRect, getWidth, getWidthExternal, getWidthInternal, getX, getXExternal, getXInternal, getY, getYExternal, getYInternal, hasFocus, imageUpdate, internalFrameActivated, internalFrameClosed, internalFrameClosing, internalFrameDeactivated, internalFrameDeiconified, internalFrameIconified, internalFrameOpened, internalize, isActive, isAlwaysOnTop, isClosable, isExternalized, isInternalized, isMaximized, isMaximizedExternal, isMaximizedInternal, isMinimized, isMinimizedExternal, isMinimizedInternal, isResizable, isSwitchStateItemVisible, isSyncProcess, isVisible, pack, remove, removeAll, removeComponentListener, removeFrameListener, removeFrom, removeFromMainDesktopPane, removeKeyListener, repaint, requestFocus, revalidate, setAlwaysOnTop, setBackground, setBorder, setBounds, setClosable, setContentPane, setDefaultCloseOperation, setFocusable, setForeground, setJMenuBar, setLayout, setLocation, setLocation, setLocationExternal, setLocationExternal, setLocationInternal, setLocationInternal, setMaximisable, setMaximized, setMaximizedExternal, setMaximizedInternal, setMaximumSize, setMaximumSizeExternal, setMaximumSizeInternal, setMinimized, setMinimizedExternal, setMinimizedInternal, setMinimumSize, setMinimumSizeExternal, setMinimumSizeInternal, setPreferredSize, setPreferredSizeExternal, setPreferredSizeInternal, setResizable, setSize, setSize, setSizeExternal, setSizeExternal, setSizeInternal, setSizeInternal, setSwitchStateItemVisible, setSyncProcess, setSystemMenuCallback, setTitle, setTitleBarVisible, setToolTipText, setVisible, stateChanged, switchState, toBack, toFront, updateSystemMenu, updateUI, validate, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
public void onClosed()
public Sequence getSequence()
public void setCanvas(java.lang.String pluginClassName)
PluginCanvas
class name).IcyCanvas.getCanvasPluginNames()
@Deprecated public void setCanvas(IcyCanvas value)
setCanvas(String)
instead.public boolean isInitialized()
public javax.swing.JPanel getCanvasPanel()
public LUTViewer getLutViewer()
public void setLutViewer(LUTViewer value)
LUTViewer
for this viewer.@Deprecated public IcyLutViewer getLutPanel()
getLutViewer()
instead@Deprecated public void setLutPanel(IcyLutViewer lutViewer)
setLutViewer(LUTViewer)
instead.public javax.swing.JToolBar getToolBar()
public int getPositionT()
public void setPositionT(int t)
public int getPositionZ()
public void setPositionZ(int z)
public int getPositionC()
public void setPositionC(int c)
@Deprecated public int getT()
getPositionT()
instead.@Deprecated public void setT(int t)
setPositionT(int)
instead.@Deprecated public int getZ()
getPositionZ()
instead.@Deprecated public void setZ(int z)
setPositionZ(int)
instead.@Deprecated public int getC()
getPositionZ()
instead.@Deprecated public void setC(int c)
setPositionZ(int)
instead.public int getMaxT()
public int getMaxZ()
public int getMaxC()
public boolean isSynchronizedViewSupported()
public int getViewSyncId()
public boolean setViewSyncId(int id)
id
- the view synchronization id to setIcyCanvas.setSyncId(int)
public boolean isViewSynchronized()
public IcyBufferedImage getImage(int t, int z, int c)
IcyCanvas.getImage(int, int, int)
@Deprecated public IcyBufferedImage getImage(int t, int z)
getImage(int, int, int)
with C = -1 instead.public IcyBufferedImage getCurrentImage()
public int getNumSelectedSamples()
public java.awt.image.BufferedImage getRenderedImage(int t, int z, int c, boolean canvasView)
public Sequence getRenderedSequence(boolean canvasView, ProgressListener progressListener)
public int getFrameRate()
public void setFrameRate(int fps)
public boolean isRepeat()
repeat
is enabled for play command.public void setRepeat(boolean value)
repeat
mode for play command.public boolean isPlaying()
public void startPlay()
stopPlay()
,
setRepeat(boolean)
public void stopPlay()
startPlay()
public boolean isUnique()
public void addListener(ViewerListener listener)
listener
- public void removeListener(ViewerListener listener)
listener
- public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void sequenceChanged(SequenceEvent event)
SequenceListener
sequenceChanged
in interface SequenceListener
public void sequenceClosed(Sequence sequence)
SequenceListener
sequenceClosed
in interface SequenceListener
public void canvasChanged(IcyCanvasEvent event)
canvasChanged
in interface IcyCanvasListener
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class IcyFrame
public void pluginLoaderChanged(PluginLoader.PluginLoaderEvent e)
pluginLoaderChanged
in interface PluginLoader.PluginLoaderListener