Class Renderer


  • public class Renderer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Renderer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Event ev)
      Add a new event to the renderer.
      void flush()
      Flushes all events.
      boolean isDirty()  
      java.awt.Image render​(java.awt.Component c, java.awt.Image img)
      Renders onto the given image.
      int update​(java.awt.Component c, java.awt.Dimension d, double t)
      Update the renderer, and all the events it tracks.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Renderer

        public Renderer()
    • Method Detail

      • add

        public void add​(Event ev)
        Add a new event to the renderer.
      • update

        public int update​(java.awt.Component c,
                          java.awt.Dimension d,
                          double t)
        Update the renderer, and all the events it tracks. Returns 1 if there is nothing to draw, as an optimization
      • render

        public java.awt.Image render​(java.awt.Component c,
                                     java.awt.Image img)
        Renders onto the given image.
      • flush

        public void flush()
        Flushes all events.
      • isDirty

        public boolean isDirty()