Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.pictures.tiles.gwt.client.model
Class TilingModel

java.lang.Object
  extended by org.nuxeo.ecm.platform.pictures.tiles.gwt.client.model.TilingModel

public class TilingModel
extends Object

Author:
Thomas Roger

Nested Class Summary
static class TilingModel.TilingModelEvent
           
 
Constructor Summary
TilingModel(TilingInfo ti, int viewAreaWidth, int viewAreaHeight, double defaultZoom)
           
 
Method Summary
 void addListener(TilingModelListener listener)
           
 void centerOn(int x, int y)
           
 void centerOn(int x, int y, boolean fireEvent)
           
 String getBaseUrl()
           
 double getCurrentZoom()
           
 int getHeightInTiles()
           
 long getLastModificationDate()
           
 int getTileHeight()
           
 int getTileWidth()
           
 int getTotalHeight()
           
 int getTotalWidth()
           
 int getViewAreaHeight()
           
 int getViewAreaLeft()
           
 int getViewAreaTop()
           
 int getViewAreaWidth()
           
 int getWidthInTiles()
           
 void move(int x, int y)
           
 void move(int x, int y, boolean fireEvent)
           
 void notifyListeners()
           
 void removeListener(TilingModelListener listener)
           
 void resetView()
           
 void setLocation(int left, int top)
           
 void setLocation(int left, int top, boolean fireEvent)
           
 void zoomIn()
           
 void zoomOut()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TilingModel

public TilingModel(TilingInfo ti,
                   int viewAreaWidth,
                   int viewAreaHeight,
                   double defaultZoom)
Method Detail

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()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.