jp.sf.mapswidgets
Class Size

java.lang.Object
  extended by jp.sf.mapswidgets.Size
All Implemented Interfaces:
java.lang.Cloneable

public final class Size
extends java.lang.Object
implements java.lang.Cloneable

Instances of this class represents a 2-dimensional size measurement.

If a Size represents a latitude/longitude span, width is the number of longitude degrees, and height is the number of latitude degrees.

Application code does not need to explicitly release the resources managed by each instance when those instances are no longer required, and thus no dispose() method is provided.

See Google Maps API documentation [Class Reference > GSize].

See Also:
Bounds, Point

Constructor Summary
Size(double width, double height)
           
 
Method Summary
 Size clone()
           
 boolean equals(java.lang.Object tested)
           
 double getHeight()
          Get the height.
 double getWidth()
          Get the width.
 int hashCode()
           
 void setHeight(double height)
          Set the height.
 void setWidth(double width)
          Set the width.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Size

public Size(double width,
            double height)
Method Detail

clone

public Size clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object tested)
Overrides:
equals in class java.lang.Object

getHeight

public double getHeight()
Get the height.

See Google Maps API documentation [Class Reference > GSize > height].

Returns:
the height

getWidth

public double getWidth()
Get the width.

See Google Maps API documentation [Class Reference > GSize > width].

Returns:
the width

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

setHeight

public void setHeight(double height)
Set the height.

See Google Maps API documentation [Class Reference > GSize > height].

Parameters:
height - the height

setWidth

public void setWidth(double width)
Set the width.

See Google Maps API documentation [Class Reference > GSize > height].

Parameters:
width - the width

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object