Class Shape
java.lang.Object
com.webfirmframework.wffweb.tag.core.AbstractTagBase
com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute
com.webfirmframework.wffweb.tag.html.attribute.Shape
- All Implemented Interfaces:
TagBase
,AAttributable
,AreaAttributable
,Serializable
,Cloneable
This attribute is used to define a selectable region for hypertext source
links associated with a figure to create an image map. The values for the
attribute are circle, default, polygon, and rect. The format of the coords
attribute depends on the value of shape. For circle, the value is x,y,r where
x and y are the pixel coordinates for the center of the circle and r is the
radius value in pixels. For rect, the coords attribute should be x,y,w,h. The
x,y values define the upper-left-hand corner of the rectangle, while w and h
define the width and height respectively. A value of polygon for shape
requires x1,y1,x2,y2,... values for coords. Each of the x,y pairs defines a
point in the polygon, with successive points being joined by straight lines
and the last point joined to the first. The value default for shape requires
that the entire enclosed area, typically an image, be used.
shape
attribute for the element.NB: This attribute is not
supported by html5- Since:
- 1.0.0
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute
addAllToAttributeValueMap, addAllToAttributeValueSet, addAllToAttributeValueSet, addToAttributeValueMap, addToAttributeValueSet, addValueChangeListener, beforePrintStructure, beforePrintStructureCompressedByIndex, beforeWffPrintStructure, getAttributeName, getAttributeValue, getAttributeValueMap, getAttributeValueSet, getBinaryStructureCompressedByIndex, getBinaryStructureCompressedByIndex, getCharset, getOwnerTag, getOwnerTags, getPrintStructure, getPrintStructure, getReadLocks, getValueChangeListeners, getWffPrintStructure, getWriteLocks, lockAndGetReadLocks, lockAndGetReadLocksWithAttrLock, lockAndGetWriteLocks, lockAndGetWriteLocksWithAttrLock, removeAllFromAttributeValueMap, removeAllFromAttributeValueSet, removeAllFromAttributeValueSet, removeFromAttributeValueMap, removeFromAttributeValueMap, removeFromAttributeValueMapByKeys, removeFromAttributeValueSet, removeValueChangeListener, replaceAllInAttributeValueSet, replaceAllInAttributeValueSet, setAttributeName, setAttributeValue, setAttributeValue, setAttributeValueMap, setAttributeValueSet, setCharset, setModified, setModifiedLockless, setOwnerTag, setPreIndexedAttribute, toCompressedBytesByIndex, toCompressedBytesByIndex, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toString, toWffString, unsetOwnerTag
Methods inherited from class com.webfirmframework.wffweb.tag.core.AbstractTagBase
equals, getData, hashCode, isModified, isRebuild, setData, setRebuild
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.webfirmframework.wffweb.tag.core.TagBase
toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toString
-
Field Details
-
DEFAULT
Specifies the entire region- See Also:
-
rect
Defines a rectangular region- See Also:
-
circle
Defines a circular region- See Also:
-
poly
Defines a polygonal region- See Also:
-
-
Constructor Details
-
Shape
- Parameters:
value
- the value for the attribute- Since:
- 1.0.0
-
-
Method Details
-
setValue
sets the value for this attribute- Parameters:
value
- the value for the attribute.- Since:
- 1.0.0
-
setValue
sets the value for this attribute- Parameters:
updateClient
- true to update client browser page if it is available. The default value is true but it will be ignored if there is no client browser page.value
- the value for the attribute.- Since:
- 2.1.15
-
getValue
gets the value of this attribute- Returns:
- the value of the attribute
- Since:
- 1.0.0
-
init
protected void init()invokes only once per object- Since:
- 1.0.0
-