visad
Interface LocalDisplay

All Superinterfaces:
Action, Display, EventListener, ThingChangedListener
All Known Implementing Classes:
DisplayImpl, DisplayImplJ2D, DisplayImplJ3D

public interface LocalDisplay
extends Display

LocalDisplay is the VisAD interface for local instances of displays. It declares the methods which are used by applications.


Field Summary
 
Fields inherited from interface visad.Display
AdjustProjectionSeam, Alpha, Animation, Blue, CacheAppearances, CMY, ColorMode, components3c, components3s, componentscmy, componentscyl, componentsflow1, componentsflow1s, componentsflow2, componentsflow2s, componentshsv, componentsrgb, componentsso, CurvedSize, Cyan, CylAzimuth, CylRadius, CylZAxis, DisplayCMYCoordSys, DisplayCMYTuple, DisplayCylindricalCoordSys, DisplayFlow1SphericalCoordSys, DisplayFlow1SphericalTuple, DisplayFlow1Tuple, DisplayFlow2SphericalCoordSys, DisplayFlow2SphericalTuple, DisplayFlow2Tuple, DisplayHSVCoordSys, DisplayHSVTuple, DisplayRealArray, DisplayRGBTuple, DisplaySpatialCartesianTuple, DisplaySpatialCylindricalTuple, DisplaySpatialOffsetTuple, DisplaySpatialSphericalTuple, DisplaySphericalCoordSys, Flow1Azimuth, Flow1Elevation, Flow1Radial, Flow1X, Flow1Y, Flow1Z, Flow2Azimuth, Flow2Elevation, Flow2Radial, Flow2X, Flow2Y, Flow2Z, Green, HSV, Hue, IsoContour, Latitude, LineStyle, LineWidth, List, Longitude, Magenta, MergeGeometries, MissingTransparent, PointMode, PointSize, PolygonMode, PolygonOffset, PolygonOffsetFactor, Radius, Red, RGB, RGBA, Saturation, SelectRange, SelectValue, Shape, ShapeScale, Text, Texture3DMode, TextureEnable, Value, XAxis, XAxisOffset, YAxis, YAxisOffset, Yellow, ZAxis, ZAxisOffset
 
Method Summary
 void addActivityHandler(ActivityHandler ah)
          add a display activity handler
 void addDisplayListener(DisplayListener listener)
          add a DisplayListener
 void addMessageListener(MessageListener listener)
          add a MessageListener
 void addReferences(DataRenderer renderer, DataReference[] refs, ConstantMap[][] constant_maps)
          link refs to this Display using the non-default renderer; must be local DataRendererImpls; this method may only be invoked after all links to ScalarMaps have been made; the maps[i] array applies only to rendering refs[i];
 Component getComponent()
          return the java.awt.Component (e.g., JPanel or AppletPanel) this Display uses; returns null for an offscreen Display
 Control getControl(Class c)
          only called for Control objects associated with 'single' DisplayRealType-s
 Control getControl(Class c, int inst)
          find specified occurance for Control object of the specified class
 Vector getControls(Class c)
          find all Control objects of the specified class
 DisplayRenderer getDisplayRenderer()
          return the DisplayRenderer associated with this Display
 GraphicsModeControl getGraphicsModeControl()
          return the GraphicsModeControl associated with this Display
 BufferedImage getImage()
          return a captured image of the display
 Vector getMapVector()
          return a Vector of the ScalarMap-s associated with this Display
 ProjectionControl getProjectionControl()
          return the ProjectionControl associated with this Display
 Vector getRenderers()
          Returns the list of DataRenderer-s.
 Vector getRendererVector()
          Returns a clone of the list of DataRenderer-s.
 Container getWidgetPanel()
          get a GUI component containing this Display's Control widgets, creating the widgets as necessary
 double[] make_matrix(double rotx, double roty, double rotz, double scale, double transx, double transy, double transz)
           
 double[] multiply_matrix(double[] a, double[] b)
           
 void removeActivityHandler(ActivityHandler ah)
          remove a display activity handler
 void removeDisplayListener(DisplayListener listener)
          Removes a DisplayListener.
 void removeMessageListener(MessageListener listener)
          Removes a MessageListener.
 void replaceReferences(RemoteDisplay rDpy, DataRenderer renderer, DataReference[] refs, ConstantMap[][] constant_maps)
          link refs to this Display using the non-default renderer; must be local DataRendererImpls; this method may only be invoked after all links to ScalarMaps have been made; the maps[i] array applies only to rendering refs[i];
 
Methods inherited from interface visad.Display
addMap, addReference, addReferences, addSlave, clearMaps, destroy, getConstantMapVector, hasSlaves, removeAllSlaves, removeMap, removeSlave, sendMessage
 
Methods inherited from interface visad.Action
addReference, getName, removeAllReferences, removeReference
 
Methods inherited from interface visad.ThingChangedListener
thingChanged
 

Method Detail

addActivityHandler

void addActivityHandler(ActivityHandler ah)
                        throws VisADException
add a display activity handler

Throws:
VisADException

removeActivityHandler

void removeActivityHandler(ActivityHandler ah)
                           throws VisADException
remove a display activity handler

Throws:
VisADException

addDisplayListener

void addDisplayListener(DisplayListener listener)
add a DisplayListener


addMessageListener

void addMessageListener(MessageListener listener)
add a MessageListener


replaceReferences

void replaceReferences(RemoteDisplay rDpy,
                       DataRenderer renderer,
                       DataReference[] refs,
                       ConstantMap[][] constant_maps)
                       throws VisADException,
                              RemoteException
link refs to this Display using the non-default renderer; must be local DataRendererImpls; this method may only be invoked after all links to ScalarMaps have been made; the maps[i] array applies only to rendering refs[i];

Throws:
VisADException
RemoteException

addReferences

void addReferences(DataRenderer renderer,
                   DataReference[] refs,
                   ConstantMap[][] constant_maps)
                   throws VisADException,
                          RemoteException
link refs to this Display using the non-default renderer; must be local DataRendererImpls; this method may only be invoked after all links to ScalarMaps have been made; the maps[i] array applies only to rendering refs[i];

Throws:
VisADException
RemoteException

getComponent

Component getComponent()
return the java.awt.Component (e.g., JPanel or AppletPanel) this Display uses; returns null for an offscreen Display


getDisplayRenderer

DisplayRenderer getDisplayRenderer()
return the DisplayRenderer associated with this Display


getRenderers

Vector getRenderers()
Returns the list of DataRenderer-s.

Returns:
The list of DataRenderer-s.

getRendererVector

Vector getRendererVector()
Returns a clone of the list of DataRenderer-s. A clone is returned to avoid concurrent access problems by the Display thread.

Returns:
A clone of the list of DataRenderer-s.

getControl

Control getControl(Class c)
only called for Control objects associated with 'single' DisplayRealType-s


getControl

Control getControl(Class c,
                   int inst)
find specified occurance for Control object of the specified class


getControls

Vector getControls(Class c)
find all Control objects of the specified class


getGraphicsModeControl

GraphicsModeControl getGraphicsModeControl()
return the GraphicsModeControl associated with this Display


getImage

BufferedImage getImage()
return a captured image of the display


getMapVector

Vector getMapVector()
                    throws VisADException,
                           RemoteException
return a Vector of the ScalarMap-s associated with this Display

Throws:
VisADException
RemoteException

getProjectionControl

ProjectionControl getProjectionControl()
return the ProjectionControl associated with this Display


getWidgetPanel

Container getWidgetPanel()
get a GUI component containing this Display's Control widgets, creating the widgets as necessary


make_matrix

double[] make_matrix(double rotx,
                     double roty,
                     double rotz,
                     double scale,
                     double transx,
                     double transy,
                     double transz)

multiply_matrix

double[] multiply_matrix(double[] a,
                         double[] b)

removeDisplayListener

void removeDisplayListener(DisplayListener listener)
Removes a DisplayListener.

Parameters:
listener - The listener to be removed. Nothing happens if the listener isn't registered with this instance.

removeMessageListener

void removeMessageListener(MessageListener listener)
Removes a MessageListener.

Parameters:
listener - The listener to be removed. Nothing happens if the listener isn't registered with this instance.