KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > css > engine > CSSStylableElement


1 /*
2
3    Copyright 2002 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.css.engine;
19
20 import java.net.URL JavaDoc;
21
22 import org.w3c.dom.Element JavaDoc;
23
24 /**
25  * This interface must be implemented by the DOM elements which needs
26  * CSS support.
27  *
28  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
29  * @version $Id: CSSStylableElement.java,v 1.3 2004/08/18 07:12:48 vhardy Exp $
30  */

31 public interface CSSStylableElement extends Element JavaDoc {
32     
33     /**
34      * Returns the computed style of this element/pseudo-element.
35      */

36     StyleMap getComputedStyleMap(String JavaDoc pseudoElement);
37
38     /**
39      * Sets the computed style of this element/pseudo-element.
40      */

41     void setComputedStyleMap(String JavaDoc pseudoElement, StyleMap sm);
42
43     /**
44      * Returns the ID of this element.
45      */

46     String JavaDoc getXMLId();
47
48     /**
49      * Returns the class of this element.
50      */

51     String JavaDoc getCSSClass();
52
53     /**
54      * Returns the CSS base URL of this element.
55      */

56     URL JavaDoc getCSSBase();
57
58     /**
59      * Tells whether this element is an instance of the given pseudo
60      * class.
61      */

62     boolean isPseudoInstanceOf(String JavaDoc pseudoClass);
63 }
64
Popular Tags