com.yworks.yfiles.server.tiles.support
Class ViewPort

java.lang.Object
  extended bycom.yworks.yfiles.server.tiles.support.ViewPort

public class ViewPort
extends Object

This object contains the view point and the zoom of the client side canvas. The view point is the upper left coordinate of the visible region in world coordinates.


Constructor Summary
ViewPort(YPoint viewPoint, double zoom)
          creates a new ViewPort instance from the given view point and zoom level.
 
Method Summary
 YPoint getViewPoint()
           
 double getZoom()
           
 void setViewPoint(YPoint viewPoint)
          sets the view point of this ViewPort.
 void setZoom(double zoom)
          sets the zoom level of this ViewPort.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewPort

public ViewPort(YPoint viewPoint,
                double zoom)
creates a new ViewPort instance from the given view point and zoom level.

Parameters:
viewPoint - the upper left visible point
zoom - the zoom level
Method Detail

getViewPoint

public YPoint getViewPoint()
Returns:
the view point of this ViewPort.

setViewPoint

public void setViewPoint(YPoint viewPoint)
sets the view point of this ViewPort.

Parameters:
viewPoint - the upper left visible point

getZoom

public double getZoom()
Returns:
the zoom level of this ViewPort.

setZoom

public void setZoom(double zoom)
sets the zoom level of this ViewPort.

Parameters:
zoom - the zoom level


Copyright © 2006-2013 yWorks GmbH. All rights reserved