KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > lobobrowser > html > style > RenderState


1 /*
2     GNU LESSER GENERAL PUBLIC LICENSE
3     Copyright (C) 2006 The Lobo Project
4
5     This library is free software; you can redistribute it and/or
6     modify it under the terms of the GNU Lesser General Public
7     License as published by the Free Software Foundation; either
8     version 2.1 of the License, or (at your option) any later version.
9
10     This library is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13     Lesser General Public License for more details.
14
15     You should have received a copy of the GNU Lesser General Public
16     License along with this library; if not, write to the Free Software
17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19     Contact info: xamjadmin@users.sourceforge.net
20 */

21 /*
22  * Created on Apr 16, 2005
23  */

24 package org.lobobrowser.html.style;
25 import java.awt.*;
26
27 /**
28  * @author J. H. S.
29  */

30 public interface RenderState {
31     public static final int MASK_TEXTDECORATION_UNDERLINE = 1;
32     public static final int MASK_TEXTDECORATION_OVERLINE = 2;
33     public static final int MASK_TEXTDECORATION_LINE_THROUGH = 4;
34     public static final int MASK_TEXTDECORATION_BLINK = 8;
35     
36     public static final int DISPLAY_NONE = 0;
37     public static final int DISPLAY_INLINE = 1;
38     public static final int DISPLAY_BLOCK = 2;
39     public static final int DISPLAY_LIST_ITEM = 3;
40     public static final int DISPLAY_TABLE_ROW = 4;
41     public static final int DISPLAY_TABLE_CELL = 5;
42     public static final int DISPLAY_TABLE = 6;
43     
44     public static final int WS_NORMAL = 0;
45     public static final int WS_PRE = 1;
46     public static final int WS_NOWRAP = 2;
47
48     public Font getFont();
49     public int getFontBase();
50     public WordInfo getWordInfo(String JavaDoc word);
51     public Color getColor();
52     public Color getBackgroundColor();
53     public Color getTextBackgroundColor();
54     public BackgroundInfo getBackgroundInfo();
55     public Color getOverlayColor();
56     public int getTextDecorationMask();
57     public FontMetrics getFontMetrics();
58     public int getBlankWidth();
59     public boolean isHighlight();
60     public void setHighlight(boolean highlight);
61     public RenderState getPreviousRenderState();
62     public int getAlignXPercent();
63     public int getAlignYPercent();
64     public int getCount(String JavaDoc counter, int nesting);
65     public int getDisplay();
66     public void resetCount(String JavaDoc counter, int nesting, int value);
67     public int incrementCount(String JavaDoc counter, int nesting);
68     public int getTextIndent(int availWidth);
69     public String JavaDoc getTextIndentText();
70     public int getWhiteSpace();
71     public java.awt.Insets JavaDoc getMarginInsets();
72     public java.awt.Insets JavaDoc getPaddingInsets();
73     public void invalidate();
74 }
75
Popular Tags