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