org.wicketstuff.gmap.api
Class GIcon

java.lang.Object
  extended by 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 (christian.hennig@freiheit.com)
See Also:
Serialized Form

Constructor Summary
GIcon()
           
GIcon(char character)
           
GIcon(String image)
           
GIcon(String image, GSize iconSize, GPoint iconAnchor)
           
GIcon(String image, GSize iconSize, GPoint iconAnchor, GPoint origin, GSize scaledSize)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GIcon

public GIcon()

GIcon

public GIcon(String image)

GIcon

public GIcon(char character)

GIcon

public GIcon(String image,
             GSize iconSize,
             GPoint iconAnchor,
             GPoint origin,
             GSize scaledSize)

GIcon

public GIcon(String image,
             GSize iconSize,
             GPoint iconAnchor)
Method Detail

clone

public GIcon clone()
Overrides:
clone in class Object
See Also:
Object.clone()

getId

public String getId()

getJSconstructor

public String getJSconstructor()
Specified by:
getJSconstructor in interface GValue
Returns:
A JavaScript constructor that represents this element.
See Also:
wicket.contrib.gmap.api.GValue#getJSconstructor()

setSchema

public GIcon setSchema(String schema)

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()


Copyright © 2014. All rights reserved.