|
TinyLine v2.0 |
||||||||
| 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.SVGGradientElem
The SVGGradientElem class implements the 'linearGradient' or the 'radialGradient' element.
Gradients consist of continuously smooth color transitions along a vector from one color to another. This class provides for two types of gradients, linear gradients and radial gradients.
| Field Summary | |
TinyColor |
gcolor
The gradient color. |
TinyMatrix |
gradientTransform
The optional additional transformation from the gradient coordinate system onto the target coordinate system. |
int |
gradientUnits
Defines the coordinate system |
int |
spreadMethod
Indicates what happens if the gradient starts or ends inside the bounds of the target rectangle. |
TinyString |
xlink_href
A URI reference to a different 'linearGradient' or 'radialGradient' element within the current SVG document fragment. |
| Fields inherited from class com.tinyline.svg.SVGNode |
animatedVals, 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 | |
SVGGradientElem(SVGGradientElem src)
Constructs a copy of the given SVGGradientElem 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. |
TinyRect |
getDevBounds(SVGRaster renderer)
Returns the device bounds of this SVGGradientElem node. |
void |
paint(SVGRaster renderer)
Draws this node. |
int |
setAttribute(int hattr,
java.lang.Object value)
Assigns or modifies the value of the specified attribute. |
void |
setDefaults()
|
| Methods inherited from class com.tinyline.svg.SVGNode |
addChild, contains, getBounds, getCapStyle, getCurrentColor, getDashArray, getDashOffset, getDisplay, getFillColor, getFillOpacity, getFillRule, getFontFamily, getFontSize, getGlobalTransform, getJoinStyle, getLineThickness, getMiterLimit, getNodeById, getOpacity, getStopColor, getStopOpacity, getStrokeColor, getStrokeOpacity, getTextAnchor, getVisibility, intersects, isDisplay, isVisible, matchUserAgent, nodeHitAt, removeChild, resolveColor, seekAElem |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public TinyColor gcolor
public TinyMatrix gradientTransform
public int spreadMethod
public int gradientUnits
public TinyString xlink_href
| Constructor Detail |
public SVGGradientElem(SVGGradientElem src)
| Method Detail |
public void setDefaults()
public SVGNode copyNode()
copyNode in class SVGNode
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.public java.lang.Object getAttribute(int hattr)
null object otherwise.
getAttribute in class SVGNodehattr - The attribute handle.
public void paint(SVGRaster renderer)
paint in class SVGNoderenderer - The SVGRaster object
that does the drawing.public int createOutline()
createOutline in class SVGNodepublic TinyRect getDevBounds(SVGRaster renderer)
getDevBounds in class SVGNoderenderer - The SVGRaster object.
COORDINATES ARE IN DEVICE SPACE.
|
TinyLine v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||