Code

Adding signals and linking
[inkscape.git] / src / bind / java / org / w3c / dom / views / VisualFont.java
1 /*
2  * Copyright (c) 2004 World Wide Web Consortium,
3  *
4  * (Massachusetts Institute of Technology, European Research Consortium for
5  * Informatics and Mathematics, Keio University). All Rights Reserved. This
6  * work is distributed under the W3C(r) Software License [1] in the hope that
7  * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
8  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9  *
10  * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
11  */
13 package org.w3c.dom.views;
15 /**
16  * Visual font resources contain match criteria and result attributes for 
17  * getting information about fonts available to a view.
18  * <p>See also the <a href='http://www.w3.org/TR/2004/NOTE-DOM-Level-3-Views-20040226'>Document Object Model (DOM) Level 3 Views and Formatting
19 Specification</a>.
20  */
21 public interface VisualFont extends VisualResource {
22     /**
23      * May be set to cause fonts with the corresponding name to be matched.
24      */
25     public String getMatchFontName();
26     /**
27      * May be set to cause fonts with the corresponding name to be matched.
28      */
29     public void setMatchFontName(String matchFontName);
31     /**
32      * Returns true result if the desired font was located, or false if it was 
33      * not. If this value is set to false, no other results are set. If this 
34      * value is set to true, all other results are set.
35      */
36     public boolean getExists();
38     /**
39      * When a font is matched, the name of the font is returned here.
40      */
41     public String getFontName();
43     /**
44      * Fetches the results of the next matching <code>VisualFont</code>, if 
45      * any.
46      * @return 
47      */
48     public boolean getNext();
50 }