001: /*
002: * Copyright (C) 2005 - 2008 JasperSoft Corporation. All rights reserved.
003: * http://www.jaspersoft.com.
004: *
005: * Unless you have purchased a commercial license agreement from JasperSoft,
006: * the following license terms apply:
007: *
008: * This program is free software; you can redistribute it and/or modify
009: * it under the terms of the GNU General Public License version 2 as published by
010: * the Free Software Foundation.
011: *
012: * This program is distributed WITHOUT ANY WARRANTY; and without the
013: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
014: * See the GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
018: * or write to:
019: *
020: * Free Software Foundation, Inc.,
021: * 59 Temple Place - Suite 330,
022: * Boston, MA USA 02111-1307
023: *
024: *
025: *
026: *
027: * PositionedElement.java
028: *
029: * Created on 5 luglio 2003, 13.17
030: *
031: */
032:
033: package it.businesslogic.ireport.undo;
034:
035: import it.businesslogic.ireport.*;
036:
037: /**
038: *
039: * @author Administrator
040: */
041: public class PositionedElement {
042:
043: private ReportElement element;
044:
045: private int oldPosition;
046:
047: private int newPosition;
048:
049: public PositionedElement(ReportElement element, int oldPosition,
050: int newPosition) {
051: this .element = element;
052: this .oldPosition = oldPosition;
053: this .newPosition = newPosition;
054: }
055:
056: /** Getter for property element.
057: * @return Value of property element.
058: *
059: */
060: public it.businesslogic.ireport.ReportElement getElement() {
061: return element;
062: }
063:
064: /** Setter for property element.
065: * @param element New value of property element.
066: *
067: */
068: public void setElement(
069: it.businesslogic.ireport.ReportElement element) {
070: this .element = element;
071: }
072:
073: /** Getter for property newPosition.
074: * @return Value of property newPosition.
075: *
076: */
077: public int getNewPosition() {
078: return newPosition;
079: }
080:
081: /** Setter for property newPosition.
082: * @param newPosition New value of property newPosition.
083: *
084: */
085: public void setNewPosition(int newPosition) {
086: this .newPosition = newPosition;
087: }
088:
089: /** Getter for property oldPosition.
090: * @return Value of property oldPosition.
091: *
092: */
093: public int getOldPosition() {
094: return oldPosition;
095: }
096:
097: /** Setter for property oldPosition.
098: * @param oldPosition New value of property oldPosition.
099: *
100: */
101: public void setOldPosition(int oldPosition) {
102: this.oldPosition = oldPosition;
103: }
104:
105: }
|