KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > dom > svg > SVGContext


1 /*
2
3    Copyright 2000-2004 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.dom.svg;
19
20 import java.awt.geom.AffineTransform JavaDoc;
21 import java.awt.geom.Rectangle2D JavaDoc;
22
23 /**
24  * This interface is the placeholder for SVG application informations.
25  *
26  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
27  * @version $Id: SVGContext.java,v 1.15 2004/10/08 16:12:01 deweese Exp $
28  */

29 public interface SVGContext {
30
31     /**
32      * Returns the size of a px CSS unit in millimeters.
33      */

34     float getPixelUnitToMillimeter();
35
36     /**
37      * Returns the size of a px CSS unit in millimeters.
38      * This will be removed after next release.
39      * @see #getPixelUnitToMillimeter()
40      */

41     float getPixelToMM();
42
43     /**
44      * Returns the tight bounding box in current user space (i.e.,
45      * after application of the transform attribute, if any) on the
46      * geometry of all contained graphics elements, exclusive of
47      * stroke-width and filter effects).
48      */

49     Rectangle2D JavaDoc getBBox();
50
51     /**
52      * Returns the transform from the global transform space to pixels.
53      */

54     AffineTransform JavaDoc getScreenTransform();
55
56     /**
57      * Sets the transform to be used from the global transform space to pixels.
58      */

59     void setScreenTransform(AffineTransform JavaDoc at);
60
61     /**
62      * Returns the transformation matrix from current user units
63      * (i.e., after application of the transform attribute, if any) to
64      * the viewport coordinate system for the nearestViewportElement.
65      */

66     AffineTransform JavaDoc getCTM();
67
68     /**
69      * Returns the global transformation matrix from the current
70      * element to the root.
71      */

72     AffineTransform JavaDoc getGlobalTransform();
73
74     /**
75      * Returns the width of the viewport which directly contains the
76      * associated element.
77      */

78     float getViewportWidth();
79
80     /**
81      * Returns the height of the viewport which directly contains the
82      * associated element.
83      */

84     float getViewportHeight();
85
86     /**
87      * Returns the font-size on the associated element.
88      */

89     float getFontSize();
90
91 }
92
Popular Tags