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<ARGBType> f)
Set the factory for creating
AccumulateProjector . |
ViewerOptions |
height(int h)
Set height of
ViewerPanel canvas. |
ViewerOptions |
inputTriggerConfig(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 |
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(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.MultiResolutionRenderer
public ViewerOptions targetRenderNanos(long t)
t
- Target rendering time in nanoseconds. The rendering time for
the coarsest rendered scale should be below this threshold.MultiResolutionRenderer
public ViewerOptions numRenderingThreads(int n)
n
- How many threads to use for rendering.MultiResolutionRenderer
public 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.MultiResolutionRenderer
public 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<ARGBType> f)
AccumulateProjector
. This can be
used to customize how sources are combined.f
- factory for creating AccumulateProjector
.MultiResolutionRenderer
public ViewerOptions inputTriggerConfig(InputTriggerConfig c)
InputTriggerConfig
from which keyboard and mouse action mapping is loaded.c
- the InputTriggerConfig
from which keyboard and mouse action mapping is loadedpublic ViewerOptions shareKeyPressedEvents(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
- Copyright © 2015–2021 Fiji. All rights reserved.