javauis/mmapi_qt/baseline/javasrc/com/nokia/microedition/media/animation/VideoItem.java
changeset 49 35baca0e7a2e
parent 35 85266cc22c7f
equal deleted inserted replaced
35:85266cc22c7f 49:35baca0e7a2e
    94         return iHeight;
    94         return iHeight;
    95     }
    95     }
    96     /**
    96     /**
    97      * This is dummy implementation of the paint method.
    97      * This is dummy implementation of the paint method.
    98      */
    98      */
    99     int count;
    99 //    int count;
   100     protected void paint(Graphics g, int w, int h)
   100     protected void paint(Graphics g, int w, int h)
   101     {
   101     {
   102         //TODO remove this code later
   102         //TODO remove this code later
   103         // this is added just for testing purpose
   103         // this is added just for testing purpose
   104         System.out.println("VideoItem::paint()");
   104 //        System.out.println("VideoItem::paint()");
   105         g.setColor(0x00a000);
   105 //        g.setColor(0x00a000);
   106         g.fillRect(0,0,w,h);
   106 //        g.fillRect(0,0,w,h);
   107         g.setColor(0xFFFFFF);
   107 //        g.setColor(0xFFFFFF);
   108         g.drawString("paint"+(count++), w>>1, h>>1, Graphics.BASELINE|Graphics.HCENTER);
   108 //        g.drawString("paint"+(count++), w>>1, h>>1, Graphics.BASELINE|Graphics.HCENTER);
   109     }
   109     }
   110 
   110 
   111     /**
   111     /**
   112      * Whenever player will be resized this function will be invoked and it will call the invalidate method of custom item
   112      * Whenever player will be resized this function will be invoked and it will call the invalidate method of custom item
   113      */
   113      */