1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements.  See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License.  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 /* $Id: GraphicsProperties.java 679326 2008-07-24 09:35:34Z vhennebert $ */
19 
20 package org.apache.fop.fo;
21 
22 import org.apache.fop.datatypes.Length;
23 import org.apache.fop.fo.properties.LengthRangeProperty;
24 
25 /**
26  * This interface provides access to properties necessary to calculate the size and positioning
27  * of images and graphics inside a viewport.
28  */
29 public interface GraphicsProperties {
30 
31     /**
32      * @return the "inline-progression-dimension" property.
33      */
getInlineProgressionDimension()34     LengthRangeProperty getInlineProgressionDimension();
35 
36     /**
37      * @return the "block-progression-dimension" property.
38      */
getBlockProgressionDimension()39     LengthRangeProperty getBlockProgressionDimension();
40 
41     /**
42      * @return the "height" property.
43      */
getHeight()44     Length getHeight();
45 
46     /**
47      * @return the "width" property.
48      */
getWidth()49     Length getWidth();
50 
51     /**
52      * @return the "content-height" property.
53      */
getContentHeight()54     Length getContentHeight();
55 
56     /**
57      * @return the "content-width" property.
58      */
getContentWidth()59     Length getContentWidth();
60 
61     /**
62      * @return the "scaling" property.
63      */
getScaling()64     int getScaling();
65 
66     /**
67      * @return the "overflow" property.
68      */
getOverflow()69     int getOverflow();
70 
71     /**
72      * @return the "display-align" property.
73      */
getDisplayAlign()74     int getDisplayAlign();
75 
76     /**
77      * @return the "text-align" property.
78      */
getTextAlign()79     int getTextAlign();
80 
81 }
82