KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.joshy.html;
2
3 import java.util.*;
4 import java.awt.Color JavaDoc;
5 import java.awt.Graphics JavaDoc;
6 import java.awt.Font JavaDoc;
7 import java.awt.Rectangle JavaDoc;
8
9 import org.w3c.dom.*;
10 import org.joshy.*;
11 import org.joshy.html.box.*;
12
13 /** a table cell is a normal inline layout box, except that
14 when it does the actual painting it uses the height of the bounds
15 instead of it's intrinsic height. (hopefully this will change to be less
16 clunky and more explict when I redesign it all to use a separate Box
17 pass.
18 */

19 public class TableCellLayout extends InlineLayout {
20
21     
22     public void paintBackground(Context c, Box box) {
23         //contents.height = c.getExtents().height;
24
u.p("painting a cell background: " + box);
25         super.paintBackground(c,box);
26     }
27
28 }
29
30
Popular Tags