public class ViewerOptions extends Object
ViewerPanel.| Modifier and Type | Class and Description |
|---|---|
static class |
ViewerOptions.Values
Read-only
ViewerOptions values. |
| Modifier and Type | Field and Description |
|---|---|
ViewerOptions.Values |
values |
| Constructor and Description |
|---|
ViewerOptions() |
| Modifier and Type | Method and Description |
|---|---|
ViewerOptions |
accumulateProjectorFactory(AccumulateProjectorFactory<net.imglib2.type.numeric.ARGBType> f)
Set the factory for creating
AccumulateProjector. |
ViewerOptions |
appearanceManager(AppearanceManager appearanceManager)
Set the
AppearanceManager to share appearance settings with other
BigDataViewer windows. |
ViewerOptions |
height(int h)
Set height of
ViewerPanel canvas. |
ViewerOptions |
inputTriggerConfig(org.scijava.ui.behaviour.io.InputTriggerConfig c)
Set the
InputTriggerConfig from which keyboard and mouse action mapping is loaded. |
ViewerOptions |
is2D(boolean is2D)
Set up the BigDataViewer for 2D navigation.
|
ViewerOptions |
keymapManager(KeymapManager keymapManager)
Set the
KeymapManager to share keymap settings with other
BigDataViewer windows. |
ViewerOptions |
msgOverlay(MessageOverlayAnimator o) |
ViewerOptions |
numRenderingThreads(int n)
Set how many threads to use for rendering.
|
ViewerOptions |
numSourceGroups(int n)
Set how many source groups there are initially.
|
static ViewerOptions |
options()
Create default
ViewerOptions. |
ViewerOptions |
screenScales(double[] s)
Set the number and scale factors for scaled screen images.
|
ViewerOptions |
shareKeyPressedEvents(org.scijava.ui.behaviour.KeyPressedManager manager)
Set the
KeyPressedManager to share
KeyListener.keyPressed(java.awt.event.KeyEvent) events with other
ui-behaviour windows. |
ViewerOptions |
targetRenderNanos(long t)
Set target rendering time in nanoseconds.
|
ViewerOptions |
transformEventHandlerFactory(TransformEventHandlerFactory f) |
ViewerOptions |
useVolatileIfAvailable(boolean v)
Set whether volatile versions of sources should be used if available.
|
ViewerOptions |
width(int w)
Set width of
ViewerPanel canvas. |
public final ViewerOptions.Values values
public static ViewerOptions options()
ViewerOptions.ViewerOptions.public ViewerOptions width(int w)
ViewerPanel canvas.public ViewerOptions height(int h)
ViewerPanel canvas.public ViewerOptions screenScales(double[] s)
s - Scale factors from the viewer canvas to screen images of
different resolutions. A scale factor of 1 means 1 pixel in
the screen image is displayed as 1 pixel on the canvas, a
scale factor of 0.5 means 1 pixel in the screen image is
displayed as 2 pixel on the canvas, etc.MultiResolutionRendererpublic ViewerOptions targetRenderNanos(long t)
t - Target rendering time in nanoseconds. The rendering time for
the coarsest rendered scale should be below this threshold.MultiResolutionRendererpublic ViewerOptions numRenderingThreads(int n)
n - How many threads to use for rendering.MultiResolutionRendererpublic ViewerOptions numSourceGroups(int n)
n - How many source groups to create initially.public ViewerOptions useVolatileIfAvailable(boolean v)
v - whether volatile versions of sources should be used if
available.MultiResolutionRendererpublic ViewerOptions msgOverlay(MessageOverlayAnimator o)
public ViewerOptions transformEventHandlerFactory(TransformEventHandlerFactory f)
public ViewerOptions is2D(boolean is2D)
is2D - whether to restrict navigation to 2D (default is false).public ViewerOptions accumulateProjectorFactory(AccumulateProjectorFactory<net.imglib2.type.numeric.ARGBType> f)
AccumulateProjector. This can be
used to customize how sources are combined.f - factory for creating AccumulateProjector.MultiResolutionRendererpublic ViewerOptions inputTriggerConfig(org.scijava.ui.behaviour.io.InputTriggerConfig c)
InputTriggerConfig from which keyboard and mouse action mapping is loaded.
Note that this will override the managed InputTriggerConfig, that is,
modifying the keymap through the preferences dialog will have no effect.
c - the InputTriggerConfig from which keyboard and mouse action mapping is loadedpublic ViewerOptions shareKeyPressedEvents(org.scijava.ui.behaviour.KeyPressedManager manager)
KeyPressedManager to share
KeyListener.keyPressed(java.awt.event.KeyEvent) events with other
ui-behaviour windows.
The goal is to make keyboard click/drag behaviours work like mouse click/drag: When a behaviour is initiated with a key press, the window under the mouse receives focus and the behaviour is handled there.
manager - public ViewerOptions keymapManager(KeymapManager keymapManager)
KeymapManager to share keymap settings with other
BigDataViewer windows.
This can be used to link multiple BigDataViewer windows such that they
use (and modify) the same Keymap, shortcuts and mouse gestures.
public ViewerOptions appearanceManager(AppearanceManager appearanceManager)
AppearanceManager to share appearance settings with other
BigDataViewer windows.
This can be used to link multiple BigDataViewer windows such that they
use (and modify) the same Appearance settings, e.g., LookAndFeel,
scalebar overlay settings, etc.
Copyright © 2012–2025 BigDataViewer. All rights reserved.