Package org.wicketstuff.gmap.api
Class GIcon
- java.lang.Object
-
- org.wicketstuff.gmap.api.GIcon
-
- All Implemented Interfaces:
Serializable
,Cloneable
,GValue
public class GIcon extends Object implements GValue, Cloneable
http://code.google.com/apis/maps/documentation/javascript/reference.html# MarkerImage- Author:
- Christian Hennig ([email protected])
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GIcon
clone()
GPoint
getAnchor()
String
getId()
String
getJSconstructor()
GPoint
getOrigin()
GSize
getScaledSize()
GSize
getSize()
String
getUrl()
GIcon
setAnchor(GPoint anchor)
The position at which to anchor an image in correspondance to the location of the marker on the map.GIcon
setOrigin(GPoint origin)
The position of the image within a sprite, if any.GIcon
setScaledSize(GSize scaledSize)
The size of the entire image after scaling, if any.GIcon
setSchema(String schema)
GIcon
setSize(GSize size)
The display size of the sprite or image.
-
-
-
Method Detail
-
clone
public GIcon clone()
- Overrides:
clone
in classObject
- See Also:
Object.clone()
-
getId
public String getId()
-
getJSconstructor
public String getJSconstructor()
- Specified by:
getJSconstructor
in interfaceGValue
- Returns:
- A JavaScript constructor that represents this element.
- See Also:
GValue.getJSconstructor()
-
getSize
public GSize getSize()
-
setSize
public GIcon setSize(GSize size)
The display size of the sprite or image. When using sprites, you must specify the sprite size. If the size is not provided, it will be set when the image loads.
-
getOrigin
public GPoint getOrigin()
-
setOrigin
public GIcon setOrigin(GPoint origin)
The position of the image within a sprite, if any. By default, the origin is located at the top left corner of the image (0, 0).
-
getScaledSize
public GSize getScaledSize()
-
setScaledSize
public GIcon setScaledSize(GSize scaledSize)
The size of the entire image after scaling, if any. Use this property to stretch/shrink an image or a sprite.
-
getAnchor
public GPoint getAnchor()
-
setAnchor
public GIcon setAnchor(GPoint anchor)
The position at which to anchor an image in correspondance to the location of the marker on the map. By default, the anchor is located along the center point of the bottom of the image.
-
getUrl
public String getUrl()
-
-