public abstract class IcyCanvas extends javax.swing.JPanel implements java.awt.event.KeyListener, ViewerListener, SequenceListener, LUTListener, ChangeListener, Layer.LayerListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_LAYERS_VISIBLE |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier and Type | Method and Description |
---|---|
void |
addCanvasListener(IcyCanvasListener listener)
Add a IcyCanvas listener
|
Layer |
addLayer(Overlay overlay) |
void |
addLayer(Painter painter)
Deprecated.
Use
addLayer(Overlay) instead. |
void |
addLayerListener(CanvasLayerListener listener)
Add a layer listener
|
void |
addLayersListener(CanvasLayerListener listener)
Deprecated.
Use
addLayerListener(CanvasLayerListener) instead. |
void |
addViewerToolbarComponents(javax.swing.JToolBar toolBar)
Deprecated.
Use
customizeToolbar(JToolBar) instead. |
static void |
addVisibleLayerToList(Layer layer,
java.util.ArrayList<Layer> list) |
void |
beginUpdate() |
double |
canvasToImageC(int value)
Deprecated.
Cannot give correct result if rotation is applied so use
IcyCanvasXD.canvasToImage(...) instead
|
double |
canvasToImageDeltaC(int value)
Convert specified canvas delta C to image delta C.
|
double |
canvasToImageDeltaT(int value)
Convert specified canvas delta T to image delta T.
|
double |
canvasToImageDeltaX(int value)
Convert specified canvas delta X to image delta X.
|
double |
canvasToImageDeltaY(int value)
Convert specified canvas delta Y to image delta Y.
|
double |
canvasToImageDeltaZ(int value)
Convert specified canvas delta Z to image delta Z.
|
double |
canvasToImageLogDeltaX(int value)
Convert specified canvas delta X to log image delta X.
|
double |
canvasToImageLogDeltaX(int value,
double logFactor)
Convert specified canvas delta X to log image delta X.
|
double |
canvasToImageLogDeltaY(int value)
Convert specified canvas delta Y to log image delta Y.
|
double |
canvasToImageLogDeltaY(int value,
double logFactor)
Convert specified canvas delta Y to log image delta Y.
|
double |
canvasToImageLogDeltaZ(int value)
Convert specified canvas delta Z to log image delta Z.
|
double |
canvasToImageLogDeltaZ(int value,
double logFactor)
Convert specified canvas delta Z to log image delta Z.
|
double |
canvasToImageT(int value)
Deprecated.
Cannot give correct result if rotation is applied so use
IcyCanvasXD.canvasToImage(...) instead
|
double |
canvasToImageX(int value)
Deprecated.
Cannot give correct result if rotation is applied so use
IcyCanvasXD.canvasToImage(...) instead
|
double |
canvasToImageY(int value)
Deprecated.
Cannot give correct result if rotation is applied so use
IcyCanvasXD.canvasToImage(...) instead
|
double |
canvasToImageZ(int value)
Deprecated.
Cannot give correct result if rotation is applied so use
IcyCanvasXD.canvasToImage(...) instead
|
void |
changed(IcyCanvasEvent event)
canvas changed (packed event).
|
static IcyCanvas |
create(java.lang.String className,
Viewer viewer)
Create a
IcyCanvas object from its class name or PluginCanvas class name. |
void |
customizeToolbar(javax.swing.JToolBar toolBar)
Called by the parent viewer when building the toolbar.
|
void |
endUpdate() |
int |
getC()
Deprecated.
uses getPositionC() instead
|
static java.lang.String |
getCanvasClassName(PluginDescriptor plugin)
Returns the canvas class name corresponding to the specified
PluginCanvas plugin. |
static java.lang.String |
getCanvasClassName(java.lang.String pluginClassName)
Returns the canvas class name corresponding to the specified
PluginCanvas class name. |
int |
getCanvasOffsetC()
Deprecated.
use getOffsetC() instead
|
int |
getCanvasOffsetT()
Deprecated.
use getOffsetT() instead
|
int |
getCanvasOffsetX()
Deprecated.
use getOffsetX() instead
|
int |
getCanvasOffsetY()
Deprecated.
use getOffsetY() instead
|
int |
getCanvasOffsetZ()
Deprecated.
use getOffsetZ() instead
|
static java.util.List<java.lang.String> |
getCanvasPluginNames()
Returns all
PluginCanvas plugins class name (kernel plugin are returned first). |
static java.util.List<PluginDescriptor> |
getCanvasPlugins()
Returns all
PluginCanvas plugins (kernel plugin are returned first). |
int |
getCanvasSize(DimensionId dim)
Get canvas view size for specified Dimension
|
int |
getCanvasSizeC()
Returns the canvas view size C.
|
int |
getCanvasSizeT()
Returns the canvas view size T.
|
int |
getCanvasSizeX()
Returns the canvas view size X.
|
int |
getCanvasSizeY()
Returns the canvas view size Y.
|
int |
getCanvasSizeZ()
Returns the canvas view size Z.
|
IcyBufferedImage |
getCurrentImage()
Get the current image.
|
boolean |
getDrawLayers()
Deprecated.
Use
isLayersVisible() instead. |
int |
getFrameRate()
Returns the frame rate (given in frame per second) for play command (T navigation panel).
|
IcyBufferedImage |
getImage(int t,
int z)
Deprecated.
Use
getImage(int, int, int) with C = -1 instead. |
IcyBufferedImage |
getImage(int t,
int z,
int c)
Gets the image at position (t, z, c).
|
int |
getImageCanvasSize(DimensionId dim)
Deprecated.
doesn't take rotation transformation in account.
Use IcyCanvasXD.getImageCanvasSize(..) instead |
int |
getImageCanvasSizeC()
Deprecated.
doesn't take rotation transformation in account.
Use IcyCanvasXD.getImageCanvasSize(..) instead |
int |
getImageCanvasSizeT()
Deprecated.
doesn't take rotation transformation in account.
Use IcyCanvasXD.getImageCanvasSize(..) instead |
int |
getImageCanvasSizeX()
Deprecated.
doesn't take rotation transformation in account.
Use IcyCanvasXD.getImageCanvasSize(..) instead |
int |
getImageCanvasSizeY()
Deprecated.
doesn't take rotation transformation in account.
Use IcyCanvasXD.getImageCanvasSize(..) instead |
int |
getImageCanvasSizeZ()
Deprecated.
doesn't take rotation transformation in account.
Use IcyCanvasXD.getImageCanvasSize(..) instead |
Layer |
getImageLayer()
Returns the
Layer object used to display the current sequence image |
int |
getImageOffsetC()
Deprecated.
use getOffsetC() instead
|
int |
getImageOffsetT()
Deprecated.
use getOffsetT() instead
|
int |
getImageOffsetX()
Deprecated.
use getOffsetX() instead
|
int |
getImageOffsetY()
Deprecated.
use getOffsetY() instead
|
int |
getImageOffsetZ()
Deprecated.
use getOffsetZ() instead
|
Overlay |
getImageOverlay()
Returns the
Overlay used to display the current sequence image |
int |
getImageSize(DimensionId dim)
Get image size for specified Dimension
|
int |
getImageSizeC()
Get image size C
|
int |
getImageSizeT()
Get image size T
|
int |
getImageSizeX()
Get image size X
|
int |
getImageSizeY()
Get image size Y
|
int |
getImageSizeZ()
Get image size Z
|
Layer |
getLayer(Overlay overlay)
Find the layer corresponding to the specified Overlay
|
Layer |
getLayer(Painter painter)
Deprecated.
Use
getLayer(Overlay) instead. |
Layer |
getLayer(ROI roi)
Find the layer corresponding to the specified ROI (use the ROI overlay internally).
|
java.util.List<CanvasLayerListener> |
getLayerListeners()
Returns all canvas layer listener
|
java.util.List<Layer> |
getLayers()
Returns all layers attached to this canvas.
|
java.util.List<Layer> |
getLayers(boolean sorted)
Returns all layers attached to this canvas.
|
java.util.List<Painter> |
getLayersPainter()
Deprecated.
Use
getOverlays() instead. |
java.util.List<IcyCanvasListener> |
getListeners()
Returns all canvas listener
|
LUT |
getLut() |
double |
getMax(DimensionId dim)
Deprecated.
Use
getMaxPosition(DimensionId) instead |
int |
getMaxC()
Deprecated.
Use
getMaxPositionC() instead |
double |
getMaxPosition(DimensionId dim)
Get maximum position for specified dimension
|
Point5D.Integer |
getMaxPosition5D()
Get the maximum 5D position for the canvas.
|
int |
getMaxPositionC()
Get maximum C value
|
int |
getMaxPositionT()
Get maximum T value
|
int |
getMaxPositionX()
Get maximum X value
|
int |
getMaxPositionY()
Get maximum Y value
|
int |
getMaxPositionZ()
Get maximum Z value
|
int |
getMaxT()
Deprecated.
Use
getMaxPositionT() instead |
int |
getMaxX()
Deprecated.
Use
getMaxPositionX() instead |
int |
getMaxY()
Deprecated.
Use
getMaxPositionY() instead |
int |
getMaxZ()
Deprecated.
Use
getMaxPositionZ() instead |
MouseImageInfosPanel |
getMouseImageInfosPanel() |
double |
getMouseImagePos(DimensionId dim)
Get mouse image position for specified Dimension
|
Point5D.Double |
getMouseImagePos5D()
Returns the 5D mouse image position
|
double |
getMouseImagePosC()
mouse C image position
|
double |
getMouseImagePosT()
mouse T image position
|
double |
getMouseImagePosX()
mouse X image position
|
double |
getMouseImagePosY()
mouse Y image position
|
double |
getMouseImagePosZ()
mouse Z image position
|
java.awt.Point |
getMousePos()
Returns the mouse position (in canvas coordinate space).
|
int |
getNumSelectedSamples()
Return the number of "selected" samples
|
int |
getOffset(DimensionId dim)
Get offset for specified Dimension
|
Point5D.Integer |
getOffset5D()
Returns the 5D offset.
|
int |
getOffsetC()
C offset
|
int |
getOffsetT()
T offset
|
int |
getOffsetX()
X offset
|
int |
getOffsetY()
Y offset
|
int |
getOffsetZ()
Z offset
|
java.util.List<Layer> |
getOrderedLayersForEvent()
Deprecated.
Use
getLayers() instead (sorted on Layer priority). |
java.util.Set<Overlay> |
getOverlays()
Directly returns a
Set of all Overlay displayed by this canvas. |
javax.swing.JPanel |
getPanel()
Returns the setting panel of this canvas.
|
static java.lang.String |
getPluginClassName(java.lang.String canvasClassName)
Returns the plugin class name corresponding to the specified Canvas class name.
|
int |
getPosition(DimensionId dim)
Get position for specified dimension
|
Point5D.Integer |
getPosition5D()
Returns the 5D canvas position (-1 mean that the complete dimension is selected)
|
int |
getPositionC() |
int |
getPositionT() |
int |
getPositionX() |
int |
getPositionY() |
int |
getPositionZ() |
java.awt.image.BufferedImage |
getRenderedImage(int t,
int z,
int c)
Deprecated.
Use
getRenderedImage(int, int, int, boolean) instead. |
abstract java.awt.image.BufferedImage |
getRenderedImage(int t,
int z,
int c,
boolean canvasView)
Returns a RGB or ARGB (depending support) BufferedImage representing the canvas view for
image at position (t, z, c).
|
java.awt.image.BufferedImage |
getRenderedImage(int t,
int z,
int c,
int imageType,
boolean canvasView)
Deprecated.
use
getRenderedImage(int, int, int, boolean) instead |
Sequence |
getRenderedSequence()
Deprecated.
Use
getRenderedSequence(boolean, ProgressListener) instead. |
Sequence |
getRenderedSequence(boolean canvasView)
Deprecated.
Use
getRenderedSequence(boolean, ProgressListener) instead. |
Sequence |
getRenderedSequence(boolean canvasView,
ProgressListener progressListener)
Return a sequence which contains rendered images.
|
Sequence |
getRenderedSequence(int imageType,
boolean canvasView)
Deprecated.
use
getRenderedSequence(boolean) instead |
double |
getRotation(DimensionId dim)
Get rotation angle (radian) for specified Dimension
|
double |
getRotationC()
C rotation angle (radian)
|
double |
getRotationT()
T rotation angle (radian)
|
double |
getRotationX()
X rotation angle (radian)
|
double |
getRotationY()
Y rotation angle (radian)
|
double |
getRotationZ()
Z rotation angle (radian)
|
double |
getScale(DimensionId dim)
Get scale factor for specified Dimension
|
double |
getScaleC()
C scale factor
|
double |
getScaleFactorC()
Deprecated.
use getScaleC() instead
|
double |
getScaleFactorT()
Deprecated.
use getScaleT() instead
|
double |
getScaleFactorX()
Deprecated.
use getScaleX() instead
|
double |
getScaleFactorY()
Deprecated.
use getScaleY() instead
|
double |
getScaleFactorZ()
Deprecated.
use getScaleZ() instead
|
double |
getScaleT()
T scale factor
|
double |
getScaleX()
X scale factor
|
double |
getScaleY()
Y scale factor
|
double |
getScaleZ()
Z scale factor
|
Sequence |
getSequence() |
int |
getSyncId() |
int |
getT()
Deprecated.
uses getPositionT() instead
|
TNavigationPanel |
getTNavigationPanel() |
abstract java.awt.Component |
getViewComponent() |
Viewer |
getViewer() |
java.util.ArrayList<Layer> |
getVisibleLayers()
Returns all visible layers (visible property set to
true ) attached to this
canvas. |
java.util.List<Layer> |
getVisibleLayers(boolean sorted)
Returns all visible layers (visible property set to
true ) attached to this
canvas. |
java.util.List<Layer> |
getVisibleOrderedLayersForEvent()
Deprecated.
Use
getVisibleLayers() instead (sorted on Layer priority). |
int |
getZ()
Deprecated.
uses getPositionZ() instead
|
ZNavigationPanel |
getZNavigationPanel() |
boolean |
hasLayer(Layer layer) |
boolean |
hasLayer(Overlay overlay)
Returns true if the canvas contains a layer for the specified
Overlay . |
boolean |
hasLayer(Painter painter)
Deprecated.
Use
hasLayer(Overlay) instead. |
int |
imageToCanvasC(double value)
Deprecated.
Cannot give correct result if rotation is applied so use
IcyCanvasXD.imageToCanvas(...) instead
|
int |
imageToCanvasDeltaC(double value)
Convert specified image delta C to canvas delta C.
|
int |
imageToCanvasDeltaT(double value)
Convert specified image delta T to canvas delta T.
|
int |
imageToCanvasDeltaX(double value)
Convert specified image delta X to canvas delta X.
|
int |
imageToCanvasDeltaY(double value)
Convert specified image delta Y to canvas delta Y.
|
int |
imageToCanvasDeltaZ(double value)
Convert specified image delta Z to canvas delta Z.
|
int |
imageToCanvasT(double value)
Deprecated.
Cannot give correct result if rotation is applied so use
IcyCanvasXD.imageToCanvas(...) instead
|
int |
imageToCanvasX(double value)
Deprecated.
Cannot give correct result if rotation is applied so use
IcyCanvasXD.imageToCanvas(...) instead
|
int |
imageToCanvasY(double value)
Deprecated.
Cannot give correct result if rotation is applied so use
IcyCanvasXD.imageToCanvas(...) instead
|
int |
imageToCanvasZ(double value)
Deprecated.
Cannot give correct result if rotation is applied so use
IcyCanvasXD.imageToCanvas(...) instead
|
boolean |
isLayersVisible()
Return true if layers are visible on the canvas.
|
boolean |
isSynchHeader()
Deprecated.
Use
isSynchMaster() instead. |
boolean |
isSynchMaster()
Return true if current canvas is synchronized and is currently the synchronize leader.
|
boolean |
isSynchOnCursor()
Return true if this canvas is synchronized on cursor (mouse cursor)
|
boolean |
isSynchOnSlice()
Return true if this canvas is synchronized on slice (T and Z position)
|
boolean |
isSynchOnView()
Return true if this canvas is synchronized on view (offset, zoom and rotation).
|
boolean |
isSynchronizationSupported()
Return true if this canvas support synchronization
|
boolean |
isSynchronized()
Return true if this canvas is synchronized
|
boolean |
isSynchSlave()
Return true if current canvas is synchronized and it's not the synchronize master
|
boolean |
isUpdating() |
boolean |
isVisible(Overlay overlay)
Returns
true if the specified overlay is visible in the canvas. |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
layerChanged(Layer layer,
java.lang.String propertyName)
layer has changed
|
void |
lutChanged(LUTEvent event) |
void |
mouseClick(java.awt.event.MouseEvent event)
Helper to forward mouse click event to the overlays.
|
void |
mouseClick(java.awt.event.MouseEvent event,
Point5D.Double pt)
Helper to forward mouse click event to the overlays.
|
void |
mouseDrag(java.awt.event.MouseEvent event)
Helper to forward mouse drag event to the overlays.
|
void |
mouseDrag(java.awt.event.MouseEvent event,
Point5D.Double pt)
Helper to forward mouse drag event to the overlays.
|
void |
mouseEntered(java.awt.event.MouseEvent event)
Helper to forward mouse entered event to the overlays.
|
void |
mouseEntered(java.awt.event.MouseEvent event,
Point5D.Double pt)
Helper to forward mouse enter event to the overlays.
|
void |
mouseExited(java.awt.event.MouseEvent event)
Helper to forward mouse exited event to the overlays.
|
void |
mouseExited(java.awt.event.MouseEvent event,
Point5D.Double pt)
Helper to forward mouse exit event to the overlays.
|
void |
mouseImagePositionChanged(DimensionId dim)
Called when mouse image position changed
|
void |
mouseMove(java.awt.event.MouseEvent event)
Helper to forward mouse mouse event to the overlays.
|
void |
mouseMove(java.awt.event.MouseEvent event,
Point5D.Double pt)
Helper to forward mouse move event to the overlays.
|
void |
mousePressed(java.awt.event.MouseEvent event)
Helper to forward mouse press event to the overlays.
|
void |
mousePressed(java.awt.event.MouseEvent event,
Point5D.Double pt)
Helper to forward mouse press event to the overlays.
|
void |
mouseReleased(java.awt.event.MouseEvent event)
Helper to forward mouse release event to the overlays.
|
void |
mouseReleased(java.awt.event.MouseEvent event,
Point5D.Double pt)
Helper to forward mouse release event to the overlays.
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent event)
Helper to forward mouse wheel event to the overlays.
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent event,
Point5D.Double pt)
Helper to forward mouse wheel event to the overlays.
|
void |
offsetChanged(DimensionId dim)
Called when canvas offset changed
|
void |
onChanged(CollapsibleEvent event)
fire changed event
|
abstract void |
refresh()
Force canvas refresh
|
void |
removeCanvasListener(IcyCanvasListener listener)
Remove a IcyCanvas listener
|
void |
removeLayer(Layer layer)
Remove the specified layer from the canvas.
|
boolean |
removeLayer(Overlay overlay)
Remove the layer for the specified
Overlay from the canvas. |
void |
removeLayer(Painter painter)
Deprecated.
Use
removeLayer(Overlay) instead. |
void |
removeLayerListener(CanvasLayerListener listener)
Remove a layer listener
|
void |
removeLayersListener(CanvasLayerListener listener)
Deprecated.
Use
removeLayerListener(CanvasLayerListener) instead. |
void |
rotationChanged(DimensionId dim)
Called when rotation angle changed
|
void |
scaleChanged(DimensionId dim)
Called when scale factor changed
|
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.
uses setPositionC(int) instead
|
void |
setDrawLayers(boolean value)
Deprecated.
Use
setLayersVisible(boolean) instead. |
void |
setFrameRate(int fps)
Sets the frame rate (given in frame per second) for play command (T navigation panel).
|
void |
setLayersVisible(boolean value)
Make layers visible on this canvas (default = true).
|
void |
setMouseImagePos(DimensionId dim,
double value)
Set mouse image position for specified dimension (required for synchronization)
|
void |
setMouseImagePosC(double value)
Set mouse C image position
|
void |
setMouseImagePosT(double value)
Set mouse T image position
|
void |
setMouseImagePosX(double value)
Set mouse X image position
|
void |
setMouseImagePosY(double value)
Set mouse Y image position
|
void |
setMouseImagePosZ(double value)
Set mouse Z image position
|
boolean |
setMousePos(int x,
int y)
Set mouse position (in canvas coordinate space).
|
void |
setMousePos(java.awt.Point point)
Set mouse position (in canvas coordinate space)
|
void |
setOffset(DimensionId dim,
int value)
Set offset for specified dimension
|
void |
setOffsetC(int value)
Set offset C
|
void |
setOffsetT(int value)
Set offset T
|
void |
setOffsetX(int value)
Set offset X
|
void |
setOffsetY(int value)
Set offset Y
|
void |
setOffsetZ(int value)
Set offset Z
|
void |
setPosition(DimensionId dim,
int value)
Set position for specified dimension
|
void |
setPositionC(int c)
Set C position
|
void |
setPositionT(int t)
Set T position
|
void |
setPositionX(int x)
Set X position
|
void |
setPositionY(int y)
Set Y position
|
void |
setPositionZ(int z)
Set Z position
|
void |
setRotation(DimensionId dim,
double value)
Set rotation angle (radian) for specified dimension
|
void |
setRotationC(double value)
Set C rotation angle (radian)
|
void |
setRotationT(double value)
Set T rotation angle (radian)
|
void |
setRotationX(double value)
Set X rotation angle (radian)
|
void |
setRotationY(double value)
Set Y rotation angle (radian)
|
void |
setRotationZ(double value)
Set Z rotation angle (radian)
|
void |
setScale(DimensionId dim,
double value)
Set scale factor for specified dimension
|
void |
setScaleC(double value)
Set scale factor C
|
void |
setScaleT(double value)
Set scale factor T
|
void |
setScaleX(double value)
Set scale factor X
|
void |
setScaleY(double value)
Set scale factor Y
|
void |
setScaleZ(double value)
Set scale factor Z
|
boolean |
setSyncId(int id)
Set the synchronization group id (0 means unsynchronized).
|
void |
setT(int t)
Deprecated.
uses setPositionT(int) instead
|
void |
setZ(int z)
Deprecated.
uses setPositionZ(int) instead
|
void |
shutDown()
Called by the viewer when canvas is closed to release some resources.
|
void |
viewerChanged(ViewerEvent event) |
void |
viewerClosed(Viewer viewer) |
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String PROPERTY_LAYERS_VISIBLE
public static java.util.List<PluginDescriptor> getCanvasPlugins()
PluginCanvas
plugins (kernel plugin are returned first).public static java.util.List<java.lang.String> getCanvasPluginNames()
PluginCanvas
plugins class name (kernel plugin are returned first).public static java.lang.String getPluginClassName(java.lang.String canvasClassName)
null
if we can't find a corresponding plugin.public static java.lang.String getCanvasClassName(PluginDescriptor plugin)
PluginCanvas
plugin.null
if we can't retrieve the corresponding canvas class name.public static java.lang.String getCanvasClassName(java.lang.String pluginClassName)
PluginCanvas
class name. null
if we can't find retrieve the corresponding canvas class name.public static IcyCanvas create(java.lang.String className, Viewer viewer) throws java.lang.ClassCastException, java.lang.Exception
IcyCanvas
object from its class name or PluginCanvas
class name.viewer
- Viewer
to which to canvas is attached.java.lang.ClassCastException
- if the specified class name is not a canvas plugin or canvas class namejava.lang.Exception
- if the specified canvas cannot be created for some reasonspublic static void addVisibleLayerToList(Layer layer, java.util.ArrayList<Layer> list)
public void shutDown()
shutdown
is called
after the creation of the other canvas.public abstract void refresh()
public Overlay getImageOverlay()
Overlay
used to display the current sequence imagepublic Layer getImageLayer()
Layer
object used to display the current sequence image@Deprecated public boolean getDrawLayers()
isLayersVisible()
instead.@Deprecated public void setDrawLayers(boolean value)
setLayersVisible(boolean)
instead.public boolean isLayersVisible()
public void setLayersVisible(boolean value)
public Sequence getSequence()
public abstract java.awt.Component getViewComponent()
public ZNavigationPanel getZNavigationPanel()
public TNavigationPanel getTNavigationPanel()
public MouseImageInfosPanel getMouseImageInfosPanel()
@Deprecated public void addViewerToolbarComponents(javax.swing.JToolBar toolBar)
customizeToolbar(JToolBar)
instead.public void customizeToolbar(javax.swing.JToolBar toolBar)
toolBar
- the parent toolbar to customizepublic javax.swing.JPanel getPanel()
public java.util.List<Layer> getLayers(boolean sorted)
sorted
- If true
the returned list is sorted on the layer priority.public java.util.List<Layer> getLayers()
public java.util.List<Layer> getVisibleLayers(boolean sorted)
true
) attached to this
canvas.sorted
- If true
the returned list is sorted on the layer priority.public java.util.ArrayList<Layer> getVisibleLayers()
true
) attached to this
canvas.@Deprecated public java.util.List<Layer> getOrderedLayersForEvent()
getLayers()
instead (sorted on Layer priority).@Deprecated public java.util.List<Layer> getVisibleOrderedLayersForEvent()
getVisibleLayers()
instead (sorted on Layer priority).@Deprecated public java.util.List<Painter> getLayersPainter()
getOverlays()
instead.public java.util.Set<Overlay> getOverlays()
Set
of all Overlay displayed by this canvas.public int getSyncId()
public boolean setSyncId(int id)
id
- the syncId to setfalse
if the canvas do not support synchronization group.public boolean isSynchronizationSupported()
public boolean isSynchronized()
public boolean isSynchMaster()
@Deprecated public boolean isSynchHeader()
isSynchMaster()
instead.public boolean isSynchSlave()
public boolean isSynchOnView()
public boolean isSynchOnSlice()
public boolean isSynchOnCursor()
public int getPosition(DimensionId dim)
public int getPositionX()
public int getPositionY()
public int getPositionZ()
public int getPositionT()
public int getPositionC()
public Point5D.Integer getPosition5D()
@Deprecated public int getZ()
@Deprecated public int getT()
@Deprecated public int getC()
public double getMaxPosition(DimensionId dim)
public int getMaxPositionX()
public int getMaxPositionY()
public int getMaxPositionZ()
public int getMaxPositionT()
public int getMaxPositionC()
public Point5D.Integer getMaxPosition5D()
getPosition5D()
@Deprecated public double getMax(DimensionId dim)
getMaxPosition(DimensionId)
instead@Deprecated public int getMaxX()
getMaxPositionX()
instead@Deprecated public int getMaxY()
getMaxPositionY()
instead@Deprecated public int getMaxZ()
getMaxPositionZ()
instead@Deprecated public int getMaxT()
getMaxPositionT()
instead@Deprecated public int getMaxC()
getMaxPositionC()
insteadpublic int getCanvasSize(DimensionId dim)
public int getCanvasSizeX()
public int getCanvasSizeY()
public int getCanvasSizeZ()
public int getCanvasSizeT()
public int getCanvasSizeC()
public java.awt.Point getMousePos()
public double getMouseImagePos(DimensionId dim)
public double getMouseImagePosX()
public double getMouseImagePosY()
public double getMouseImagePosZ()
public double getMouseImagePosT()
public double getMouseImagePosC()
public Point5D.Double getMouseImagePos5D()
public int getOffset(DimensionId dim)
public int getOffsetX()
public int getOffsetY()
public int getOffsetZ()
public int getOffsetT()
public int getOffsetC()
public Point5D.Integer getOffset5D()
@Deprecated public int getImageOffsetX()
@Deprecated public int getImageOffsetY()
@Deprecated public int getImageOffsetZ()
@Deprecated public int getImageOffsetT()
@Deprecated public int getImageOffsetC()
@Deprecated public int getCanvasOffsetX()
@Deprecated public int getCanvasOffsetY()
@Deprecated public int getCanvasOffsetZ()
@Deprecated public int getCanvasOffsetT()
@Deprecated public int getCanvasOffsetC()
@Deprecated public double getScaleFactorX()
@Deprecated public double getScaleFactorY()
@Deprecated public double getScaleFactorZ()
@Deprecated public double getScaleFactorT()
@Deprecated public double getScaleFactorC()
public double getScale(DimensionId dim)
public double getScaleX()
public double getScaleY()
public double getScaleZ()
public double getScaleT()
public double getScaleC()
public double getRotation(DimensionId dim)
public double getRotationX()
public double getRotationY()
public double getRotationZ()
public double getRotationT()
public double getRotationC()
public int getImageSize(DimensionId dim)
public int getImageSizeX()
public int getImageSizeY()
public int getImageSizeZ()
public int getImageSizeT()
public int getImageSizeC()
@Deprecated public int getImageCanvasSize(DimensionId dim)
@Deprecated public int getImageCanvasSizeX()
@Deprecated public int getImageCanvasSizeY()
@Deprecated public int getImageCanvasSizeZ()
@Deprecated public int getImageCanvasSizeT()
@Deprecated public int getImageCanvasSizeC()
public void setPosition(DimensionId dim, int value)
@Deprecated public void setZ(int z)
@Deprecated public void setT(int t)
@Deprecated public void setC(int c)
public void setPositionX(int x)
public void setPositionY(int y)
public void setPositionZ(int z)
public void setPositionT(int t)
public void setPositionC(int c)
public boolean setMousePos(int x, int y)
true
if the mouse position actually changed.public void setMousePos(java.awt.Point point)
public void setMouseImagePos(DimensionId dim, double value)
public void setMouseImagePosX(double value)
public void setMouseImagePosY(double value)
public void setMouseImagePosZ(double value)
public void setMouseImagePosT(double value)
public void setMouseImagePosC(double value)
public void setOffset(DimensionId dim, int value)
public void setOffsetX(int value)
public void setOffsetY(int value)
public void setOffsetZ(int value)
public void setOffsetT(int value)
public void setOffsetC(int value)
public void setScale(DimensionId dim, double value)
public void setScaleX(double value)
public void setScaleY(double value)
public void setScaleZ(double value)
public void setScaleT(double value)
public void setScaleC(double value)
public void setRotation(DimensionId dim, double value)
public void setRotationX(double value)
public void setRotationY(double value)
public void setRotationZ(double value)
public void setRotationT(double value)
public void setRotationC(double value)
public void mouseImagePositionChanged(DimensionId dim)
public void offsetChanged(DimensionId dim)
public void scaleChanged(DimensionId dim)
public void rotationChanged(DimensionId dim)
public double canvasToImageDeltaX(int value)
public double canvasToImageDeltaY(int value)
public double canvasToImageDeltaZ(int value)
public double canvasToImageDeltaT(int value)
public double canvasToImageDeltaC(int value)
public double canvasToImageLogDeltaX(int value, double logFactor)
public double canvasToImageLogDeltaX(int value)
public double canvasToImageLogDeltaY(int value, double logFactor)
public double canvasToImageLogDeltaY(int value)
public double canvasToImageLogDeltaZ(int value, double logFactor)
public double canvasToImageLogDeltaZ(int value)
@Deprecated public double canvasToImageX(int value)
@Deprecated public double canvasToImageY(int value)
@Deprecated public double canvasToImageZ(int value)
@Deprecated public double canvasToImageT(int value)
@Deprecated public double canvasToImageC(int value)
public int imageToCanvasDeltaX(double value)
public int imageToCanvasDeltaY(double value)
public int imageToCanvasDeltaZ(double value)
public int imageToCanvasDeltaT(double value)
public int imageToCanvasDeltaC(double value)
@Deprecated public int imageToCanvasX(double value)
@Deprecated public int imageToCanvasY(double value)
@Deprecated public int imageToCanvasZ(double value)
@Deprecated public int imageToCanvasT(double value)
@Deprecated public int imageToCanvasC(double value)
public void mousePressed(java.awt.event.MouseEvent event, Point5D.Double pt)
event
- original mouse eventpt
- mouse image positionpublic void mousePressed(java.awt.event.MouseEvent event)
event
- original mouse eventpublic void mouseReleased(java.awt.event.MouseEvent event, Point5D.Double pt)
event
- original mouse eventpt
- mouse image positionpublic void mouseReleased(java.awt.event.MouseEvent event)
event
- original mouse eventpublic void mouseClick(java.awt.event.MouseEvent event, Point5D.Double pt)
event
- original mouse eventpt
- mouse image positionpublic void mouseClick(java.awt.event.MouseEvent event)
event
- original mouse eventpublic void mouseMove(java.awt.event.MouseEvent event, Point5D.Double pt)
event
- original mouse eventpt
- mouse image positionpublic void mouseMove(java.awt.event.MouseEvent event)
event
- original mouse eventpublic void mouseDrag(java.awt.event.MouseEvent event, Point5D.Double pt)
event
- original mouse eventpt
- mouse image positionpublic void mouseDrag(java.awt.event.MouseEvent event)
event
- original mouse eventpublic void mouseEntered(java.awt.event.MouseEvent event, Point5D.Double pt)
event
- original mouse eventpt
- mouse image positionpublic void mouseEntered(java.awt.event.MouseEvent event)
event
- original mouse eventpublic void mouseExited(java.awt.event.MouseEvent event, Point5D.Double pt)
event
- original mouse eventpt
- mouse image positionpublic void mouseExited(java.awt.event.MouseEvent event)
event
- original mouse eventpublic void mouseWheelMoved(java.awt.event.MouseWheelEvent event, Point5D.Double pt)
event
- original mouse eventpt
- mouse image positionpublic void mouseWheelMoved(java.awt.event.MouseWheelEvent event)
event
- original mouse eventpublic 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 IcyBufferedImage getImage(int t, int z, int c)
@Deprecated public IcyBufferedImage getImage(int t, int z)
getImage(int, int, int)
with C = -1 instead.public IcyBufferedImage getCurrentImage()
@Deprecated public final java.awt.image.BufferedImage getRenderedImage(int t, int z, int c, int imageType, boolean canvasView)
getRenderedImage(int, int, int, boolean)
instead@Deprecated public final Sequence getRenderedSequence(int imageType, boolean canvasView)
getRenderedSequence(boolean)
insteadpublic abstract java.awt.image.BufferedImage getRenderedImage(int t, int z, int c, boolean canvasView)
t
- T position of wanted image (-1 for complete sequence)z
- Z position of wanted image (-1 for complete stack)c
- C position of wanted image (-1 for all channels)canvasView
- render with canvas view if true else use default sequence dimension@Deprecated public java.awt.image.BufferedImage getRenderedImage(int t, int z, int c)
getRenderedImage(int, int, int, boolean)
instead.public Sequence getRenderedSequence(boolean canvasView, ProgressListener progressListener)
canvasView
- render with canvas view if true else use default sequence dimensionprogressListener
- progress listener which receive notifications about progression@Deprecated public Sequence getRenderedSequence(boolean canvasView)
getRenderedSequence(boolean, ProgressListener)
instead.@Deprecated public Sequence getRenderedSequence()
getRenderedSequence(boolean, ProgressListener)
instead.public int getNumSelectedSamples()
public int getFrameRate()
public void setFrameRate(int fps)
@Deprecated public Layer getLayer(Painter painter)
getLayer(Overlay)
instead.public Layer getLayer(Overlay overlay)
public Layer getLayer(ROI roi)
@Deprecated public boolean hasLayer(Painter painter)
hasLayer(Overlay)
instead.public boolean hasLayer(Overlay overlay)
Overlay
.@Deprecated public void addLayer(Painter painter)
addLayer(Overlay)
instead.@Deprecated public void removeLayer(Painter painter)
removeLayer(Overlay)
instead.public boolean removeLayer(Overlay overlay)
public void removeLayer(Layer layer)
public boolean isVisible(Overlay overlay)
true
if the specified overlay is visible in the canvas.@Deprecated public void addLayersListener(CanvasLayerListener listener)
addLayerListener(CanvasLayerListener)
instead.@Deprecated public void removeLayersListener(CanvasLayerListener listener)
removeLayerListener(CanvasLayerListener)
instead.public java.util.List<CanvasLayerListener> getLayerListeners()
public void addLayerListener(CanvasLayerListener listener)
listener
- public void removeLayerListener(CanvasLayerListener listener)
listener
- public java.util.List<IcyCanvasListener> getListeners()
public void addCanvasListener(IcyCanvasListener listener)
listener
- public void removeCanvasListener(IcyCanvasListener listener)
listener
- public void beginUpdate()
public void endUpdate()
public boolean isUpdating()
public void layerChanged(Layer layer, java.lang.String propertyName)
layerChanged
in interface Layer.LayerListener
public void changed(IcyCanvasEvent event)
public void lutChanged(LUTEvent event)
lutChanged
in interface LUTListener
public void viewerChanged(ViewerEvent event)
viewerChanged
in interface ViewerListener
public void viewerClosed(Viewer viewer)
viewerClosed
in interface ViewerListener
public final void sequenceChanged(SequenceEvent event)
SequenceListener
sequenceChanged
in interface SequenceListener
public void sequenceClosed(Sequence sequence)
SequenceListener
sequenceClosed
in interface SequenceListener
public void onChanged(CollapsibleEvent event)
ChangeListener
onChanged
in interface ChangeListener