public class DefaultDisplayRendererJ2D extends DisplayRendererJ2D
DefaultDisplayRendererJ2D is the VisAD class for
default background and metadata rendering under Java2D.| Constructor and Description |
|---|
DefaultDisplayRendererJ2D()
This is the default
DisplayRenderer used by the
DisplayImplJ2D constructor. |
DefaultDisplayRendererJ2D(Class mbj2dClass) |
| Modifier and Type | Method and Description |
|---|---|
VisADGroup |
createSceneGraph(VisADCanvasJ2D c)
Create scene graph root, if none exists, with Transform
and direct manipulation root;
create 3-D box, lights and
MouseBehaviorJ2D for
embedded user interface. |
boolean |
getMode2D()
Return
true if this is a 2-D DisplayRenderer. |
boolean |
legalDisplayScalar(DisplayRealType type)
Return
true if type is legal for this
DisplayRenderer; for example, 2-D
DisplayRenderers use this to disallow mappings to
ZAxis and Latitude. |
void |
setBoxAspect(double[] aspect)
set the aspect for the containing box
aspect double[3] array used to scale x, y and z box sizes
|
void |
setLineWidth(float width) |
addDirectManipulationSceneGraphComponent, addKeyboardBehavior, addSceneGraphComponent, anyCursorStringVector, anyDirects, clearScale, clearScales, clearScene, controlChanged, createBasicSceneGraph, createBasicSceneGraph, depth_cursor, drag_cursor, drag_depth, drawCursorStringVector, findDirect, getBoxOnBranch, getCanvas, getCursor, getCursorOnBranch, getDirect, getImage, getMouseBehavior, getNonDirect, getRoot, getTextureHeightMax, getTextureWidthMax, getTrans, initControl, legalDataRenderer, makeControl, makeDefaultRenderer, render_trigger, rendererDeleted, setClip, setCursorOn, setDirectOn, setDisplay, setScale, setScale, setScale, setScaleOn, setTransform2D, setWaitFlag, unsetClipgetAnimationString, getAnimationStringVisible, getBoxOn, getCursorColor, getCursorStringVector, getCursorStringVectorUnconditional, getDirectAxisValue, getDirectAxisValue, getDisplay, getPickThreshhold, getRendererControl, getRotateAboutCenter, getScaleRotation, getWaitFlag, getWaitMessageVisible, prepareAction, setAnimationString, setAnimationStringVisible, setBackgroundColor, setBackgroundColor, setBoxColor, setBoxColor, setBoxOn, setCursorColor, setCursorColor, setCursorStringOn, setCursorStringVector, setCursorStringVector, setForegroundColor, setForegroundColor, setPickThreshhold, setRotateAboutCenter, setScaleRotation, setWaitMessageVisiblepublic DefaultDisplayRendererJ2D()
DisplayRenderer used by the
DisplayImplJ2D constructor.
It draws a 2-D box around the scene and a 2-D cursor.The left mouse button controls the projection as follows:
Data object and dragging or re-drawing
it.Cursor and direct manipulation locations are displayed in RealType values
BadMappingExceptions and
UnimplementedExceptions are displayed
No RealType may be mapped to ZAxis, Latitude or Alpha.
public DefaultDisplayRendererJ2D(Class mbj2dClass)
mbj2dClass - - sub Class of MouseBehaviorJ2Dpublic boolean getMode2D()
DisplayRenderertrue if this is a 2-D DisplayRenderer.getMode2D in class DisplayRenderertrue if this is a 2-D renderer.public boolean legalDisplayScalar(DisplayRealType type)
DisplayRenderertrue if type is legal for this
DisplayRenderer; for example, 2-D
DisplayRenderers use this to disallow mappings to
ZAxis and Latitude.legalDisplayScalar in class DisplayRenderertype - The mapping type to check.true if type is legal.public VisADGroup createSceneGraph(VisADCanvasJ2D c) throws DisplayException
MouseBehaviorJ2D for
embedded user interface.createSceneGraph in class DisplayRendererJ2Dc - DisplayExceptionpublic void setBoxAspect(double[] aspect)
setBoxAspect in class DisplayRendererpublic void setLineWidth(float width)
setLineWidth in class DisplayRendererJ2DCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.