View Javadoc
1   /*
2    * Copyright (c) 2002-2026 Gargoyle Software Inc.
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    * https://www.apache.org/licenses/LICENSE-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software
10   * distributed under the License is distributed on an "AS IS" BASIS,
11   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   * See the License for the specific language governing permissions and
13   * limitations under the License.
14   */
15  package org.htmlunit.platform.geom;
16  
17  /**
18   * Simple data container because Dimension2D is not available on Android.
19   *
20   * @author Ronald Brill
21   */
22  public class IntDimension2D {
23  
24      // private static final Log LOG = LogFactory.getLog(IntDimension2D.class);
25  
26      private final int width_;
27      private final int height_;
28  
29      /**
30       * Constructor.
31       * @param width the width
32       * @param height the height
33       */
34      public IntDimension2D(final int width, final int height) {
35          width_ = width;
36          height_ = height;
37      }
38  
39      /**
40       * Returns the width of this as integer.
41       *
42       * @return the width of this as integer.
43       */
44      public int getWidth() {
45          return width_;
46      }
47  
48      /**
49       * Returns the height of this as integer.
50       *
51       * @return the height of this as integer.
52       */
53      public int getHeight() {
54          return height_;
55      }
56  }