KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.apache.poi.ddf.EscherRecord;
20 import org.apache.poi.ddf.EscherClientAnchorRecord;
21 import org.apache.poi.ddf.EscherChildAnchorRecord;
22
23 public class HSSFChildAnchor
24         extends HSSFAnchor
25 {
26     public HSSFChildAnchor()
27     {
28     }
29
30     public HSSFChildAnchor( int dx1, int dy1, int dx2, int dy2 )
31     {
32         super( dx1, dy1, dx2, dy2 );
33     }
34
35     public void setAnchor(int dx1, int dy1, int dx2, int dy2)
36     {
37         this.dx1 = dx1;
38         this.dy1 = dy1;
39         this.dx2 = dx2;
40         this.dy2 = dy2;
41     }
42
43     public boolean isHorizontallyFlipped()
44     {
45         return dx1 > dx2;
46     }
47
48     public boolean isVerticallyFlipped()
49     {
50         return dy1 > dy2;
51     }
52
53 }
54
Popular Tags