View Javadoc

1   /*
2    * Copyright 2006 Robert Hanson <iamroberthanson AT gmail.com>
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.gwtwidgets.client.style;
18  
19  public class Coords
20  {
21      private int x;
22      private int y;
23  
24      public Coords ()
25      {
26          this.x = 0;
27          this.y = 0;
28      }
29  
30      public Coords (int x, int y)
31      {
32          this.x = x;
33          this.y = y;
34      }
35  
36      public int getX ()
37      {
38          return x;
39      }
40  
41      public void setX (int x)
42      {
43          this.x = x;
44      }
45  
46      public int getY ()
47      {
48          return y;
49      }
50  
51      public void setY (int y)
52      {
53          this.y = y;
54      }
55  }