/**************************************************************************************************
 **
 ** $Id: CanvasState.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/CanvasState.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;

/**
 * Instances of this interface (and its sub-interfaces) describe the current
 * state of a Canvas.  The information contained by instances
 * of this interface should only describe the viewing area or volume of the
 * Canvas and should not contain any state information regarding the data 
 * contained within it.
 * 

* When an instance of this class is returned from Canvas * methods, a "snapshot" of the current state of the Canvas is taken * and the values will never change (even if the Canvas changes state). * * @author Open GIS Consortium, Inc. * @version $Revision: 658 $, $Date: 2006-02-23 12:09:34 +1100 (jeu., 23 févr. 2006) $ */ public interface CanvasState { /** * Returns the title of the Canvas. */ public String getTitle(); /** * Returns the position of the center pixel of this Canvas. */ public DirectPosition getCenter(); /** * Returns a copy of this state object. The implementation should also clone * the object returned by getCanvasParameterAccessor(). */ public Object clone() throws CloneNotSupportedException; /** * Determines if the given object is the same type of Canvas state object * and has values equal to this one. As part of the test, the implementation * should also test equivalency of the object returned by * getCanvasParameterAccessor(). */ public boolean equals(Object object); }

Ads help maintain this website.