KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.joshy.html;
2
3 import java.awt.*;
4 import org.w3c.dom.*;
5 import org.joshy.*;
6 import org.joshy.html.box.*;
7
8 public class BodyLayout extends BoxLayout {
9     public Box layout(Context c, Element elem) {
10         //u.p("---------------------------------\nstarting the body layout");
11
c.setLeftTab(new Point(0,0));
12         c.setRightTab(new Point(0,0));
13         return super.layout(c,elem);
14     }
15
16     public void paintBackground(Context c, Box box) {
17         c.getGraphics().fillRect(0,0,c.canvas.getWidth(),c.canvas.getHeight());
18         super.paintBackground(c,box);
19     }
20
21 }
22
23
Popular Tags