org.opengis.display.canvas
Interface CanvasController

Show UML class diagram

public interface CanvasController

Controls the state of a canvas, including its position, scale and title.

Since:
GeoAPI 2.2

Method Summary
 void setCenter(DirectPosition center)
          Sets the position of the center point of the canvas.
 void setObjectiveCRS(CoordinateReferenceSystem crs)
          Sets the "real world" Coordinate Reference System.
 void setTitle(InternationalString title)
          Sets the title of the canvas.
 

Method Detail

setTitle

@UML(identifier="Canvas.setTitle",
     specification=OGC_03064,
     obligation=OPTIONAL)
void setTitle(InternationalString title)
Sets the title of the canvas. The title of a canvas may or may not be displayed in the titlebar of an application's window.

Parameters:
title - The new title for the canvas.
See Also:
CanvasState.getTitle()

setCenter

@UML(identifier="setCenter",
     specification=OGC_03064,
     obligation=OPTIONAL)
void setCenter(DirectPosition center)
Sets the position of the center point of the canvas. The coordinate shall be in objective CRS.

Parameters:
center - The new center position.
See Also:
CanvasState.getCenter()

setObjectiveCRS

@UML(identifier="Canvas.setObjectiveCoordinateReferenceSystem",
     specification=OGC_03064,
     obligation=OPTIONAL)
void setObjectiveCRS(CoordinateReferenceSystem crs)
                     throws TransformException
Sets the "real world" Coordinate Reference System. This is typically a projected CRS using linear units like metre. Graphic data will be projected to this CRS before to be display.

Parameters:
crs - The new objective Coordinate Reference System.
Throws:
TransformException - If at least one graphic primivite can not be transformed to the specified CRS, or if the given CRS can not be accepted for an other reason.
See Also:
CanvasState.getObjectiveCRS()


Copyright © 1994-2012 Open Geospatial Consortium. All Rights Reserved.