From f426822348adea775feef6a74a61a70aa2b027ed Mon Sep 17 00:00:00 2001 From: Student Date: Thu, 14 Mar 2019 10:02:12 +0100 Subject: [PATCH] Laboratorium "pusty filtr" --- src/eu/finwe/obrazki/Util.java | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/eu/finwe/obrazki/Util.java b/src/eu/finwe/obrazki/Util.java index 056d790..efadb02 100644 --- a/src/eu/finwe/obrazki/Util.java +++ b/src/eu/finwe/obrazki/Util.java @@ -670,11 +670,36 @@ public Point2D getPoint2D(Point2D srcPt, Point2D dstPt) } - + static private class FiltrPusty extends Filtr { + + private final typFiltra typ; + + public FiltrPusty (typFiltra typ) + { + this.typ = typ; + } + + @Override + public BufferedImage filter(BufferedImage src, BufferedImage dest) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Rectangle2D getBounds2D(BufferedImage src) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Point2D getPoint2D(Point2D srcPt, Point2D dstPt) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + } } + /* Testowanie wybranych metod; * klas zawierających metodę main() może być w projekcie dużo. * Trzeba tylko pamiętać o określeniu tej "startowej"