|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.DisplayRenderer
visad.java2d.DisplayRendererJ2D
visad.java2d.DefaultDisplayRendererJ2D
public class DefaultDisplayRendererJ2D
DefaultDisplayRendererJ2D is the VisAD class for
default background and metadata rendering under Java2D.
| Constructor Summary | |
|---|---|
DefaultDisplayRendererJ2D()
This is the default DisplayRenderer used by the
DisplayImplJ2D constructor. |
|
DefaultDisplayRendererJ2D(Class mbj2dClass)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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 MouseBehaviorJ2D| Method Detail |
|---|
public 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 DisplayRendererJ2D
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||