1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 package com.sun.star.report.pentaho.layoutprocessor;
24 
25 /**
26  * Todo: Document me!
27  *
28  * @author Thomas Morgner
29  * @since 30.03.2007
30  */
31 public class ImageElementContext
32 {
33 
34     private final int colSpan;
35     private final int rowSpan;
36     private String[] rowStyles;
37     private String[] colStyles;
38 
ImageElementContext(final int colSpan, final int rowSpan)39     public ImageElementContext(final int colSpan, final int rowSpan)
40     {
41         this.colSpan = colSpan;
42         this.rowSpan = rowSpan;
43         this.colStyles = new String[colSpan];
44         this.rowStyles = new String[rowSpan];
45     }
46 
getColSpan()47     public int getColSpan()
48     {
49         return colSpan;
50     }
51 
getRowSpan()52     public int getRowSpan()
53     {
54         return rowSpan;
55     }
56 
getRowStyles()57     public String[] getRowStyles()
58     {
59         return rowStyles;
60     }
61 
getColStyles()62     public String[] getColStyles()
63     {
64         return colStyles;
65     }
66 
setRowStyle(final int pos, final String styleName)67     public void setRowStyle(final int pos, final String styleName)
68     {
69         rowStyles[pos] = styleName;
70     }
71 
setColStyle(final int pos, final String styleName)72     public void setColStyle(final int pos, final String styleName)
73     {
74         colStyles[pos] = styleName;
75     }
76 
getRowStyle(final int pos)77     public String getRowStyle(final int pos)
78     {
79         return rowStyles[pos];
80     }
81 
getColStyle(final int pos)82     public String getColStyle(final int pos)
83     {
84         return colStyles[pos];
85     }
86 }
87