01: /* ====================================================================
02: Licensed to the Apache Software Foundation (ASF) under one or more
03: contributor license agreements. See the NOTICE file distributed with
04: this work for additional information regarding copyright ownership.
05: The ASF licenses this file to You under the Apache License, Version 2.0
06: (the "License"); you may not use this file except in compliance with
07: the License. You may obtain a copy of the License at
08:
09: 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.poi.hssf.usermodel;
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: int dx1;
28: int dy1;
29: int dx2;
30: int dy2;
31:
32: public HSSFAnchor() {
33: }
34:
35: public HSSFAnchor(int dx1, int dy1, int dx2, int dy2) {
36: this .dx1 = dx1;
37: this .dy1 = dy1;
38: this .dx2 = dx2;
39: this .dy2 = dy2;
40: }
41:
42: public int getDx1() {
43: return dx1;
44: }
45:
46: public void setDx1(int dx1) {
47: this .dx1 = dx1;
48: }
49:
50: public int getDy1() {
51: return dy1;
52: }
53:
54: public void setDy1(int dy1) {
55: this .dy1 = dy1;
56: }
57:
58: public int getDy2() {
59: return dy2;
60: }
61:
62: public void setDy2(int dy2) {
63: this .dy2 = dy2;
64: }
65:
66: public int getDx2() {
67: return dx2;
68: }
69:
70: public void setDx2(int dx2) {
71: this .dx2 = dx2;
72: }
73:
74: public abstract boolean isHorizontallyFlipped();
75:
76: public abstract boolean isVerticallyFlipped();
77: }
|