visad
Interface LocalDisplay
-
- All Superinterfaces:
- Action, Display, java.util.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
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddActivityHandler(ActivityHandler ah)add a display activity handlervoidaddDisplayListener(DisplayListener listener)add a DisplayListenervoidaddMessageListener(MessageListener listener)add a MessageListenervoidaddReferences(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];java.awt.ComponentgetComponent()return the java.awt.Component (e.g., JPanel or AppletPanel) this Display uses; returns null for an offscreen DisplayControlgetControl(java.lang.Class c)only called for Control objects associated with 'single' DisplayRealType-sControlgetControl(java.lang.Class c, int inst)find specified occurance for Control object of the specified classjava.util.VectorgetControls(java.lang.Class c)find all Control objects of the specified classDisplayRenderergetDisplayRenderer()return the DisplayRenderer associated with this DisplayGraphicsModeControlgetGraphicsModeControl()return the GraphicsModeControl associated with this Displayjava.awt.image.BufferedImagegetImage()return a captured image of the displayjava.util.VectorgetMapVector()return a Vector of the ScalarMap-s associated with this DisplayProjectionControlgetProjectionControl()return the ProjectionControl associated with this Displayjava.util.VectorgetRenderers()Returns the list of DataRenderer-s.java.util.VectorgetRendererVector()Returns a clone of the list of DataRenderer-s.java.awt.ContainergetWidgetPanel()get a GUI component containing this Display's Control widgets, creating the widgets as necessarydouble[]make_matrix(double rotx, double roty, double rotz, double scale, double transx, double transy, double transz)double[]multiply_matrix(double[] a, double[] b)voidremoveActivityHandler(ActivityHandler ah)remove a display activity handlervoidremoveDisplayListener(DisplayListener listener)Removes a DisplayListener.voidremoveMessageListener(MessageListener listener)Removes a MessageListener.voidreplaceReferences(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, java.rmi.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:
VisADExceptionjava.rmi.RemoteException
-
addReferences
void addReferences(DataRenderer renderer, DataReference[] refs, ConstantMap[][] constant_maps) throws VisADException, java.rmi.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:
VisADExceptionjava.rmi.RemoteException
-
getComponent
java.awt.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
java.util.Vector getRenderers()
Returns the list of DataRenderer-s.- Returns:
- The list of DataRenderer-s.
-
getRendererVector
java.util.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(java.lang.Class c)
only called for Control objects associated with 'single' DisplayRealType-s
-
getControl
Control getControl(java.lang.Class c, int inst)
find specified occurance for Control object of the specified class
-
getControls
java.util.Vector getControls(java.lang.Class c)
find all Control objects of the specified class
-
getGraphicsModeControl
GraphicsModeControl getGraphicsModeControl()
return the GraphicsModeControl associated with this Display
-
getImage
java.awt.image.BufferedImage getImage()
return a captured image of the display
-
getMapVector
java.util.Vector getMapVector() throws VisADException, java.rmi.RemoteExceptionreturn a Vector of the ScalarMap-s associated with this Display- Throws:
VisADExceptionjava.rmi.RemoteException
-
getProjectionControl
ProjectionControl getProjectionControl()
return the ProjectionControl associated with this Display
-
getWidgetPanel
java.awt.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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG