示例#1
0
文件: LiteGroup.java 项目: URMC/i2b2
 /**
  * Paint each <code>Lite</code> object in turn after testing if it is inside the clip of the
  * Graphics. This is the right way to do it if the repainting time of <code>Lite</code> objects is
  * much greater than the time required to compute its bounds.
  *
  * @see excentric.LiteGroup#paintAll(java.awt.Graphics)
  */
 public void paint(Graphics g) {
   Rectangle clip = g.getClipBounds();
   for (Enumeration e = lites.elements(); e.hasMoreElements(); ) {
     Lite l = (Lite) e.nextElement();
     // if (l.getBounds().intersects(clip))
     l.paint(g);
   }
 }
示例#2
0
文件: LiteGroup.java 项目: URMC/i2b2
 /**
  * Paint each <code>Lite</code> object .
  *
  * @see excentric.LiteGroup#paint(java.awt.Graphics)
  */
 public void paintAll(Graphics g) {
   for (Enumeration e = lites.elements(); e.hasMoreElements(); ) {
     Lite l = (Lite) e.nextElement();
     l.paint(g);
   }
 }