Coordinates.convertCoordinateKind Method

Converts the co-ordinates from one kind to another.
 

Parameters

coordinateKind

Type: CoordinateKind
The target coordinate type.
templateCell

Type: TemplateCell
The template cell (if any), otherwise null.
scale

Type: Number
The scale (from canvas.getVision().scale).
adapter

Type: dundas.views.controls.Adapter
The adapter that this coordinate is relative to. If coordinateKind is ADAPTER, then this is required. If coordinateKind is SELECTIONFRAME, adapter is required if this coordinate is currently not ADAPTER
viewPanel

Type: ViewPanel
The viewpanel.

Return Value


Type: Coordinates
The new co-ordinates.