summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/salamander/svg/fills
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/kitfox/salamander/svg/fills')
-rw-r--r--src/main/java/com/kitfox/salamander/svg/fills/SVGGradientElement.java61
-rw-r--r--src/main/java/com/kitfox/salamander/svg/fills/SVGLinearGradientElement.java36
-rw-r--r--src/main/java/com/kitfox/salamander/svg/fills/SVGPatternElement.java65
-rw-r--r--src/main/java/com/kitfox/salamander/svg/fills/SVGRadialGradientElement.java40
-rw-r--r--src/main/java/com/kitfox/salamander/svg/fills/SVGStopElement.java27
5 files changed, 229 insertions, 0 deletions
diff --git a/src/main/java/com/kitfox/salamander/svg/fills/SVGGradientElement.java b/src/main/java/com/kitfox/salamander/svg/fills/SVGGradientElement.java
new file mode 100644
index 0000000..00088c1
--- /dev/null
+++ b/src/main/java/com/kitfox/salamander/svg/fills/SVGGradientElement.java
@@ -0,0 +1,61 @@
+/*
+ * 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.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 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 getSpreadMethod();
+
+}
diff --git a/src/main/java/com/kitfox/salamander/svg/fills/SVGLinearGradientElement.java b/src/main/java/com/kitfox/salamander/svg/fills/SVGLinearGradientElement.java
new file mode 100644
index 0000000..0f6cbcd
--- /dev/null
+++ b/src/main/java/com/kitfox/salamander/svg/fills/SVGLinearGradientElement.java
@@ -0,0 +1,36 @@
+/*
+ * SVGLinearGradientElement.java
+ *
+ * Created on April 13, 2007, 10:15 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.SVGAnimatedLength;
+
+/**
+ * The SVGLinearGradientElement interface corresponds to the 'linearGradient' element.
+ * @author kitfox
+ */
+public interface SVGLinearGradientElement extends SVGGradientElement
+{
+ /**
+ * Corresponds to attribute x1 on the given 'linearGradient' element.
+ */
+ public SVGAnimatedLength getX1();
+ /**
+ * Corresponds to attribute y1 on the given 'linearGradient' element.
+ */
+ public SVGAnimatedLength getY1();
+ /**
+ * Corresponds to attribute x2 on the given 'linearGradient' element.
+ */
+ public SVGAnimatedLength getX2();
+ /**
+ * Corresponds to attribute y2 on the given 'linearGradient' element.
+ */
+ public SVGAnimatedLength getY2();
+}
diff --git a/src/main/java/com/kitfox/salamander/svg/fills/SVGPatternElement.java b/src/main/java/com/kitfox/salamander/svg/fills/SVGPatternElement.java
new file mode 100644
index 0000000..28cf6a6
--- /dev/null
+++ b/src/main/java/com/kitfox/salamander/svg/fills/SVGPatternElement.java
@@ -0,0 +1,65 @@
+/*
+ * SVGStopElement.java
+ *
+ * Created on April 13, 2007, 10:18 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.SVGAnimatedLength;
+import com.kitfox.salamander.svg.basic.SVGElement;
+import com.kitfox.salamander.svg.basic.SVGExternalResourcesRequired;
+import com.kitfox.salamander.svg.basic.SVGFitToViewBox;
+import com.kitfox.salamander.svg.basic.SVGLangSpace;
+import com.kitfox.salamander.svg.basic.SVGStylable;
+import com.kitfox.salamander.svg.basic.SVGTests;
+import com.kitfox.salamander.svg.basic.SVGURIReference;
+import com.kitfox.salamander.svg.basic.SVGUnitTypes;
+import com.kitfox.salamander.svg.coordSystems.SVGAnimatedTransformList;
+
+/**
+ * The SVGPatternElement interface corresponds to the 'pattern' element.
+ * @author kitfox
+ */
+public interface SVGPatternElement extends SVGElement,
+ SVGURIReference,
+ SVGTests,
+ SVGLangSpace,
+ SVGExternalResourcesRequired,
+ SVGStylable,
+ SVGFitToViewBox,
+ SVGUnitTypes
+{
+ /**
+ * Corresponds to attribute patternUnits on the given 'pattern' element. Takes one of the constants defined in SVGUnitTypes.
+ */
+ public SVGAnimatedEnumeration getPatternUnits();
+ /**
+ * Corresponds to attribute patternContentUnits on the given 'pattern' element. Takes one of the constants defined in SVGUnitTypes.
+ */
+ public SVGAnimatedEnumeration getPatternContentUnits();
+ /**
+ * Corresponds to attribute patternTransform on the given 'pattern' element.
+ */
+ public SVGAnimatedTransformList getPatternTransform();
+ /**
+ * Corresponds to attribute x on the given 'pattern' element.
+ */
+ public SVGAnimatedLength getX();
+ /**
+ * Corresponds to attribute y on the given 'pattern' element.
+ */
+ public SVGAnimatedLength getY();
+ /**
+ * Corresponds to attribute width on the given 'pattern' element.
+ */
+ public SVGAnimatedLength getWidth();
+ /**
+ * Corresponds to attribute height on the given 'pattern' element.
+ */
+ public SVGAnimatedLength getHeight();
+}
diff --git a/src/main/java/com/kitfox/salamander/svg/fills/SVGRadialGradientElement.java b/src/main/java/com/kitfox/salamander/svg/fills/SVGRadialGradientElement.java
new file mode 100644
index 0000000..d320b5a
--- /dev/null
+++ b/src/main/java/com/kitfox/salamander/svg/fills/SVGRadialGradientElement.java
@@ -0,0 +1,40 @@
+/*
+ * SVGLinearGradientElement.java
+ *
+ * Created on April 13, 2007, 10:15 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.SVGAnimatedLength;
+
+/**
+ * The SVGRadialGradientElement interface corresponds to the 'radialGradient' element.
+ * @author kitfox
+ */
+public interface SVGRadialGradientElement extends SVGGradientElement
+{
+ /**
+ * Corresponds to attribute cx on the given 'radialGradient' element.
+ */
+ public SVGAnimatedLength getCx();
+ /**
+ * Corresponds to attribute cy on the given 'radialGradient' element.
+ */
+ public SVGAnimatedLength getCy();
+ /**
+ * Corresponds to attribute r on the given 'radialGradient' element.
+ */
+ public SVGAnimatedLength getR();
+ /**
+ * Corresponds to attribute fx on the given 'radialGradient' element.
+ */
+ public SVGAnimatedLength getFx();
+ /**
+ * Corresponds to attribute fy on the given 'radialGradient' element.
+ */
+ public SVGAnimatedLength getFy();
+}
diff --git a/src/main/java/com/kitfox/salamander/svg/fills/SVGStopElement.java b/src/main/java/com/kitfox/salamander/svg/fills/SVGStopElement.java
new file mode 100644
index 0000000..d1ddc0a
--- /dev/null
+++ b/src/main/java/com/kitfox/salamander/svg/fills/SVGStopElement.java
@@ -0,0 +1,27 @@
+/*
+ * SVGStopElement.java
+ *
+ * Created on April 13, 2007, 10:18 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.SVGAnimatedNumber;
+import com.kitfox.salamander.svg.basic.SVGElement;
+import com.kitfox.salamander.svg.basic.SVGStylable;
+
+/**
+ * The SVGStopElement interface corresponds to the 'stop' element.
+ * @author kitfox
+ */
+public interface SVGStopElement extends SVGElement,
+ SVGStylable
+{
+ /**
+ * Corresponds to attribute offset on the given 'stop' element.
+ */
+ public SVGAnimatedNumber getOffset();
+}