|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.AbstractComponent org.zkoss.zk.ui.HtmlBasedComponent org.zkoss.zul.impl.XulElement org.zkoss.gmaps.Ginfo org.zkoss.gmaps.Gmarker
public class Gmarker
The gmarker of the Gooogle Maps. Since 2.0_6 we support associated icon with the GMarker (see all getIconXxx() and setIconXxx() methods).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl |
Field Summary |
---|
Fields inherited from class org.zkoss.gmaps.Ginfo |
---|
_lat, _lng |
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Constructor Summary | |
---|---|
Gmarker()
|
|
Gmarker(java.lang.String content)
|
|
Gmarker(java.lang.String content,
double lat,
double lng)
|
Method Summary | |
---|---|
int |
getIconAnchorX()
Returns the x pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map. |
int |
getIconAnchorY()
Returns the y pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map. |
int |
getIconDragCrossAnchorX()
Returns the x pixel coordinate offsets (relative to the iconAnchor) of the cross image when an icon is dragged. |
int |
getIconDragCrossAnchorY()
Returns the y pixel coordinate offsets (relative to the iconAnchor) of the cross image when an icon is dragged. |
int |
getIconDragCrossHeight()
Returns the pixel height of the cross image when an icon is dragged. |
java.lang.String |
getIconDragCrossImage()
Returns the cross image URL when an icon is dragged. |
int |
getIconDragCrossWidth()
Returns the pixel width of the cross image when an icon is dragged. |
int |
getIconHeight()
Returns the pixel height of the foreground image of the icon. |
java.lang.String |
getIconImage()
Returns the foreground image URL of the icon. |
java.lang.String |
getIconImageMap()
Return a comma delimitered integers representing the x/y coordinates of the image map we should use to specify the clickable part of the icon image in browsers other than Internet Explorer. |
int |
getIconInfoAnchorX()
Returns the x pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon. |
int |
getIconInfoAnchorY()
Returns the y pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon. |
int |
getIconMaxHeight()
Returns the distance pixels in which a marker will visually "rise" vertically when dragged. |
java.lang.String |
getIconMozPrintImage()
Returns the URL of the foreground icon image used for printed maps in Firefox/Mozilla. |
java.lang.String |
getIconPrintImage()
Returns the URL of the foreground icon image used for printed maps. |
java.lang.String |
getIconPrintShadow()
Returns the URL of the shadow image used for printed maps. |
java.lang.String |
getIconShadow()
Returns the shadow image URL of the icon. |
int |
getIconShadowHeight()
Returns the pixel height of the shadow image. |
int |
getIconShadowWidth()
Return the pixel width of the shadow image. |
java.lang.String |
getIconTransparent()
Returns the URL of a virtually transparent version of the foreground icon image used to capture click events in Internet Explorer. |
int |
getIconWidth()
Returns the pixel width of the foreground image of the icon. |
int |
getMaxzoom()
Returns the maximum visible zoom level of this Gmarker (default to 17). |
int |
getMinzoom()
Returns the minimum visible zoom level of this Gmarker (default to 0). |
java.lang.String |
getOuterAttrs()
Returns the HTML attributes for this tag. |
boolean |
isDraggingEnabled()
Returns whether this Gmarker is enabled to drag "INSIDE" the maps; default is true. |
void |
setDraggingEnabled(boolean b)
Sets whether this Gmarker is enabled to drag "INSIDE" the maps; default is true. |
void |
setIconAnchorX(int iconAnchorX)
Sets the x pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map. |
void |
setIconAnchorY(int iconAnchorY)
Sets the y pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map. |
void |
setIconDragCrossAnchorX(int iconDragCrossAnchorX)
Sets the x pixel coordinate offsets (relative to the iconAnchor) of the cross image when an icon is dragged. |
void |
setIconDragCrossAnchorY(int iconDragCrossAnchorY)
Sets the y pixel coordinate offsets (relative to the iconAnchor) of the cross image when an icon is dragged. |
void |
setIconDragCrossHeight(int iconDragCrossHeight)
Sets the pixel height of the cross image when an icon is dragged. |
void |
setIconDragCrossImage(java.lang.String iconDragCrossImage)
Sets the cross image URL when an icon is dragged. |
void |
setIconDragCrossWidth(int iconDragCrossWidth)
Sets the pixel width of the cross image when an icon is dragged. |
void |
setIconHeight(int iconHeight)
Sets the pixel height of the foreground image of the icon. |
void |
setIconImage(java.lang.String iconImage)
Sets the foreground image URL of the icon. |
void |
setIconImageMap(java.lang.String iconImageMap)
Sets an comma delimitered integers representing the x/y coordinates of the image map we should use to specify the clickable part of the icon image in browsers other than Internet Explorer. |
void |
setIconInfoAnchorX(int iconInfoAnchorX)
Sets the x pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon. |
void |
setIconInfoAnchorY(int iconInfoAnchorY)
Sets the y pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon. |
void |
setIconMaxHeight(int iconMaxHeight)
Sets the distance pixels in which a marker will visually "rise" vertically when dragged. |
void |
setIconMozPrintImage(java.lang.String iconMozPrintImage)
Sets the URL of the foreground icon image used for printed maps in Firefox/Mozilla. |
void |
setIconPrintImage(java.lang.String iconPrintImage)
Sets the URL of the foreground icon image used for printed maps. |
void |
setIconPrintShadow(java.lang.String iconPrintShadow)
Sets the URL of the shadow image used for printed maps. |
void |
setIconShadow(java.lang.String iconShadow)
Sets the shadow image URL of the icon. |
void |
setIconShadowHeight(int iconShadowHeight)
Sets the pixel height of the shadow image. |
void |
setIconShadowWidth(int iconShadowWidth)
Sets the pixel width of the shadow image. |
void |
setIconSizeHeight(int iconHeight)
Deprecated. use setIconHeight(int) instead |
void |
setIconTransparent(java.lang.String iconTransparent)
Sets the URL of a virtually transparent version of the foreground icon image used to capture click events in Internet Explorer. |
void |
setIconWidth(int iconWidth)
Sets the pixel width of the foreground image of the icon. |
void |
setMaxzoom(int lv)
Sets the maximum visible zoom level of this Gmarker (max 17). |
void |
setMinzoom(int lv)
Sets the minimum visible zoom level of this Gmarker (min 0). |
Methods inherited from class org.zkoss.gmaps.Ginfo |
---|
getContent, getLat, getLng, isChildable, isOpen, setAnchor, setContent, setLat, setLng, setOpen, setParent |
Methods inherited from class org.zkoss.zul.impl.XulElement |
---|
getAction, getActionAttrs, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
focus, getDraggable, getDroppable, getHeight, getLeft, getRealSclass, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, newExtraCtrl, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
addAnnotation, addAnnotation, addEventHandler, addEventListener, addForward, addForward, addMoved, addSharedAnnotationMap, addSharedEventHandlerMap, appendAsapAttr, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getMoldURI, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isAsapRequired, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onPageAttached, onPageDetached, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setPageBefore, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, smartUpdateDeferred, toString, unsetVariable |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.zkoss.zk.ui.Component |
---|
addEventListener, addForward, addForward, appendChild, applyProperties, clone, containsVariable, detach, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getFellow, getFellowIfAny, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onPageAttached, onPageDetached, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, setAttribute, setAttribute, setId, setMold, setPage, setPageBefore, setVariable, setVisible, smartUpdate, smartUpdateDeferred, unsetVariable |
Constructor Detail |
---|
public Gmarker()
public Gmarker(java.lang.String content)
public Gmarker(java.lang.String content, double lat, double lng)
Method Detail |
---|
public void setDraggingEnabled(boolean b)
b
- whether enable dragging this Gmarker inside the maps.public boolean isDraggingEnabled()
public int getIconAnchorX()
public void setIconAnchorX(int iconAnchorX)
iconAnchorX
- x pixel coordinate relative to the top left corner of the icon imagepublic int getIconAnchorY()
public void setIconAnchorY(int iconAnchorY)
iconAnchorY
- y pixel coordinate relative to the top left corner of the icon imagepublic int getIconDragCrossAnchorX()
public void setIconDragCrossAnchorX(int iconDragCrossAnchorX)
iconDragCrossAnchorX
- the iconDragCrossAnchorX to setpublic int getIconDragCrossAnchorY()
public void setIconDragCrossAnchorY(int iconDragCrossAnchorY)
iconDragCrossAnchorY
- the iconDragCrossAnchorY to setpublic int getIconDragCrossHeight()
public void setIconDragCrossHeight(int iconDragCrossHeight)
iconDragCrossHeight
- the iconDragCrossHeight to setpublic java.lang.String getIconDragCrossImage()
public void setIconDragCrossImage(java.lang.String iconDragCrossImage)
iconDragCrossImage
- the iconDragCrossImage to setpublic int getIconDragCrossWidth()
public void setIconDragCrossWidth(int iconDragCrossWidth)
iconDragCrossWidth
- the iconDragCrossWidth to setpublic java.lang.String getIconImage()
public void setIconImage(java.lang.String iconImage)
iconImage
- the iconImage URL to setpublic java.lang.String getIconImageMap()
public void setIconImageMap(java.lang.String iconImageMap)
iconImageMap
- the iconImageMap to setpublic int getIconInfoAnchorX()
public void setIconInfoAnchorX(int iconInfoAnchorX)
iconInfoAnchorX
- the iconInfoAnchorX to setpublic int getIconInfoAnchorY()
public void setIconInfoAnchorY(int iconInfoAnchorY)
iconInfoAnchorY
- the iconInfoAnchorY to setpublic int getIconMaxHeight()
public void setIconMaxHeight(int iconMaxHeight)
iconMaxHeight
- the iconMaxHeight to setpublic java.lang.String getIconMozPrintImage()
public void setIconMozPrintImage(java.lang.String iconMozPrintImage)
iconMozPrintImage
- the iconMozPrintImage to setpublic java.lang.String getIconPrintImage()
public void setIconPrintImage(java.lang.String iconPrintImage)
iconPrintImage
- the iconPrintImage to setpublic java.lang.String getIconPrintShadow()
public void setIconPrintShadow(java.lang.String iconPrintShadow)
iconPrintShadow
- the iconPrintShadow to setpublic java.lang.String getIconShadow()
public void setIconShadow(java.lang.String iconShadow)
iconShadow
- the iconShadow to setpublic int getIconShadowHeight()
public void setIconShadowHeight(int iconShadowHeight)
iconShadowHeight
- the iconShadowHeight to setpublic int getIconShadowWidth()
public void setIconShadowWidth(int iconShadowWidth)
iconShadowWidth
- the iconShadowWidth to setpublic int getIconHeight()
public void setIconHeight(int iconHeight)
iconHeight
- the iconHeight to setpublic void setIconSizeHeight(int iconHeight)
setIconHeight(int)
instead
iconHeight
- the iconSizeHeight to setpublic int getIconWidth()
public void setIconWidth(int iconWidth)
iconWidth
- the icon width in pixel to setpublic java.lang.String getIconTransparent()
public void setIconTransparent(java.lang.String iconTransparent)
iconTransparent
- the iconTransparent to setpublic int getMaxzoom()
public void setMaxzoom(int lv)
public int getMinzoom()
public void setMinzoom(int lv)
public java.lang.String getOuterAttrs()
Used only for component development, not for application developers.
getOuterAttrs
in class Ginfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |