visad.java2d
Class DisplayImplJ2D
- java.lang.Object
-
- visad.ActionImpl
-
- visad.DisplayImpl
-
- visad.java2d.DisplayImplJ2D
-
- All Implemented Interfaces:
- java.lang.Runnable, java.util.EventListener, Action, Display, LocalDisplay, ThingChangedListener
public class DisplayImplJ2D extends DisplayImpl
DisplayImplJ2D is the VisAD class for displays that use Java 3D. It is runnable.DisplayImplJ2D is not Serializable and should not be copied between JVMs.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class visad.DisplayImpl
DisplayImpl.Syncher
-
-
Field Summary
Fields Modifier and Type Field and Description static intJPANELstatic intOFFSCREENstatic intUNKNOWNlegal values for api-
Fields inherited from class visad.ActionImpl
TRACE_STACK, TRACE_TIME
-
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
-
-
Constructor Summary
Constructors Constructor and Description DisplayImplJ2D(RemoteDisplay rmtDpy)DisplayImplJ2D(RemoteDisplay rmtDpy, DisplayRendererJ2D renderer)DisplayImplJ2D(java.lang.String name)construct a DisplayImpl for Java2D with the default DisplayRenderer, in a JFC JPanelDisplayImplJ2D(java.lang.String name, DisplayRendererJ2D renderer)construct a DisplayImpl for Java2D with a non-default DisplayRenderer, in a JFC JPanelDisplayImplJ2D(java.lang.String name, DisplayRendererJ2D renderer, int api)construct a DisplayImpl for Java2D with a non-default DisplayRenderer; in a JFC JPanel if api == DisplayImplJ2D.JPANELDisplayImplJ2D(java.lang.String name, DisplayRendererJ2D renderer, int width, int height)offscreen constructor with non-default DisplayRendererDisplayImplJ2D(java.lang.String name, DisplayRendererJ2D renderer, int api, int width, int height)most general constructorDisplayImplJ2D(java.lang.String name, int api)constructor with default DisplayRendererDisplayImplJ2D(java.lang.String name, int width, int height)construct a DisplayImpl for Java2D for offscreen rendering, with size given by width and height; getComponent() of this returns null, but display is accesible via getImage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclearMaps()remove all ScalarMaps linked this display;voiddestroy()destroy this display: clear all references to objects (so they can be garbage collected), stop all Threads and remove all linksvoiddoAction()Check if any Data need re-transform, and if so, do it.intgetAPI()Return the API used for this displaybooleangetAutoAspect()GraphicsModeControlgetGraphicsModeControl()return the GraphicsModeControl associated with this DisplayProjectionControlgetProjectionControl()return the ProjectionControl associated with this DisplayvoidsetAutoAspect(boolean auto)voidsetScratch()-
Methods inherited from class visad.DisplayImpl
addActivityHandler, addControl, addDataSourceListener, addDisplayListener, addMap, addMap, addMessageListener, addReference, addReference, addReferences, addReferences, addReferences, addReferences, addRemoteSourceListener, addRendererSourceListener, addSlave, checkTicks, connectionFailed, controlChanged, delay, disableEvent, enableEvent, equals, getComponent, getConnectionID, getConstantMapVector, getControl, getControl, getControls, getControlVector, getDisplayMonitor, getDisplayRenderer, getDisplayScalar, getDisplayScalarCount, getDisplayScalarIndex, getDisplaySync, getImage, getImage, getMapVector, getMouseBehavior, getNumberOfControls, getPrintable, getRenderers, getRendererVector, getScalar, getScalarCount, getScalarIndex, getValueArrayLength, getValueToMap, getValueToScalar, getWidgetPanel, hasSlaves, isDestroyed, isEventEnabled, lostCollabConnection, make_matrix, multiply_matrix, notifyListeners, notifyListeners, printStack, reAutoScale, reDisplayAll, removeActivityHandler, removeAllReferences, removeAllSlaves, removeDataSourceListener, removeDisplayListener, removeMap, removeMap, removeMessageListener, removeReference, removeRemoteSourceListener, removeRendererSourceListener, removeSlave, replaceReference, replaceReference, replaceReferences, replaceReferences, replaceReferences, replaceReferences, sendMessage, setAlwaysAutoScale, setComponent, setDepthBufferOffset, setMouseBehavior, toString, toString, updateBusyStatus, updateSlaves, updateSlaves
-
Methods inherited from class visad.ActionImpl
disableAction, enableAction, findReference, getCurrentActionThread, getLinks, getName, getTaskCount, printPool, run, setEnabled, setName, setThreadPoolMaximum, stop, stopThreadPool, thingChanged, waitForTasks
-
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface visad.ThingChangedListener
thingChanged
-
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
legal values for api- See Also:
- Constant Field Values
-
JPANEL
public static final int JPANEL
- See Also:
- Constant Field Values
-
OFFSCREEN
public static final int OFFSCREEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DisplayImplJ2D
public DisplayImplJ2D(RemoteDisplay rmtDpy) throws VisADException, java.rmi.RemoteException
- Throws:
VisADExceptionjava.rmi.RemoteException
-
DisplayImplJ2D
public DisplayImplJ2D(RemoteDisplay rmtDpy, DisplayRendererJ2D renderer) throws VisADException, java.rmi.RemoteException
- Throws:
VisADExceptionjava.rmi.RemoteException
-
DisplayImplJ2D
public DisplayImplJ2D(java.lang.String name) throws VisADException, java.rmi.RemoteExceptionconstruct a DisplayImpl for Java2D with the default DisplayRenderer, in a JFC JPanel- Throws:
VisADExceptionjava.rmi.RemoteException
-
DisplayImplJ2D
public DisplayImplJ2D(java.lang.String name, DisplayRendererJ2D renderer) throws VisADException, java.rmi.RemoteExceptionconstruct a DisplayImpl for Java2D with a non-default DisplayRenderer, in a JFC JPanel- Throws:
VisADExceptionjava.rmi.RemoteException
-
DisplayImplJ2D
public DisplayImplJ2D(java.lang.String name, int api) throws VisADException, java.rmi.RemoteExceptionconstructor with default DisplayRenderer- Throws:
VisADExceptionjava.rmi.RemoteException
-
DisplayImplJ2D
public DisplayImplJ2D(java.lang.String name, DisplayRendererJ2D renderer, int api) throws VisADException, java.rmi.RemoteExceptionconstruct a DisplayImpl for Java2D with a non-default DisplayRenderer; in a JFC JPanel if api == DisplayImplJ2D.JPANEL- Throws:
VisADExceptionjava.rmi.RemoteException
-
DisplayImplJ2D
public DisplayImplJ2D(java.lang.String name, int width, int height) throws VisADException, java.rmi.RemoteExceptionconstruct a DisplayImpl for Java2D for offscreen rendering, with size given by width and height; getComponent() of this returns null, but display is accesible via getImage()- Throws:
VisADExceptionjava.rmi.RemoteException
-
DisplayImplJ2D
public DisplayImplJ2D(java.lang.String name, DisplayRendererJ2D renderer, int width, int height) throws VisADException, java.rmi.RemoteExceptionoffscreen constructor with non-default DisplayRenderer- Throws:
VisADExceptionjava.rmi.RemoteException
-
DisplayImplJ2D
public DisplayImplJ2D(java.lang.String name, DisplayRendererJ2D renderer, int api, int width, int height) throws VisADException, java.rmi.RemoteExceptionmost general constructor- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
Method Detail
-
getProjectionControl
public ProjectionControl getProjectionControl()
Description copied from interface:LocalDisplayreturn the ProjectionControl associated with this Display- Specified by:
getProjectionControlin interfaceLocalDisplay- Specified by:
getProjectionControlin classDisplayImpl- Returns:
- the ProjectionControl associated with this DisplayImpl
-
getGraphicsModeControl
public GraphicsModeControl getGraphicsModeControl()
Description copied from interface:LocalDisplayreturn the GraphicsModeControl associated with this Display- Specified by:
getGraphicsModeControlin interfaceLocalDisplay- Specified by:
getGraphicsModeControlin classDisplayImpl- Returns:
- the GraphicsModeControl associated with this DisplayImpl
-
getAPI
public int getAPI() throws VisADExceptionReturn the API used for this display- Overrides:
getAPIin classDisplayImpl- Returns:
- the mode being used (UNKNOWN, JPANEL, OFFSCREEN)
- Throws:
VisADException
-
setScratch
public void setScratch()
-
clearMaps
public void clearMaps() throws VisADException, java.rmi.RemoteExceptionDescription copied from class:DisplayImplremove all ScalarMaps linked this display;- Specified by:
clearMapsin interfaceDisplay- Overrides:
clearMapsin classDisplayImpl- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
doAction
public void doAction() throws VisADException, java.rmi.RemoteExceptionDescription copied from class:DisplayImplCheck if any Data need re-transform, and if so, do it. Check if auto-scaling is needed for any ScalarMaps, and if so, do it. This method does the real work of DisplayImpl.- Overrides:
doActionin classDisplayImpl- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
getAutoAspect
public boolean getAutoAspect()
-
setAutoAspect
public void setAutoAspect(boolean auto)
-
destroy
public void destroy() throws VisADException, java.rmi.RemoteExceptionDescription copied from class:DisplayImpldestroy this display: clear all references to objects (so they can be garbage collected), stop all Threads and remove all links- Specified by:
destroyin interfaceDisplay- Overrides:
destroyin classDisplayImpl- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
-
DMelt 3.0 © DataMelt by jWork.ORG