Full Library / Result / 3D Interactive Creator / 3DAnimation-Java3D / Box3D /  ViewScreen2D
Block Name: ViewScreen2D


public class ViewScreen2D
extends VisualSim.simulators.gr.kernel.GRActor2D
implements VisualSim.actor.gui.Placeable, VisualSim.simulators.gr.kernel.ViewScreenInterface

A sink actor that renders a two-dimensional scene into a display screen. All mouse and keyboard events within the viewscreen are handled by a ViewScreen2DListener.

Since:
VisualSim4.0


Field Detail

backgroundColor

public VisualSim.actor.gui.ColorAttribute backgroundColor
The red, green, blue, and alpha components of the background color of the viewscreen. This parameter must contain an array of double values. The default value is {1.0, 1.0, 1.0, 1.0}, corresponding to opaque white.


sceneGraphIn

public VisualSim.actor.TypedIOPort sceneGraphIn
The input scene graph.


horizontalPixels

public VisualSim.data.expr.Parameter horizontalPixels
The horizontal resolution of the display screen. This parameter should contain a IntToken. The default value of this parameter is the IntToken 400.


rotatable

public VisualSim.data.expr.Parameter rotatable
Boolean variable that determines if the user is allowed to rotate the scene. This parameter should contain a BooleanToken. The default value of this parameter is BooleanToken true.


scalable

public VisualSim.data.expr.Parameter scalable
Boolean variable that determines if the user is allowed to scale the scene. This parameter should contain a BooleanToken. The default value of this parameter is BooleanToken false.


showAxes

public VisualSim.data.expr.Parameter showAxes
Boolean variable that determines if the axes crosshairs are shown This parameter should contain a BooleanToken. The default value of this parameter is BooleanToken true.


translatable

public VisualSim.data.expr.Parameter translatable
Boolean variable that determines if the user is allowed to translate the scene. This parameter should contain a BooleanToken. The default value of this parameter is BooleanToken false.


verticalPixels

public VisualSim.data.expr.Parameter verticalPixels
The vertical resolution of the display screen. This parameter should contain a IntToken. The default value of this parameter is IntToken 400.


upperLeftX

public VisualSim.data.expr.Parameter upperLeftX
The x coordinate of the canvas point visible in the upper left corner of the display screen.


upperLeftY

public VisualSim.data.expr.Parameter upperLeftY
The y coordinate of the canvas point visible in the upper left corner of the display screen.


lowerRightX

public VisualSim.data.expr.Parameter lowerRightX
The x coordinate of the canvas point visible in the lower right corner of the display screen.


lowerRightY

public VisualSim.data.expr.Parameter lowerRightY
The y coordinate of the canvas point visible in the lower right corner of the display screen.