|
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
public class SVGPathElem
The SVGPathElem class implements the 'path' element.
Paths represent the outline of a shape which can be filled and or stroked. A path is described using the concept of a current point. In an analogy with drawing on paper, the current point can be thought of as the location of the pen. The position of the pen can be changed, and the outline of a shape (open or closed) can be traced by dragging the pen in either straight lines or curves.
| Field Summary | |
|---|---|
boolean |
isAntialiased
|
TinyPath |
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 | |
|---|---|
SVGPathElem(SVGPathElem src)
Constructs a copy of the given SVGPathElem 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. |
SVGNode |
nodeHitAt(SVGRaster renderer,
TinyPoint p)
Returns the SVGNode node containing TinyPoint p. |
void |
paint(SVGRaster renderer)
Draws this node. |
int |
setAttribute(int hattr,
java.lang.Object value)
Assigns or modifies the value of the specified attribute. |
| 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 boolean isAntialiased
public TinyPath path
| Constructor Detail |
|---|
public SVGPathElem(SVGPathElem src)
| Method Detail |
|---|
public SVGNode copyNode()
copyNode in class SVGNodepublic int createOutline()
createOutline in class SVGNodepublic java.lang.Object getAttribute(int hattr)
null object otherwise.
getAttribute in class SVGNodehattr - The attribute handle.
public SVGNode nodeHitAt(SVGRaster renderer,
TinyPoint p)
nodeHitAt in class SVGNoderenderer - The SVGRaster objectp - the specified TinyPoint in DEVICE SPACE
12/26/2008 6:41AMpublic void paint(SVGRaster renderer)
paint in class SVGNoderenderer - The SVGRaster object
that does the drawing.
public int setAttribute(int hattr,
java.lang.Object value)
throws java.lang.Exception
setAttribute in class SVGNodehattr - 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 | |||||||