public abstract class DisplayMaster
extends java.lang.Object
DisplayImpl
and a list of Displayable
s.
Instances of this class have the following bound properties:
Name | Type | Access | Default | Description |
---|---|---|---|---|
pointMode | boolean | set/is | false |
Whether or not the VisAD display associated with this instance displays 1-D manifold data as points or lines. |
Modifier and Type | Field and Description |
---|---|
protected visad.KeyboardBehavior |
behavior
The keyboard behavior
|
static int[][][] |
defaultMouseFunctions
The default mouse function map
|
static LogUtil.LogCategory |
log_
Use this member to log messages (through calls to LogUtil)
|
static java.lang.String |
POINT_MODE
The name of the "point mode" property.
|
Constructor and Description |
---|
DisplayMaster()
Parameterless ctor.
|
DisplayMaster(visad.DisplayImpl display)
Constructs from a Display.
|
DisplayMaster(visad.DisplayImpl display,
int initialCapacity)
Constructs from a VisAD display and an anticipated number of
Displayable s. |
DisplayMaster(visad.DisplayImpl display,
int initialCapacity,
java.awt.Dimension offscreenDimension)
Constructs from a VisAD display and an anticipated number of
Displayable s. |
Modifier and Type | Method and Description |
---|---|
void |
addDisplayable(Displayable displayable)
Adds a Displayable to the Displayable-s managed by this instance.
|
void |
addDisplayListener(visad.DisplayListener listener)
Adds a VisAD
DisplayListener to this instance's Display . |
void |
addKeyboardBehavior(visad.KeyboardBehavior behavior)
Adds a
KeyboardBehavior to the display that this
DisplayMaster manages. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener.
|
void |
addPropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Adds a named PropertyChangeListener.
|
protected void |
addScalarMap(visad.ScalarMap map)
Adds a
ScalarMap to this instance. |
protected void |
addScalarMaps(ScalarMapSet mapSet)
Adds
ScalarMap s to this instance. |
void |
addVetoableChangeListener(java.lang.String name,
java.beans.VetoableChangeListener listener)
Adds a named VetoableChangeListener.
|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds a VetoableChangeListener.
|
protected visad.Set |
buildAnimationSet()
Build the animation set
|
protected void |
dataChange()
Handles a change to the data in the displayables.
|
void |
destroy()
Destroys this instance, releasing any resources.
|
void |
draw()
Causes the Displayable-s managed by this instance to be rendered to the
VisAD display.
|
boolean |
ensureInactive()
Deprecated.
This will become private in the future. You should use
setDisplayInactive() and setDisplayActive() |
boolean |
equals(java.lang.Object obj)
Indicates if this instance if semantically identical to another object.
|
protected void |
finalize()
Finalizes this instance.
|
protected void |
firePropertyChange(java.beans.PropertyChangeEvent event)
Fires a PropertyChangeEvent.
|
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires a PropertyChangeEvent.
|
protected visad.Set |
getAnimationSetFromDisplayables()
Collect the animation set that is the union of all data
|
boolean |
getAnimationStringVisible()
Return whether the animation string is visible or not
|
java.awt.Color |
getBackground()
Returns the background color being used
|
java.awt.Component |
getComponent()
Gets the associated AWT Component.
|
boolean |
getDestroyed()
_more_
|
visad.LocalDisplay |
getDisplay()
Returns the associated VisAD display.
|
int |
getDisplayableCount()
Returns the number of Displayable-s.
|
Displayable[] |
getDisplayables()
Returns the
Displayable s of this instance as an array. |
Displayable |
getDisplayables(int index)
Returns the
Displayable at a given position in the list of
Displayable s. |
double[] |
getDisplayAspect()
Gets the current display aspect.
|
java.awt.Component |
getDisplayComponent()
Returns the component of the display.
|
float |
getDisplayScale()
Get the scaling factor for probes and such.
|
java.awt.Color |
getForeground()
Returns the foreground color being used for the cursor and box
|
java.awt.image.BufferedImage |
getImage(boolean doSync)
Get a buffered image of the Display
|
visad.MouseBehavior |
getMouseBehavior()
Get the current mouse behavior
|
int[][][] |
getMouseFunctionMap()
mouse function map
|
protected java.awt.Dimension |
getOffscreenDimension()
Get the off screen dimension
|
double[] |
getProjectionMatrix()
Gets the current display projection.
|
double[] |
getRotation()
_more_
|
double[] |
getSavedProjectionMatrix()
Returns the saved projection Matrix.
|
double |
getScale()
_more_
|
java.awt.Rectangle |
getScreenBounds()
Helper to get the screen bounds
|
boolean |
getStereoAvailable()
Determine if this MapDisplay can do stereo.
|
boolean |
getWaitMessageVisible()
Get the state of the "Please wait.." string visibility.
|
protected void |
handleMouseWheelMoved(java.awt.event.MouseWheelEvent e)
Handle when the mouse scroll wheel has been moved
|
int |
hashCode()
Gets the hash-code of this instance.
|
int |
indexOf(Displayable displayable)
Returns the index of a particular
Displayable . |
void |
init(visad.DisplayImpl display,
int initialCapacity)
Initialize this display master
|
protected boolean |
is3D()
Are we in 3D.
|
boolean |
isActive()
Indicates if this instance is active (i.e will immediately rebuild the
display when appropriate).
|
boolean |
isPointMode()
Gets the point-mode of the VisAD display.
|
void |
printMatrix(java.lang.String name,
double[] matrix)
Print out the matrix.
|
void |
printMe()
Print out a message
|
protected void |
rebuild()
Rebuild the display when needed.
|
void |
rebuildDisplay()
Rebuilds the display if appropriate.
|
protected void |
reDisplayAll()
Tells the Display to retransform all data objects.
|
boolean |
removeDisplayable(Displayable displayable)
Removes a Displayable from this instance.
|
void |
removeDisplayables()
Removes all Displayables from this instance.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener.
|
void |
removePropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Removes a named PropertyChangeListener.
|
protected boolean |
removeScalarMap(visad.ScalarMap map)
Removes a
ScalarMap from this instance. |
protected void |
removeScalarMaps(ScalarMapSet mapSet)
Removes given
ScalarMap s from this instance. |
void |
removeVetoableChangeListener(java.lang.String name,
java.beans.VetoableChangeListener listener)
Removes a named VetoableChangeListener.
|
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes a VetoableChangeListener.
|
protected void |
replaceScalarMap(visad.ScalarMap oldMap,
visad.ScalarMap newMap)
Replaces a
ScalarMap in this instance. |
void |
reScale()
Autoscale the axes of the display that have not had a range
set on them.
|
void |
resetClipDistance(double scale) |
void |
resetMouseFunctions()
Reset the mouse functions to the default.
|
void |
resetProjection()
Restores to projection at time of last
saveProjection()
call -- if one was made -- or to initial projection otherwise. |
void |
rotate(double anglex,
double angley,
double anglez)
rotate some angle
|
void |
rotateX(double angle)
rotate some angle
|
void |
rotateY(double angle)
rotate some angle
|
void |
rotateZ(double angle)
rotate some angle
|
void |
saveCurrentDisplay(java.io.File toFile)
Capture the display's current image and save it to a file as
an image (e.g., JPEG, png).
|
void |
saveCurrentDisplay(java.io.File toFile,
boolean doSync,
boolean block)
Capture the display's current image and save it to a file as an image
(eg, JPEG, png).
|
void |
saveCurrentDisplay(java.io.File toFile,
boolean doSync,
boolean block,
float quality)
Capture the display's current image and save it to a file as an image
(eg, JPEG, png).
|
void |
saveProjection()
Saves the current display projection.
|
void |
setActive(boolean newActiveValue)
Deprecated.
This will become private in the future. You should use
setDisplayInactive() and setDisplayActive() |
void |
setAnimation(Animation animation,
AnimationWidget animationWidget)
Set the Animation for this DisplayMaster
|
void |
setAnimationStringVisible(boolean visible)
Toggle the animation string visibility.
|
void |
setBackground(java.awt.Color color)
Sets the background color of this VisAD display.
|
static void |
setDefaultMouseFunctions(visad.DisplayImpl display)
A general utility method that sets the default mouse functions
on the given display.
|
void |
setDisplayables(Displayable[] displayables)
Sets the
Displayable s managed by this instance. |
void |
setDisplayables(int index,
Displayable displayable)
Sets the Displayable managed by this instance at a given point in the
list of Displayable-s.
|
void |
setDisplayActive()
Activate the display if there is one or fewer pending inactive calls
|
void |
setDisplayAspect(double[] newAspect)
Sets the display aspect ratio.
|
void |
setDisplayInactive()
Sets this instance inactive (ie: that it will not
automatically rebuild the display when appropriate).
|
void |
setEyePosition(double position)
Set the eye position of each eye for a stereo view.
|
void |
setForeground(java.awt.Color color)
Sets the "foreground" color of this VisAD display
|
protected void |
setKeyboardBehavior(visad.KeyboardBehavior behavior)
Set the keyboard behavior to use
|
void |
setKeyboardEventMap(int[][] map)
Set the key to function map on the current keyboard behavior
|
static void |
setKeyboardEventMap(int[][] map,
visad.KeyboardBehavior behavior)
Set the key to function map on the given behavior
|
void |
setMouseFunctions(int[][][] map)
Set the mouse functions for this display.
|
protected void |
setOffscreenDimension(java.awt.Dimension dim)
For offscreen rendering
|
void |
setPointMode(boolean usePoints)
Sets the point-mode of the VisAD display.
|
void |
setProjectionMatrix(double[] newMatrix)
Sets the current display projection.
|
void |
setRebuildNecessary()
Deprecated.
|
void |
setWaitMessageVisible(boolean visible)
Toggle the "Please wait.." string visibility.
|
void |
setWheelEventMap(int[][] map)
Set the mapping between mouse wheel event and function
|
void |
translate(double xFactor,
double yFactor)
Translate (X,Y position) of the display
|
void |
zoom(double factor)
Zoom in on the display
|
void |
zoom(double xfactor,
double yfactor,
double zfactor)
Zoom in on the display
|
public static LogUtil.LogCategory log_
public static java.lang.String POINT_MODE
protected visad.KeyboardBehavior behavior
public static final int[][][] defaultMouseFunctions
public DisplayMaster()
public DisplayMaster(visad.DisplayImpl display) throws visad.VisADException, java.rmi.RemoteException
display
- The VisAD display.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public DisplayMaster(visad.DisplayImpl display, int initialCapacity) throws visad.VisADException, java.rmi.RemoteException
Displayable
s.display
- The VisAD display.initialCapacity
- The anticipated number of Displayable-s.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public DisplayMaster(visad.DisplayImpl display, int initialCapacity, java.awt.Dimension offscreenDimension) throws visad.VisADException, java.rmi.RemoteException
Displayable
s.display
- The VisAD display.initialCapacity
- The anticipated number of Displayable-s.offscreenDimension
- Use this to set the dimension of the offscreen componentvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setWheelEventMap(int[][] map)
map
- The mappingpublic void init(visad.DisplayImpl display, int initialCapacity) throws visad.VisADException, java.rmi.RemoteException
display
- The displayinitialCapacity
- Initial capacity of the displayables listjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void setOffscreenDimension(java.awt.Dimension dim)
dim
- The screen dimensionprotected java.awt.Dimension getOffscreenDimension()
public java.awt.Component getDisplayComponent()
public java.awt.Rectangle getScreenBounds()
public boolean getDestroyed()
public void destroy()
super.destroy()
.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
- if an error occurs during finalization.public java.awt.Component getComponent()
protected void reDisplayAll()
public void reScale()
public void rebuildDisplay() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void rebuild() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic void setAnimation(Animation animation, AnimationWidget animationWidget) throws visad.VisADException, java.rmi.RemoteException
animation
- Animation objectanimationWidget
- the associated widgetjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic final visad.LocalDisplay getDisplay()
public final int getDisplayableCount()
public final void addDisplayable(Displayable displayable) throws java.rmi.RemoteException, visad.VisADException
displayable
- The Displayable to be added.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public final void setDisplayables(int index, Displayable displayable) throws visad.VisADException, java.rmi.RemoteException
index
- The position in the list of Displayable-s.displayable
- The Displayable to be in the given position.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public final void setDisplayables(Displayable[] displayables) throws visad.VisADException, java.rmi.RemoteException
Displayable
s managed by this instance.displayables
- The Displayable-s to be managed by this
instance.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public boolean removeDisplayable(Displayable displayable) throws visad.VisADException, java.rmi.RemoteException
removeDataReferences()
method if and only if the
Displayable is in this instance's list of Displayable-s. NOTE: If the
Displayable is in this instance's list of Displayable-s, then this
instance must be active or be made active before the Displayable is
can be successfully added to another display. The display might
be rebuilt or marked for a rebuild.displayable
- The Displayable to be removed.true
if and only if the Displayable
was in this instance's list of Displayable-s.visad.VisADException
- if an error occurs in core VisADjava.rmi.RemoteException
- if a Java RMI failure occurs.Displayable.removeDataReferences()
public void removeDisplayables() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.removeDisplayable(ucar.visad.display.Displayable)
public void setBackground(java.awt.Color color)
color
- a Java Color to become the background color.public java.awt.Color getBackground()
public java.awt.Color getForeground()
public void setForeground(java.awt.Color color)
color
- color to usepublic final Displayable getDisplayables(int index)
Displayable
at a given position in the list of
Displayable
s.index
- The position in the list to get the Displayable.public final Displayable[] getDisplayables()
Displayable
s of this instance as an array.public int indexOf(Displayable displayable)
Displayable
.displayable
- The Displayable to look for.public void setPointMode(boolean usePoints) throws visad.VisADException, java.rmi.RemoteException
usePoints
- True if the display should use points rather
than connected line segments.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public boolean isPointMode()
public void saveProjection()
resetProjection()
.resetProjection()
public void setDisplayAspect(double[] newAspect) throws visad.VisADException, java.rmi.RemoteException
ProjectionControl.setAspect(double[])
.newAspect
- The new aspect ratio.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.protected boolean is3D()
public double[] getDisplayAspect()
public double[] getProjectionMatrix()
ProjectionControl.getMatrix()
is returned.public double getScale()
public double[] getRotation()
public void setProjectionMatrix(double[] newMatrix) throws visad.VisADException, java.rmi.RemoteException
ProjectionControl.setMatrix(double[])
.newMatrix
- The new projection matrix.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public double[] getSavedProjectionMatrix()
ProjectionControl.getSavedProjectionMatrix()
is returned.public void resetProjection() throws visad.VisADException, java.rmi.RemoteException
saveProjection()
call -- if one was made -- or to initial projection otherwise.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.saveProjection()
public void addKeyboardBehavior(visad.KeyboardBehavior behavior)
Adds a KeyboardBehavior
to the display that this
DisplayMaster manages.
This implementation does nothing but check to see if this instance has been destroyed.
behavior
- The keyboard behavior to be added.protected void setKeyboardBehavior(visad.KeyboardBehavior behavior)
behavior
- the keyboard behaviorpublic void setKeyboardEventMap(int[][] map)
map
- the mappublic static void setKeyboardEventMap(int[][] map, visad.KeyboardBehavior behavior)
map
- the mapbehavior
- behavior to setpublic void setMouseFunctions(int[][][] map) throws visad.VisADException
map
- array of mouse functions to buttonsvisad.VisADException
- the VisAD exceptionfor info.
public int[][][] getMouseFunctionMap()
public visad.MouseBehavior getMouseBehavior()
public void rotateX(double angle)
angle
- rotate anglepublic void rotateY(double angle)
angle
- rotate anglepublic void rotateZ(double angle)
angle
- rotate angleprotected void handleMouseWheelMoved(java.awt.event.MouseWheelEvent e)
e
- eventpublic void zoom(double factor)
factor
- zoom factor
( > 1 = zoom in, 1 > zoom > 0 = zoom out). using
2.0 and .5 seems to work well.public void zoom(double xfactor, double yfactor, double zfactor)
xfactor
- x zoom factoryfactor
- y zoom factorzfactor
- z zoom factor
( > 1 = zoom in, 1 > zoom > 0 = zoom out). using
2.0 and .5 seems to work well.public void resetClipDistance(double scale)
public float getDisplayScale()
public void translate(double xFactor, double yFactor)
xFactor
- X translation factoryFactor
- Y translation factorpublic void rotate(double anglex, double angley, double anglez)
anglex
- rotate angleangley
- rotate angleanglez
- rotate anglepublic void resetMouseFunctions() throws visad.VisADException
visad.VisADException
- the VisAD exceptionpublic static void setDefaultMouseFunctions(visad.DisplayImpl display) throws visad.VisADException
display
- Display to set functions forvisad.VisADException
- the VisAD exceptionpublic void setWaitMessageVisible(boolean visible)
visible
- true to make it visiblepublic boolean getWaitMessageVisible()
public void setAnimationStringVisible(boolean visible)
visible
- true to make it visiblepublic boolean getAnimationStringVisible()
public boolean getStereoAvailable()
public void setEyePosition(double position)
position
- x position of each eye (left negative, right positive).public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The VetoableChangeListener to add.public void addVetoableChangeListener(java.lang.String name, java.beans.VetoableChangeListener listener)
name
- The name of the property.listener
- The VetoableChangeListener to add.public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The VetoableChangeListener to be removed.public void removeVetoableChangeListener(java.lang.String name, java.beans.VetoableChangeListener listener)
name
- The name of the property.listener
- The VetoableChangeListener to be removed.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to add.public void addPropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
name
- The name of the property.listener
- The PropertyChangeListener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.public void removePropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
name
- The name of the property.listener
- The PropertyChangeListener to be removed.public void draw() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The other object.true
if and only if this instance is
semantically identical to obj
.public int hashCode()
hashCode
in class java.lang.Object
public void addDisplayListener(visad.DisplayListener listener)
DisplayListener
to this instance's Display
.listener
- The VisAD DisplayListener to be added.protected void firePropertyChange(java.beans.PropertyChangeEvent event)
event
- The PropertyChangeEvent to be fired.protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
propertyName
- The name of the property.oldValue
- The old value of the property.newValue
- The new Value of the property.protected void addScalarMap(visad.ScalarMap map) throws visad.VisADException, java.rmi.RemoteException
Adds a ScalarMap
to this instance. The display might
be rebuilt or marked for a rebuild.
This implementation invokes addScalarMaps(ScalarMapSet)
with
the given ScalarMap
as the only member of the set.
map
- The ScalarMap to add.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void addScalarMaps(ScalarMapSet mapSet) throws visad.VisADException, java.rmi.RemoteException
ScalarMap
s to this instance.mapSet
- The ScalarMap-s to add.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void removeScalarMaps(ScalarMapSet mapSet) throws visad.VisADException, java.rmi.RemoteException
ScalarMap
s from this instance. The display
might be rebuilt or marked for a rebuild.mapSet
- The ScalarMap-s to remove.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected boolean removeScalarMap(visad.ScalarMap map) throws visad.VisADException, java.rmi.RemoteException
ScalarMap
from this instance. The display
might be rebuilt or marked for a rebuild. true
is returned
if and only if the ScalarMap
had been added via a previous
addScalarMap(ScalarMap)
or addScalarMaps(ScalarMapSet)
.map
- The ScalarMap to remove.true
if the ScalarMap existed.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void replaceScalarMap(visad.ScalarMap oldMap, visad.ScalarMap newMap) throws visad.VisADException, java.rmi.RemoteException
ScalarMap
in this instance. The display
might be rebuilt or marked for a rebuild.oldMap
- The ScalarMap to remove.newMap
- The ScalarMap to add.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setRebuildNecessary()
public boolean isActive()
true
if and only if the display
master is active.public void printMe()
public void setDisplayInactive()
This implementation invokes setActive(boolean)
.
public void setDisplayActive() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setActive(boolean newActiveValue) throws java.rmi.RemoteException, visad.VisADException
setDisplayInactive()
and setDisplayActive()
true
and the
display has been marked for a rebuild, then the display will be rebuilt.
This method is idempotent.newActiveValue
- true
will cause an immediate
rebuld if appropriate and ensure future,
automatic rebuilds.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public boolean ensureInactive()
setDisplayInactive()
and setDisplayActive()
This implementation invokes setActive(boolean)
.
public void saveCurrentDisplay(java.io.File toFile)
Capture the display's current image and save it to a file as an image (e.g., JPEG, png). No blocking occurs and the currently rendered display is captured.
This implementation simply calls saveCurrentDisplay(File,
boolean, boolean)
with doSync=false
.
toFile
- The file to which to save the current image.protected visad.Set getAnimationSetFromDisplayables() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- problem computing set from remote data objectsvisad.VisADException
- problem computing set from local Data objectsprotected visad.Set buildAnimationSet() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- problem computing set from remote data objectsvisad.VisADException
- problem computing set from local Data objectsprotected void dataChange() throws visad.VisADException, java.rmi.RemoteException
Handles a change to the data in the displayables.
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void saveCurrentDisplay(java.io.File toFile, boolean doSync, boolean block)
doSync
is true, then the calling
thread will block until rendering is complete.toFile
- The file to which to save the current image.doSync
- Whether or not to wait until the display is stable.block
- Whether or not to wait until the image is saved.public void saveCurrentDisplay(java.io.File toFile, boolean doSync, boolean block, float quality)
doSync
is true, then the calling
thread will block until rendering is complete.toFile
- The file to which to save the current image.doSync
- Whether or not to wait until the display is stable.block
- Whether or not to wait until the image is saved.quality
- JPEG qualitypublic java.awt.image.BufferedImage getImage(boolean doSync) throws java.lang.Exception
doSync
- true to wait until display is donejava.lang.Exception
- problem getting the imagepublic void printMatrix(java.lang.String name, double[] matrix)
name
- the name of the matrixmatrix
- the matrix to print