org.zkoss.gmaps
Class Gimage

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.gmaps.Gimage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Mapitem, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.sys.ComponentCtrl

public class Gimage
extends org.zkoss.zk.ui.HtmlBasedComponent
implements Mapitem

Google Maps support Gimage.

Since:
2.0_7
Author:
henrichen
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
 
Field Summary
protected  double _nelat
           
protected  double _nelng
           
protected  double _swlat
           
protected  double _swlng
           
 
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
Gimage()
           
Gimage(java.lang.String src, double swlat, double swlng, double nelat, double nelng)
          Google Image (GGroundLayer).
 
Method Summary
 org.zkoss.image.Image getContent()
          Returns the content set by setContent(org.zkoss.image.Image).
 double getNelat()
          Returns the bounded north east latitude.
 double getNelng()
          Returns the bounded north east longitude.
 java.lang.String getOuterAttrs()
           
 java.lang.String getSrc()
          Returns the source URI of the image.
 double getSwlat()
          Returns the bounded south west latitude.
 double getSwlng()
          Returns the bounded south west longitude.
 boolean isChildable()
          Default: not childable.
 void setContent(org.zkoss.image.Image image)
          Sets the content directly.
 void setNelat(double nelat)
          Sets the bounded north east latitude.
 void setNelng(double nelng)
          Sets the bounded north east longitude.
 void setSrc(java.lang.String src)
          Sets the source URI of the image.
 void setSwlat(double swlat)
          Sets the bounded south west latitude.
 void setSwlng(double swlng)
          Sets the bounded south west longitude.
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
focus, getDraggable, getDroppable, getHeight, getInnerAttrs, 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, setParent, 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, setParent, setVariable, setVisible, smartUpdate, smartUpdateDeferred, unsetVariable
 

Field Detail

_swlat

protected double _swlat

_swlng

protected double _swlng

_nelat

protected double _nelat

_nelng

protected double _nelng
Constructor Detail

Gimage

public Gimage()

Gimage

public Gimage(java.lang.String src,
              double swlat,
              double swlng,
              double nelat,
              double nelng)
Google Image (GGroundLayer).

Parameters:
src - the image url
swlat - south west latitude to put the image.
swlng - south west longitude to put the image.
nelat - north east latitude to put the image.
nelng - north east longitude to put the image.
Method Detail

getSwlat

public double getSwlat()
Returns the bounded south west latitude.

Returns:
the bounded south west latitude.

setSwlat

public void setSwlat(double swlat)
Sets the bounded south west latitude.

Parameters:
swlat - south west latitude

getSwlng

public double getSwlng()
Returns the bounded south west longitude.

Returns:
the bounded south west longitude.

setSwlng

public void setSwlng(double swlng)
Sets the bounded south west longitude.

Parameters:
swlng - south west longitude

getNelat

public double getNelat()
Returns the bounded north east latitude.

Returns:
the bounded north east latitude.

setNelat

public void setNelat(double nelat)
Sets the bounded north east latitude.

Parameters:
nelat - the bounded north east latitude.

getNelng

public double getNelng()
Returns the bounded north east longitude.

Returns:
the bounded north east longitude.

setNelng

public void setNelng(double nelng)
Sets the bounded north east longitude.

Parameters:
nelng - the bounded north east longitude.

getSrc

public java.lang.String getSrc()
Returns the source URI of the image.

Default: null.


setSrc

public void setSrc(java.lang.String src)
Sets the source URI of the image.

If setContent(org.zkoss.image.Image) is ever called with non-null, it takes heigher priority than this method.

Parameters:
src - the URI of the image source

setContent

public void setContent(org.zkoss.image.Image image)
Sets the content directly. Default: null.

Parameters:
image - the image to display. If not null, it has higher priority than getSrc().

getContent

public org.zkoss.image.Image getContent()
Returns the content set by setContent(org.zkoss.image.Image).

Note: it won't fetch what is set thru by setSrc(java.lang.String). It simply returns what is passed to setContent(org.zkoss.image.Image).


getOuterAttrs

public java.lang.String getOuterAttrs()
Overrides:
getOuterAttrs in class org.zkoss.zk.ui.HtmlBasedComponent

isChildable

public boolean isChildable()
Default: not childable.

Specified by:
isChildable in interface org.zkoss.zk.ui.Component
Overrides:
isChildable in class org.zkoss.zk.ui.AbstractComponent


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.