GoogleMaps/API/doc/ClassReference/12-GSize の変更点-N☆E 学習帳

[ リロード ]   [ ソース ]  [ トップ | 一覧 | 単語検索 | 最新 | バックアップ | ヘルプ ]


// author:1
*GSize
*GSize [class]
http://www.google.com/apis/maps/documentation/
**Version 2 (2006.4)
>A GSize is the size in pixels of a rectangular area of the map. The size object has two parameters, width and height. Width is a difference in the x-coordinate; height is a difference in the y-coordinate, of points.

**Constructor
>Notice that while the two parameters of a GSize are accessible as properties width and height, it is better to never modify them, but to create a new object with different paramaters instead.

***Constructor
|TLEFT:97%||c
|Constructor|Description|h
|GSize(width, height)|Creates a GSize object.|
**Properties

 
***Properties
|TLEFT:97%||c
|Properties|Type|Description|h
|width|Number|The width parameter.|
|height|Number|The height parameter.|

 
***Methods
|TLEFT:97%||c
|Methods|Return Value|Description|h
|&font(Red){equals};(other)|Boolean|Returns true iff the other size has exactly equal components.|
|&font(Red){toString};()|String|Returns a string that contains the wdith and height parameter, in this order, separated by a comma.|

 
**Version 1
>GSize represents a 2-dimensional size measurement. If a GSize represents a lat/lng span, width is to the number longitude degrees, and y is the number of latitude degrees.


***Constructor
|TLEFT:90%||c
|Constructor |Description |h
|GSize(width, height) |Creates a new size with the given measurement values |

 
***Properties
|TLEFT:90%||c
|Property |Description |h
|width |The width measurement |
|height |The height measurement |