Class Item


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

      Constructors 
      Constructor Description
      Item​(Event ev)
      Create a new item from a Kate event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isDirty()  
      void render​(java.awt.Component c, java.awt.Image img)
      Renders the item on the given image.
      void renderBackground​(java.awt.Component c, java.awt.Image img)
      Render a background for the item, if approrpiate.
      void renderText​(java.awt.Image img)
      Render text text for the item, if approrpiate.
      void setupRegion​(java.awt.Component c, java.awt.Image img)
      Set up the region.
      boolean update​(java.awt.Component c, java.awt.Dimension d, double t)
      Updates the item at the given time.
      • Methods inherited from class java.lang.Object

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

      • Item

        public Item​(Event ev)
        Create a new item from a Kate event.
    • Method Detail

      • update

        public boolean update​(java.awt.Component c,
                              java.awt.Dimension d,
                              double t)
        Updates the item at the given time. returns true for alive, false for dead
      • setupRegion

        public void setupRegion​(java.awt.Component c,
                                java.awt.Image img)
        Set up the region.
      • render

        public void render​(java.awt.Component c,
                           java.awt.Image img)
        Renders the item on the given image.
      • renderBackground

        public void renderBackground​(java.awt.Component c,
                                     java.awt.Image img)
        Render a background for the item, if approrpiate. The background may be a color, or an image.
      • renderText

        public void renderText​(java.awt.Image img)
        Render text text for the item, if approrpiate.
      • isDirty

        public boolean isDirty()