zhao
2021-07-02 23ee356c6f260ecc1a48bbb8bd60932b979e4698
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/* ====================================================================
   Licensed to the Apache Software Foundation (ASF) Under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for Additional information regarding copyright ownership.
   The ASF licenses this file to You Under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
 
       http://www.apache.org/licenses/LICENSE-2.0
 
   Unless required by applicable law or agreed to in writing, software
   distributed Under the License is distributed on an "AS Is" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations Under the License.
==================================================================== */
 
namespace HH.WMS.Utils.NPOI.HSSF.UserModel
{
 
 
    /// <summary>
    /// An anchor Is what specifics the position of a shape within a client object
    /// or within another containing shape.
    /// @author Glen Stampoultzis (glens at apache.org)
    /// </summary>
    public abstract class HSSFAnchor
    {
        int dx1;
        int dy1;
        int dx2;
        int dy2;
 
        public HSSFAnchor()
        {
        }
 
        /// <summary>
        /// Initializes a new instance of the <see cref="HSSFAnchor"/> class.
        /// </summary>
        /// <param name="dx1">The DX1.</param>
        /// <param name="dy1">The dy1.</param>
        /// <param name="dx2">The DX2.</param>
        /// <param name="dy2">The dy2.</param>
        public HSSFAnchor(int dx1, int dy1, int dx2, int dy2)
        {
            this.dx1 = dx1;
            this.dy1 = dy1;
            this.dx2 = dx2;
            this.dy2 = dy2;
        }
 
        /// <summary>
        /// Gets or sets the DX1.
        /// </summary>
        /// <value>The DX1.</value>
        public int Dx1
        { 
            get{return dx1;}
            set { this.dx1 = value; }
        }
        /// <summary>
        /// Gets or sets the dy1.
        /// </summary>
        /// <value>The dy1.</value>
        public int Dy1
        {
            get { return dy1; }
            set { this.dy1 = value; }
        }
        /// <summary>
        /// Gets or sets the dy2.
        /// </summary>
        /// <value>The dy2.</value>
        public int Dy2
        {
            get { return dy2; }
            set { this.dy2 = value; }
        }
        /// <summary>
        /// Gets or sets the DX2.
        /// </summary>
        /// <value>The DX2.</value>
        public int Dx2
        {
            get { return dx2; }
            set { this.dx2 = value; }
        }
 
        /// <summary>
        /// Gets a value indicating whether this instance is horizontally flipped.
        /// </summary>
        /// <value>
        ///     <c>true</c> if this instance is horizontally flipped; otherwise, <c>false</c>.
        /// </value>
        public abstract bool IsHorizontallyFlipped { get; }
        /// <summary>
        /// Gets a value indicating whether this instance is vertically flipped.
        /// </summary>
        /// <value>
        ///     <c>true</c> if this instance is vertically flipped; otherwise, <c>false</c>.
        /// </value>
        public abstract bool IsVerticallyFlipped { get; }
    }
}