/**************************************************************************************************
 **
 ** $Id: CanvasController.java 831 2006-05-01 00:27:23Z Desruisseaux $
 **
 ** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/go/display/canvas/CanvasController.java $
 **
 ** Copyright (C) 2003-2005 Open GIS Consortium, Inc.
 ** All Rights Reserved. http://www.opengis.org/legal/
 **
 *************************************************************************************************/
package org.opengis.go.display.canvas;

import org.opengis.spatialschema.geometry.DirectPosition;

/**
 * The CanvasController interface serves as the token in the 
 * CanvasController <--> Canvas interaction.  When 
 * the Canvas enables a CanvasHandler, it calls
 * handlerEnabled(CanvasController) on the 
 * CanvasHandler.  The CanvasController may then be
 * used by the programmer to set some of the properties of the associated
 * Canvas.  The CanvasController will be active
 * until another CanvasHandler is enabled.
 * 

* The CanvasController's methods (in an implementation-specific * interaction with the Canvas) should only set the * Canvas's properties IFF the * CanvasController is recognized to be the active controller (the * controller given out by the canvas when the most recent handler was * enabled). * * @author Open GIS Consortium, Inc. * @version $Revision: 658 $, $Date: 2006-02-23 12:09:34 +1100 (jeu., 23 févr. 2006) $ */ public interface CanvasController { /** * Sets the position of the center pixel of the Canvas this * controller works for, if it is the active controller. * @see CanvasState#getCenter() */ public void setCenter(DirectPosition newCenter); }

Ads help maintain this website.