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: package org.apache.jetspeed.layout.impl;
18:
19: import org.apache.jetspeed.layout.Coordinate;
20:
21: /**
22: *
23: * CoordinateImpl
24: *
25: * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
26: * @author <a>David Gurney</a>
27: * @version $Id: $
28: */
29: public class CoordinateImpl implements Coordinate {
30:
31: private int m_iOldCol = -1;
32:
33: private int m_iOldRow = -1;
34:
35: private int m_iNewCol = -1;
36:
37: private int m_iNewRow = -1;
38:
39: public CoordinateImpl() {
40: }
41:
42: public CoordinateImpl(int p_iOldCol, int p_iOldRow) {
43: m_iOldCol = p_iOldCol;
44: m_iOldRow = p_iOldRow;
45: }
46:
47: public CoordinateImpl(int p_iOldCol, int p_iOldRow, int p_iNewCol,
48: int p_iNewRow) {
49: m_iOldCol = p_iOldCol;
50: m_iOldRow = p_iOldRow;
51: m_iNewCol = p_iNewCol;
52: m_iNewRow = p_iNewRow;
53: }
54:
55: public int getNewCol() {
56: return m_iNewCol;
57: }
58:
59: public int getNewRow() {
60: return m_iNewRow;
61: }
62:
63: public int getOldCol() {
64: return m_iOldCol;
65: }
66:
67: public int getOldRow() {
68: return m_iOldRow;
69: }
70:
71: }
|