toSvg is abstract in FILTER

This commit is contained in:
Jindra Petřík
2023-10-16 09:36:06 +02:00
parent 1469495508
commit d928c25658
3 changed files with 17 additions and 3 deletions
@@ -57,9 +57,7 @@ public abstract class FILTER implements Serializable {
public abstract double getDeltaY();
public String toSvg(Document document, Element filtersElement, SVGExporter exporter, String in) {
return null;
}
public abstract String toSvg(Document document, Element filtersElement, SVGExporter exporter, String in);
protected String dropShadowSvg(
double distance,
@@ -16,6 +16,7 @@
*/
package com.jpexs.decompiler.flash.types.filters;
import com.jpexs.decompiler.flash.exporters.commonshape.SVGExporter;
import com.jpexs.decompiler.flash.types.BasicType;
import com.jpexs.decompiler.flash.types.RGBA;
import com.jpexs.decompiler.flash.types.annotations.SWFType;
@@ -23,6 +24,8 @@ import com.jpexs.helpers.SerializableImage;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
/**
* Bevel filter with gradient instead of single color
@@ -139,4 +142,9 @@ public class GRADIENTBEVELFILTER extends FILTER {
public double getDeltaY() {
return blurY + Math.abs(distance * Math.sin(angle));
}
@Override
public String toSvg(Document document, Element filtersElement, SVGExporter exporter, String in) {
return null; //NOT SUPPORTED
}
}
@@ -16,6 +16,7 @@
*/
package com.jpexs.decompiler.flash.types.filters;
import com.jpexs.decompiler.flash.exporters.commonshape.SVGExporter;
import com.jpexs.decompiler.flash.types.BasicType;
import com.jpexs.decompiler.flash.types.RGBA;
import com.jpexs.decompiler.flash.types.annotations.SWFType;
@@ -23,6 +24,8 @@ import com.jpexs.helpers.SerializableImage;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
/**
* Glow filter with gradient instead of single color
@@ -140,4 +143,9 @@ public class GRADIENTGLOWFILTER extends FILTER {
public double getDeltaY() {
return blurY + Math.abs(distance * Math.sin(angle));
}
@Override
public String toSvg(Document document, Element filtersElement, SVGExporter exporter, String in) {
return null; //NOT SUPPORTED
}
}