public class RenderingPanel
extends com.google.gwt.user.client.ui.LayoutPanel
implements com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.event.shared.HasHandlers
WebGLRenderer
and Canvas3d
Modifier and Type | Class and Description |
---|---|
static interface |
RenderingPanel.AnimationUpdateHandler |
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Constructor and Description |
---|
RenderingPanel()
This constructor will create new instance of the widget.
|
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addAnimationReadyHandler(AnimationReadyHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addCanvas3dErrorHandler(Context3dErrorHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addSceneLoadingHandler(SceneLoadingHandler handler) |
AnimatedScene |
getAnimatedScene()
Gets
AnimatedScene instance associated with the widget. |
Canvas3d |
getCanvas() |
Canvas3dAttributes |
getCanvas3dAttributes() |
WebGLRenderer |
getRenderer()
Gets
WebGLRenderer . |
boolean |
isSupportFullScreen() |
void |
onLoad()
This method is called when a widget is attached to the browser's document.
|
void |
onLoaded()
This method is called when a widget is fully initialized.
|
void |
onResize()
This method is called when the implementor's size has been modified.
|
void |
onUnload()
This method is called when a widget is detached from the browser's document.
|
void |
setAnimatedScene(AnimatedScene animatedScene)
Sets the
AnimatedScene to the widget. |
void |
setAnimationUpdateHandler(RenderingPanel.AnimationUpdateHandler animationUpdateHandler) |
void |
setBackground(int color) |
void |
setBackground(int color,
double alpha) |
void |
toFullScreen() |
add, animate, animate, forceLayout, getWidgetContainerElement, insert, remove, setWidgetBottomHeight, setWidgetBottomHeight, setWidgetHorizontalPosition, setWidgetLeftRight, setWidgetLeftRight, setWidgetLeftWidth, setWidgetLeftWidth, setWidgetRightWidth, setWidgetRightWidth, setWidgetTopBottom, setWidgetTopBottom, setWidgetTopHeight, setWidgetTopHeight, setWidgetVerticalPosition, setWidgetVisible
getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public RenderingPanel()
public Canvas3d getCanvas()
public WebGLRenderer getRenderer()
WebGLRenderer
. Use AnimatedScene.getRenderer()
instead.WebGLRenderer
public AnimatedScene getAnimatedScene()
AnimatedScene
instance associated with the widget.AnimatedScene
public void setAnimationUpdateHandler(RenderingPanel.AnimationUpdateHandler animationUpdateHandler)
public void setAnimatedScene(AnimatedScene animatedScene)
AnimatedScene
to the widget.animatedScene
- public void setBackground(int color)
public void setBackground(int color, double alpha)
public Canvas3dAttributes getCanvas3dAttributes()
public void onLoad()
Canvas3d
should be initialized here.onLoad
in class com.google.gwt.user.client.ui.Widget
public void onUnload()
Animation.stop()
method.onUnload
in class com.google.gwt.user.client.ui.Widget
public void onLoaded()
public void onResize()
onResize
in interface com.google.gwt.user.client.ui.RequiresResize
onResize
in class com.google.gwt.user.client.ui.LayoutPanel
public com.google.gwt.event.shared.HandlerRegistration addAnimationReadyHandler(AnimationReadyHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addSceneLoadingHandler(SceneLoadingHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addCanvas3dErrorHandler(Context3dErrorHandler handler)
public void toFullScreen()
public boolean isSupportFullScreen()