org.zkoss.gmaps
Class Gpolygon

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

public class Gpolygon
extends Gpolyline

Google Maps support Gpolygon.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.gmaps.Gpolyline
Gpolyline.Tuple
 
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.Gpolyline
_encodedLevels, _encodedPolyline, _points
 
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
Gpolygon()
           
 
Method Summary
 java.lang.String getEncodedLevels()
           
 java.lang.String getEncodedPolyline()
           
 java.lang.String getFillColor()
          Returns fill color in form of #RRGGBB, default to #808080.
 int getFillOpacity()
          Returns fill opacity from 0 (transparent) to 100 (solid), default to 50.
 java.lang.String getOuterAttrs()
          Returns the HTML attributes for this tag.
 boolean isFill()
          Returns whether to fill the interier of this polygon with the provided fill color getFillColor().
 boolean isOutline()
          Returns whether to draw the outline of this polygon with the provided color Gpolyline.getColor().
 void setFill(boolean b)
          Sets true to fill the interier of this polygon with the provided fill color getFillColor().
 void setFillColor(java.lang.String color)
          Sets fill color in form of #RRGGBB, default to #808080.
 void setFillOpacity(int op)
          Sets fill opacity from 0 (transparent) to 100 (solid), default to 50.
 void setOutline(boolean b)
          Sets true to draw the outline of this polygon with provied color Gpolyline.getColor().
 
Methods inherited from class org.zkoss.gmaps.Gpolyline
addPoint, e5, encodeInt, encodeLatLng, getColor, getNumLevels, getOpacity, getWeight, getZoomFactor, isChildable, setColor, setNumLevels, setOpacity, setPoints, setWeight
 
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, 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
 

Constructor Detail

Gpolygon

public Gpolygon()
Method Detail

isOutline

public boolean isOutline()
Returns whether to draw the outline of this polygon with the provided color Gpolyline.getColor().

Returns:
whether to draw the outline of this polygon.

setOutline

public void setOutline(boolean b)
Sets true to draw the outline of this polygon with provied color Gpolyline.getColor().

Parameters:
b - true to draw the outline of this polygon

isFill

public boolean isFill()
Returns whether to fill the interier of this polygon with the provided fill color getFillColor().

Returns:
whether to fill the interier of this polygon.

setFill

public void setFill(boolean b)
Sets true to fill the interier of this polygon with the provided fill color getFillColor().

Parameters:
b - true to fill the interier of this polygon

getFillColor

public java.lang.String getFillColor()
Returns fill color in form of #RRGGBB, default to #808080.

Returns:
the color

setFillColor

public void setFillColor(java.lang.String color)
Sets fill color in form of #RRGGBB, default to #808080.

Parameters:
color - the color to set

getFillOpacity

public int getFillOpacity()
Returns fill opacity from 0 (transparent) to 100 (solid), default to 50.


setFillOpacity

public void setFillOpacity(int op)
Sets fill opacity from 0 (transparent) to 100 (solid), default to 50.


getEncodedPolyline

public java.lang.String getEncodedPolyline()
Overrides:
getEncodedPolyline in class Gpolyline

getEncodedLevels

public java.lang.String getEncodedLevels()
Overrides:
getEncodedLevels in class Gpolyline

getOuterAttrs

public java.lang.String getOuterAttrs()
Returns the HTML attributes for this tag.

Used only for component development, not for application developers.

Overrides:
getOuterAttrs in class Gpolyline


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