Class RenderedFrameManager.RenderedFrame

  • Enclosing class:
    RenderedFrameManager

    public class RenderedFrameManager.RenderedFrame
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.awt.Graphics2D graphics  
      java.awt.image.BufferedImage image  
      int settingsId  
      double time  
    • Constructor Summary

      Constructors 
      Constructor Description
      RenderedFrame()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doneDrawing()  
      boolean startDrawing()
      Attempts to non-blockingly lock this frame, and returns whether that succeeded.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • settingsId

        public int settingsId
      • image

        public java.awt.image.BufferedImage image
      • graphics

        public java.awt.Graphics2D graphics
      • time

        public double time
    • Constructor Detail

      • RenderedFrame

        public RenderedFrame()
    • Method Detail

      • startDrawing

        public boolean startDrawing()
        Attempts to non-blockingly lock this frame, and returns whether that succeeded. Call doneDrawing() when done. Rendering will choose another object, drawing can skip this frame and paint the next one.
        Returns:
      • doneDrawing

        public void doneDrawing()