public class SVGPaintParser extends Object
paint ::= none
| currentColor
| color [icccolor]
| funciri [ none | currentColor | color [icccolor] ]
| inherit
color ::= "#" hexdigit hexdigit hexdigit (hexdigit hexdigit hexdigit)?
| "rgb(" wsp* integer comma integer comma integer wsp* ")"
| "rgb(" wsp* integer "%" comma integer "%" comma integer "%" wsp* ")"
| color-keyword
hexdigit ::= [0-9A-Fa-f]
comma ::= wsp* "," wsp*
icccolor ::= "icc-color(" name (comma-wsp number)+ ")"
name ::= [^,()#x20#x9#xD#xA]*
| Modifier and Type | Field and Description |
|---|---|
static OMSVGPaint |
CURRENT_COLOR |
static OMSVGPaint |
INHERIT |
static SVGPaintParser |
INSTANCE |
static OMSVGPaint |
NONE |
| Constructor and Description |
|---|
SVGPaintParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
getNamedColor(String str) |
OMSVGICCColor |
iccColor(String str) |
OMSVGPaint |
parse(String cssText) |
OMRGBColor |
rgbColor(String str) |
public static final OMSVGPaint NONE
public static final OMSVGPaint INHERIT
public static final OMSVGPaint CURRENT_COLOR
public static final SVGPaintParser INSTANCE
public OMSVGPaint parse(String cssText)
public OMSVGICCColor iccColor(String str)
public OMRGBColor rgbColor(String str)
Copyright © 2018. All Rights Reserved.