summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/salamander/svg/fills/SVGGradientElement.java
blob: 98690b0d8b1d8ef7cbb9861db61a2343ccd733c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
 * SVGGradientElement.java
 *
 * Created on April 13, 2007, 10:12 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.kitfox.salamander.svg.fills;

import com.kitfox.salamander.svg.basic.SVGAnimatedEnumeration;
import com.kitfox.salamander.svg.basic.SVGElement;
import com.kitfox.salamander.svg.basic.SVGExternalResourcesRequired;
import com.kitfox.salamander.svg.basic.SVGStylable;
import com.kitfox.salamander.svg.basic.SVGURIReference;
import com.kitfox.salamander.svg.basic.SVGUnitTypes;
import com.kitfox.salamander.svg.coordSystems.SVGAnimatedTransformList;

/**
 * 
 * The SVGGradientElement  interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement.
 * @author kitfox
 */
public interface SVGGradientElement extends SVGElement,
        SVGURIReference,
        SVGExternalResourcesRequired,
        SVGStylable,
        SVGUnitTypes
{
    public static enum SpreadMethod
    {
        /**
         *  	The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
         */
        UNKNOWN, 
        /**
         * Corresponds to value pad.
         */
        PAD, 
        /**
         * Corresponds to value reflect.
         */
        REFLECT, 
        /**
         * Corresponds to value repeat.
         */
        REPEAT};
    /**
     * Corresponds to attribute gradientUnits on the given element. Takes one of the constants defined in SVGUnitTypes.
     */
    public SVGAnimatedEnumeration<SVGUnitTypes.Type> getGradientUnits();
    /**
     * Corresponds to attribute gradientTransform on the given element.
     */
    public SVGAnimatedTransformList getGradientTransform();
    /**
     * Corresponds to attribute spreadMethod on the given element. One of the Spread Method Types.
     */
    public SVGAnimatedEnumeration<SpreadMethod> getSpreadMethod();
    
}