Class Scene

All Implemented Interfaces:
Animation, Editable, StyleListener, Iterable<Component>

public class Scene extends Container
A scene graph. Supports 3D on platforms where com.codename1.ui.Transform#isPerspectiveSupported() is true (iOS and Android currently).
  • Field Details

  • Constructor Details

    • Scene

      public Scene()
  • Method Details

    • setRoot

      public void setRoot(Node root)

      Set the root node.

      Parameters
      • root: The root node.
    • paint

      public void paint(Graphics g)
      Description copied from class: Container

      This method paints the Component on the screen, it should be overriden by subclasses to perform custom drawing or invoke the UI API's to let the PLAF perform the rendering.

      Parameters
      • g: the component graphics
      Specified by:
      paint in interface Animation
      Overrides:
      paint in class Container
    • layoutContainer

      public void layoutContainer()
      Description copied from class: Container
      Performs the layout of the container if a layout is necessary
      Overrides:
      layoutContainer in class Container