KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > hssf > usermodel > HSSFAnchor


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

16
17 package org.apache.poi.hssf.usermodel;
18
19
20 /**
21  * An anchor is what specifics the position of a shape within a client object
22  * or within another containing shape.
23  *
24  * @author Glen Stampoultzis (glens at apache.org)
25  */

26 public abstract class HSSFAnchor
27 {
28     int dx1;
29     int dy1;
30     int dx2;
31     int dy2;
32
33     public HSSFAnchor()
34     {
35     }
36
37     public HSSFAnchor( int dx1, int dy1, int dx2, int dy2 )
38     {
39         this.dx1 = dx1;
40         this.dy1 = dy1;
41         this.dx2 = dx2;
42         this.dy2 = dy2;
43     }
44
45     public int getDx1(){ return dx1; }
46     public void setDx1( int dx1 ){ this.dx1 = dx1; }
47     public int getDy1(){ return dy1; }
48     public void setDy1( int dy1 ){ this.dy1 = dy1; }
49     public int getDy2(){ return dy2; }
50     public void setDy2( int dy2 ){ this.dy2 = dy2; }
51     public int getDx2(){ return dx2; }
52     public void setDx2( int dx2 ){ this.dx2 = dx2; }
53
54     public abstract boolean isHorizontallyFlipped();
55     public abstract boolean isVerticallyFlipped();
56 }
57
Popular Tags