KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > joshy > html > ListLayout


1 package org.joshy.html;
2
3 import org.w3c.dom.*;
4 import java.awt.Color JavaDoc;
5 import org.joshy.u;
6 import org.joshy.html.box.Box;
7
8 public class ListLayout extends BoxLayout {
9
10     public void paintChild(Context c, Box box, Layout layout) {
11         /*u.p("list paint child");*/
12         int y1 = c.getExtents().y;
13         super.paintChild(c,box,layout);
14         int y2 = c.getExtents().y;
15         int y = (y1 + y2) / 2;
16         c.getGraphics().fillOval(
17             c.getExtents().x+c.getCursor().x-10,
18             y-2,8,8);
19     }
20 }
21
Popular Tags