public class BigWarpViewerPanel extends ViewerPanel
ViewerPanel.AlignPlane, ViewerPanel.MouseCoordinateListener, ViewerPanel.RenderThreadFactory
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected boolean |
boxOverlayVisible |
protected BigWarpDragOverlay |
dragOverlay |
protected boolean |
isMoving |
protected MessageOverlayAnimator |
message |
static int |
MOVING_GROUP_INDEX |
protected int[] |
movingSourceIndexList |
protected int |
ndims |
protected ArrayList<AffineTransform3D> |
orthoTransforms |
protected BigWarpOverlay |
overlay |
static double |
R2o2 |
protected List<SourceAndConverter<?>> |
sources |
static int |
TARGET_GROUP_INDEX |
protected int[] |
targetSourceIndexList |
protected boolean |
textOverlayVisible |
protected boolean |
transformEnabled |
protected boolean |
updateOnDrag |
protected BigWarpViewerSettings |
viewerSettings |
currentAnimator, display, imageRenderer, interpolationModeListeners, mouseCoordinates, msgOverlay, multiBoxOverlayRenderer, overlayAnimators, painterThread, panelNumber, renderingExecutorService, renderTarget, scaleBarOverlayRenderer, sliderTime, sourceInfoOverlayRenderer, state, threadGroup, timePointListeners, transformListeners, visibilityAndGrouping
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
BigWarpViewerPanel(List<SourceAndConverter<?>> sources,
BigWarpViewerSettings viewerSettings,
CacheControl cache,
BigWarpViewerOptions optional,
boolean isMoving,
int[] movingSourceIndexList,
int[] targetSourceIndexList) |
BigWarpViewerPanel(List<SourceAndConverter<?>> sources,
BigWarpViewerSettings viewerSettings,
CacheControl cache,
boolean isMoving,
int[] movingSourceIndexList,
int[] targetSourceIndexList) |
Modifier and Type | Method and Description |
---|---|
void |
addDragOverlay(BigWarpDragOverlay dragOverlay) |
void |
addOverlay(BigWarpOverlay overlay) |
void |
align(ViewerPanel.AlignPlane plane)
Align the XY, ZY, or XZ plane of the local coordinate system of the
currently active source with the viewer coordinate system.
|
void |
animateTransformation(AffineTransform3D destinationXfm) |
void |
animateTransformation(AffineTransform3D destinationXfm,
int millis) |
void |
displayViewerTransforms() |
boolean |
doUpdateOnDrag() |
void |
drawOverlays(Graphics g)
Render overlays.
|
BigWarpDragOverlay |
getDragOverlay() |
boolean |
getIsMoving() |
ViewerOptions.Values |
getOptionValues() |
BigWarpOverlay |
getOverlay() |
BigWarpViewerSettings |
getSettings() |
boolean |
getTransformEnabled() |
boolean |
isInFixedImageSpace() |
void |
precomputeRotations2d(AffineTransform3D initialViewTransform) |
void |
rotateView2d(boolean isClockwise) |
void |
setHoveredIndex(int index) |
void |
setNumDim(int ndim) |
void |
setTransformEnabled(boolean enabled) |
void |
setUpdateOnDrag(boolean updateOnDrag) |
void |
showMessage(String msg)
Display the specified message in a text overlay for a short time.
|
void |
toggleBoxOverlayVisible() |
void |
toggleTextOverlayVisible() |
void |
toggleUpdateOnDrag() |
int |
updateGrouping()
Makes the first group contain all the moving images and the second group
contain all the fixed images
|
addGroup, addInterpolationModeListener, addOverlayAnimator, addRenderTransformListener, addRenderTransformListener, addSource, addSources, addTimePointListener, addTimePointListener, addTransformListener, addTransformListener, displayToGlobalCoordinates, displayToGlobalCoordinates, displayToGlobalCoordinates, getDisplay, getGlobalMouseCoordinates, getMouseCoordinates, getSourceInfoOverlayRenderer, getState, getTransformEventHandler, getVisibilityAndGrouping, nextTimePoint, paint, previousTimePoint, removeAllSources, removeGroup, removeInterpolationModeListener, removeSource, removeSources, removeTimePointListener, removeTransformListener, renderTransformListeners, requestFocusInWindow, requestRepaint, requestRepaint, setCanvasSize, setCurrentViewerTransform, setDisplayMode, setInterpolation, setNumTimepoints, setTimepoint, setTransformAnimator, state, stateFromXml, stateToXml, stop, toggleInterpolation, viewerStateChanged
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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 int MOVING_GROUP_INDEX
public static final int TARGET_GROUP_INDEX
protected List<SourceAndConverter<?>> sources
protected BigWarpViewerSettings viewerSettings
protected BigWarpOverlay overlay
protected BigWarpDragOverlay dragOverlay
protected final MessageOverlayAnimator message
protected boolean isMoving
protected boolean updateOnDrag
protected boolean transformEnabled
protected int ndims
protected final int[] movingSourceIndexList
protected final int[] targetSourceIndexList
protected boolean boxOverlayVisible
protected boolean textOverlayVisible
protected ArrayList<AffineTransform3D> orthoTransforms
public static final double R2o2
public BigWarpViewerPanel(List<SourceAndConverter<?>> sources, BigWarpViewerSettings viewerSettings, CacheControl cache, boolean isMoving, int[] movingSourceIndexList, int[] targetSourceIndexList)
public BigWarpViewerPanel(List<SourceAndConverter<?>> sources, BigWarpViewerSettings viewerSettings, CacheControl cache, BigWarpViewerOptions optional, boolean isMoving, int[] movingSourceIndexList, int[] targetSourceIndexList)
public ViewerOptions.Values getOptionValues()
getOptionValues
in class ViewerPanel
public void precomputeRotations2d(AffineTransform3D initialViewTransform)
public void toggleTextOverlayVisible()
public void toggleBoxOverlayVisible()
public void showMessage(String msg)
ViewerPanel
showMessage
in class ViewerPanel
msg
- String to display. Should be just one line of text.public void setHoveredIndex(int index)
public int updateGrouping()
public boolean isInFixedImageSpace()
public boolean doUpdateOnDrag()
public void setUpdateOnDrag(boolean updateOnDrag)
public void toggleUpdateOnDrag()
public void addOverlay(BigWarpOverlay overlay)
public BigWarpOverlay getOverlay()
public void addDragOverlay(BigWarpDragOverlay dragOverlay)
public BigWarpDragOverlay getDragOverlay()
public boolean getIsMoving()
public void setNumDim(int ndim)
public void drawOverlays(Graphics g)
OverlayRenderer
drawOverlays
in interface OverlayRenderer
drawOverlays
in class ViewerPanel
public BigWarpViewerSettings getSettings()
public void displayViewerTransforms()
public void rotateView2d(boolean isClockwise)
public void align(ViewerPanel.AlignPlane plane)
ViewerPanel
align
in class ViewerPanel
plane
- to which plane to align.public void animateTransformation(AffineTransform3D destinationXfm, int millis)
public void animateTransformation(AffineTransform3D destinationXfm)
public void setTransformEnabled(boolean enabled)
public boolean getTransformEnabled()
Copyright © 2015–2021 Fiji. All rights reserved.