Package elki.visualization.svg
Class SVGEffects
- java.lang.Object
-
- elki.visualization.svg.SVGEffects
-
public final class SVGEffects extends java.lang.Object
Class containing some popular SVG effects.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LIGHT_GRADIENT_ID
ID for the light gradient fillstatic java.lang.String
SHADOW_ID
ID for the drop shadow effectstatic java.lang.String
SVG_CHECKMARK_PATH
Checkmark path, sized approx. 15x15
-
Constructor Summary
Constructors Modifier Constructor Description private
SVGEffects()
Private constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addLightGradient(SVGPlot svgp)
Static method to prepare a SVG document for light gradient effects.static void
addShadowFilter(SVGPlot svgp)
Static method to prepare a SVG document for drop shadow effects.static org.w3c.dom.Element
makeCheckmark(SVGPlot svgp)
Creates a 15x15 big checkmark
-
-
-
Field Detail
-
SHADOW_ID
public static final java.lang.String SHADOW_ID
ID for the drop shadow effect- See Also:
- Constant Field Values
-
LIGHT_GRADIENT_ID
public static final java.lang.String LIGHT_GRADIENT_ID
ID for the light gradient fill- See Also:
- Constant Field Values
-
SVG_CHECKMARK_PATH
public static final java.lang.String SVG_CHECKMARK_PATH
Checkmark path, sized approx. 15x15- See Also:
- Constant Field Values
-
-
Method Detail
-
addShadowFilter
public static void addShadowFilter(SVGPlot svgp)
Static method to prepare a SVG document for drop shadow effects. Invoke this from an appropriate update thread!- Parameters:
svgp
- Plot to prepare
-
addLightGradient
public static void addLightGradient(SVGPlot svgp)
Static method to prepare a SVG document for light gradient effects. Invoke this from an appropriate update thread!- Parameters:
svgp
- Plot to prepare
-
makeCheckmark
public static org.w3c.dom.Element makeCheckmark(SVGPlot svgp)
Creates a 15x15 big checkmark- Parameters:
svgp
- Plot to create the element for- Returns:
- Element
-
-