games.strategy.ui
Class ImageScrollModel
java.lang.Object
java.util.Observable
games.strategy.ui.ImageScrollModel
public class ImageScrollModel
- extends java.util.Observable
Model for an ImageScroller. Generally one large view and one small view will be
connected to the same model.
notifies its observers when changes occur.
- Author:
- sgb
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageScrollModel
public ImageScrollModel()
setMaxBounds
public void setMaxBounds(int maxWidth,
int maxHeight)
setBoxDimensions
public void setBoxDimensions(int maxX,
int maxy)
setScrollX
public void setScrollX(boolean aBool)
getScrollX
public boolean getScrollX()
getX
public int getX()
getY
public int getY()
getBoxWidth
public int getBoxWidth()
getBoxHeight
public int getBoxHeight()
getMaxWidth
public int getMaxWidth()
getMaxHeight
public int getMaxHeight()
set
public void set(int x,
int y)