|
TinyLine 2.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.tinyline.svg.SVGNode
com.tinyline.svg.SVGPathElem
com.tinyline.svg.SVGPolygonElem
public class SVGPolygonElem
The SVGPolygonElem class implements the 'polyline' and 'polygon' elements.
The 'polyline' element defines a set of connected straight line segments. Typically, 'polyline' elements define open shapes.
The 'polygon' element defines a closed shape consisting of a set of connected straight line segments.
| Field Summary | |
|---|---|
TinyVector |
points
The points that make up the polyline or polygon. |
| Fields inherited from class com.tinyline.svg.SVGPathElem |
|---|
isAntialiased, path |
| Fields inherited from class com.tinyline.svg.SVGNode |
|---|
animatedVals, attrs, bounds, children, color, display, fill, fillOpacity, fillRule, fontFamily, fontSize, fontStyle, fontWeight, helem, id, opacity, outlined, ownerDocument, parent, stopColor, stopOpacity, stroke, strokeDashArray, strokeDashOffset, strokeLineCap, strokeLineJoin, strokeMiterLimit, strokeOpacity, strokeWidth, textAnchor, transform, visibility, xmlSpace |
| Constructor Summary | |
|---|---|
SVGPolygonElem(SVGPolygonElem src)
Constructs a copy of the given SVGPolygonElem node. |
|
| Method Summary | |
|---|---|
SVGNode |
copyNode()
Constructs a copy of the given node. |
int |
createOutline()
Creates an outline of this node. |
java.lang.Object |
getAttribute(int hattr)
Returns the value object for the given attribute, or null object otherwise. |
int |
setAttribute(int hattr,
java.lang.Object value)
Assigns or modifies the value of the specified attribute. |
| Methods inherited from class com.tinyline.svg.SVGPathElem |
|---|
nodeHitAt, paint |
| Methods inherited from class com.tinyline.svg.SVGNode |
|---|
addChild, contains, getBounds, getCapStyle, getCurrentColor, getDashArray, getDashOffset, getDevBounds, getDisplay, getFillColor, getFillOpacity, getFillRule, getFontFamily, getFontSize, getGlobalTransform, getJoinStyle, getLineThickness, getMiterLimit, getNodeById, getOpacity, getStopColor, getStopOpacity, getStrokeColor, getStrokeOpacity, getTextAnchor, getVisibility, intersects, isDisplay, isVisible, matchUserAgent, removeChild, resolveColor, seekAElem |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public TinyVector points
| Constructor Detail |
|---|
public SVGPolygonElem(SVGPolygonElem src)
| Method Detail |
|---|
public SVGNode copyNode()
copyNode in class SVGPathElempublic int createOutline()
createOutline in class SVGPathElempublic java.lang.Object getAttribute(int hattr)
null object otherwise.
getAttribute in class SVGPathElemhattr - The attribute handle.
public int setAttribute(int hattr,
java.lang.Object value)
throws java.lang.Exception
setAttribute in class SVGPathElemhattr - The attribute handle.value - The value of the attribute.
java.lang.Exception - if the value type doesn not match to the attribute handle.
|
TinyLine 2.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||