Modifier and Type | Field and Description |
---|---|
protected JFileChooser |
imageBox
File chooser for snapshot output.
|
protected JFileChooser |
movieBox
File chooser for movie output.
|
protected int |
movieFPS
Movie frames per second.
|
protected boolean |
movieSmooth
Whether transitions use a smoothing sine function.
|
protected int |
movieSpeed
Movie speed.
|
protected CapturePanel |
panel
GUI controls for capture handler.
|
protected Vector |
positions
List of positions.
|
protected DisplayWindow |
window
Associated display window.
|
Constructor and Description |
---|
CaptureHandler(DisplayWindow dw)
Creates a display capture handler.
|
Modifier and Type | Method and Description |
---|---|
protected BufferedImage |
captureImage(ProjectionControl pc,
double[] mx,
DisplayImpl d)
Takes a snapshot of the given display with the specified projection matrix.
|
void |
captureMovie(Vector matrices,
double secPerTrans,
int framesPerSec,
boolean sine,
boolean movie)
Creates a movie of the given transformation sequence.
|
int |
getFPS()
Gets movie frames per second.
|
CapturePanel |
getPanel()
Gets GUI controls for this capture handler.
|
Vector |
getPositions()
Gets positions on the list.
|
BufferedImage |
getSnapshot()
Gets a snapshot of the display.
|
int |
getSpeed()
Gets movie speed.
|
DisplayWindow |
getWindow()
Gets associated display window.
|
void |
initState(CaptureHandler handler)
Modifies this object's state to match that of the given object.
|
boolean |
isSmooth()
Gets whether transitions use a smoothing sine function.
|
boolean |
matches(CaptureHandler handler)
Tests whether two objects are in equivalent states.
|
void |
restoreState(Element el)
Restores the current state from the given DOM element ("Display").
|
void |
saveSnapshot()
Saves a snapshot of the display to a file specified by the user.
|
void |
saveState(Element el)
Writes the current state to the given DOM element ("Display").
|
void |
sendToImageJ()
Sends a snapshot of the display to ImageJ.
|
protected void |
setProgress(int percent,
String message)
Sets capture panel's progress bar percentage value and message.
|
protected static double |
sine(double x)
Evaluates a smooth sine function at the given value.
|
protected DisplayWindow window
protected CapturePanel panel
protected JFileChooser imageBox
protected JFileChooser movieBox
protected Vector positions
protected int movieSpeed
protected int movieFPS
protected boolean movieSmooth
public CaptureHandler(DisplayWindow dw)
public Vector getPositions()
public int getSpeed()
public int getFPS()
public boolean isSmooth()
public DisplayWindow getWindow()
public CapturePanel getPanel()
public BufferedImage getSnapshot()
public void saveSnapshot()
public void sendToImageJ()
public void captureMovie(Vector matrices, double secPerTrans, int framesPerSec, boolean sine, boolean movie)
public boolean matches(CaptureHandler handler)
public void initState(CaptureHandler handler)
public void saveState(Element el) throws SaveException
saveState
in interface Saveable
SaveException
public void restoreState(Element el) throws SaveException
restoreState
in interface Saveable
SaveException
protected BufferedImage captureImage(ProjectionControl pc, double[] mx, DisplayImpl d)
protected void setProgress(int percent, String message)
protected static double sine(double x)
Copyright © 2015–2022 SciJava. All rights reserved.