org.nuxeo.ecm.platform.pictures.tiles.gwt.client.model
Class TilingModel
java.lang.Object
org.nuxeo.ecm.platform.pictures.tiles.gwt.client.model.TilingModel
public class TilingModel
- extends Object
- Author:
- Thomas Roger
Constructor Summary |
TilingModel(TilingInfo ti,
int viewAreaWidth,
int viewAreaHeight,
double defaultZoom)
|
TilingModel
public TilingModel(TilingInfo ti,
int viewAreaWidth,
int viewAreaHeight,
double defaultZoom)
notifyListeners
public void notifyListeners()
move
public void move(int x,
int y,
boolean fireEvent)
move
public void move(int x,
int y)
resetView
public void resetView()
setLocation
public void setLocation(int left,
int top,
boolean fireEvent)
setLocation
public void setLocation(int left,
int top)
centerOn
public void centerOn(int x,
int y,
boolean fireEvent)
centerOn
public void centerOn(int x,
int y)
zoomIn
public void zoomIn()
zoomOut
public void zoomOut()
addListener
public void addListener(TilingModelListener listener)
removeListener
public void removeListener(TilingModelListener listener)
getTotalWidth
public int getTotalWidth()
- Returns:
- the totalWidth.
getTotalHeight
public int getTotalHeight()
- Returns:
- the totalHeight.
getViewAreaTop
public int getViewAreaTop()
- Returns:
- the viewAreaTop.
getViewAreaLeft
public int getViewAreaLeft()
- Returns:
- the viewAreaLeft.
getViewAreaWidth
public int getViewAreaWidth()
- Returns:
- the viewAreaWidth.
getViewAreaHeight
public int getViewAreaHeight()
- Returns:
- the viewAreaHeight.
getTileWidth
public int getTileWidth()
getTileHeight
public int getTileHeight()
getWidthInTiles
public int getWidthInTiles()
getHeightInTiles
public int getHeightInTiles()
getBaseUrl
public String getBaseUrl()
getCurrentZoom
public double getCurrentZoom()
getLastModificationDate
public long getLastModificationDate()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.