Package com.github.weisj.jsvg.nodes
Class SolidColor
- java.lang.Object
-
- com.github.weisj.jsvg.nodes.AbstractSVGNode
-
- com.github.weisj.jsvg.nodes.SolidColor
-
- All Implemented Interfaces:
SimplePaintSVGPaint
,SVGPaint
,SVGNode
@ElementCategories(Gradient) @PermittedContent(categories={Animation,Descriptive}) public final class SolidColor extends AbstractSVGNode implements SimplePaintSVGPaint
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.Color
color
static java.lang.String
TAG
-
Fields inherited from interface com.github.weisj.jsvg.attributes.paint.SVGPaint
CONTEXT_FILL, CONTEXT_STROKE, CURRENT_COLOR, DEFAULT_PAINT, NONE
-
-
Constructor Summary
Constructors Constructor Description SolidColor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(@NotNull AttributeNode attributeNode)
@NotNull java.awt.Paint
paint()
@NotNull java.lang.String
tagName()
-
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, id, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.weisj.jsvg.attributes.paint.SimplePaintSVGPaint
drawShape, fillShape
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
color
private java.awt.Color color
-
-
Method Detail
-
tagName
@NotNull public @NotNull java.lang.String tagName()
-
paint
@NotNull public @NotNull java.awt.Paint paint()
- Specified by:
paint
in interfaceSimplePaintSVGPaint
-
build
public void build(@NotNull @NotNull AttributeNode attributeNode)
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classAbstractSVGNode
-
-