001: // @@
002: // @@
003: /*
004: * Wi.Ser Framework
005: *
006: * Version: 1.8.1, 20-September-2007
007: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library located in LGPL.txt in the
021: * license directory; if not, write to the
022: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
023: * Boston, MA 02111-1307, USA.
024: *
025: * If this agreement does not cover your requirements, please contact us
026: * via email to get detailed information about the commercial license
027: * or our service offerings!
028: *
029: */
030: // @@
031: package de.ug2t.unifiedGui.interfaces;
032:
033: /**
034: * @author Dirk
035: *
036: * date: 20.03.2004 project: WiSer-Framework
037: *
038: * <p>
039: * IUnScrollController is the common interface to all widgets which include
040: * scroll functionality which can be controlled by the user
041: * </p>
042: */
043: public interface IUnScrollController {
044: /**
045: * <p>
046: * Adds an offset in x direction to the current position of the horizontal
047: * scrollbar
048: * </p>
049: * <p>
050: *
051: * </p>
052: * <p>
053: *
054: * @param xPx
055: * offset to add
056: * </p>
057: */
058: public void pcmf_scrollXRel(int xPx);
059:
060: /**
061: * <p>
062: * Sets the absolute position of the horizontal scrollbar
063: * </p>
064: * <p>
065: *
066: * </p>
067: * <p>
068: *
069: * @param xPx
070: * offset to add
071: * </p>
072: */
073: public void pcmf_scrollXAbs(int xPx);
074:
075: /**
076: * <p>
077: * Adds an offset in y direction to the current position of the vertical
078: * scrollbar
079: * </p>
080: * <p>
081: *
082: * </p>
083: * <p>
084: *
085: * @param xPy
086: * offset to add
087: * </p>
088: */
089: public void pcmf_scrollYRel(int xPy);
090:
091: /**
092: * <p>
093: * Sets the absolute position of the vertical scrollbar
094: * </p>
095: * <p>
096: *
097: * </p>
098: * <p>
099: *
100: * @param xPy
101: * offset to add
102: * </p>
103: */
104: public void pcmf_scrollYAbs(int xPy);
105:
106: /**
107: * <p>
108: * Gets the current position of the horizontal scrollbar
109: * </p>
110: * <p>
111: *
112: * @return position
113: * </p>
114: * <p>
115: * </p>
116: */
117: public int pcmf_getXScroll();
118:
119: /**
120: * <p>
121: * Gets the current position of the vertical scrollbar
122: * </p>
123: * <p>
124: *
125: * @return position
126: * </p>
127: * <p>
128: * </p>
129: */
130: public int pcmf_getYScroll();
131: }
|