Class AwtPanel

All Implemented Interfaces:
SceneProcessor, ImageObserver, MenuContainer, Serializable, Accessible

public class AwtPanel extends Canvas implements SceneProcessor
See Also:
  • Constructor Details

    • AwtPanel

      public AwtPanel(PaintMode paintMode)
    • AwtPanel

      public AwtPanel(PaintMode paintMode, boolean srgb)
  • Method Details

    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class Canvas
    • removeNotify

      public void removeNotify()
      Overrides:
      removeNotify in class Component
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class Canvas
    • checkVisibilityState

      public boolean checkVisibilityState()
    • repaintInThread

      public void repaintInThread()
    • drawFrameInThread

      public void drawFrameInThread()
    • isActiveDrawing

      public boolean isActiveDrawing()
    • attachTo

      public void attachTo(boolean overrideMainFramebuffer, ViewPort... vps)
    • initialize

      public void initialize(RenderManager rm, ViewPort vp)
      Description copied from interface: SceneProcessor
      Called in the render thread to initialize the scene processor.
      Specified by:
      initialize in interface SceneProcessor
      Parameters:
      rm - The render manager to which the SP was added to
      vp - The viewport to which the SP is assigned
    • isInitialized

      public boolean isInitialized()
      Specified by:
      isInitialized in interface SceneProcessor
      Returns:
      True if initialize() has been called on this SceneProcessor, false if otherwise.
    • preFrame

      public void preFrame(float tpf)
      Description copied from interface: SceneProcessor
      Called before a frame
      Specified by:
      preFrame in interface SceneProcessor
      Parameters:
      tpf - Time per frame
    • postQueue

      public void postQueue(RenderQueue rq)
      Description copied from interface: SceneProcessor
      Called after the scene graph has been queued, but before it is flushed.
      Specified by:
      postQueue in interface SceneProcessor
      Parameters:
      rq - The render queue
    • invalidate

      public void invalidate()
      Overrides:
      invalidate in class Component
    • postFrame

      public void postFrame(FrameBuffer out)
      Description copied from interface: SceneProcessor
      Called after a frame has been rendered and the queue flushed.
      Specified by:
      postFrame in interface SceneProcessor
      Parameters:
      out - The FB to which the scene was rendered.
    • reshape

      public void reshape(ViewPort vp, int w, int h)
      Description copied from interface: SceneProcessor
      Called when the resolution of the viewport has been changed.
      Specified by:
      reshape in interface SceneProcessor
      Parameters:
      vp - the affected ViewPort
      w - the new width (in pixels)
      h - the new height (in pixels)
    • cleanup

      public void cleanup()
      Description copied from interface: SceneProcessor
      Called when the SP is removed from the RM.
      Specified by:
      cleanup in interface SceneProcessor
    • setProfiler

      public void setProfiler(AppProfiler profiler)
      Description copied from interface: SceneProcessor
      Sets a profiler Instance for this processor.
      Specified by:
      setProfiler in interface SceneProcessor
      Parameters:
      profiler - the profiler instance.