From d928c256588fa23ca0542b0964b6234d6d1e664e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 14 Oct 2023 10:42:00 +0200 Subject: [PATCH] toSvg is abstract in FILTER --- .../com/jpexs/decompiler/flash/types/filters/FILTER.java | 4 +--- .../flash/types/filters/GRADIENTBEVELFILTER.java | 8 ++++++++ .../flash/types/filters/GRADIENTGLOWFILTER.java | 8 ++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/FILTER.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/FILTER.java index f734452ca..bcfa158b7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/FILTER.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/FILTER.java @@ -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, diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/GRADIENTBEVELFILTER.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/GRADIENTBEVELFILTER.java index d225b0cfc..3cbf3161e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/GRADIENTBEVELFILTER.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/GRADIENTBEVELFILTER.java @@ -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 + } } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/GRADIENTGLOWFILTER.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/GRADIENTGLOWFILTER.java index fd9dec1f4..8a2540969 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/GRADIENTGLOWFILTER.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/GRADIENTGLOWFILTER.java @@ -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 + } }