Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/raster/DemuxRingsHandler.java @ 657:af3f56758f59
merged gnv-artifacts/0.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:53 +0200 |
parents | f7038820df2e |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
590:5f5f273c8566 | 657:af3f56758f59 |
---|---|
1 package de.intevation.gnv.raster; | |
2 | |
3 import java.util.ArrayList; | |
4 import java.util.List; | |
5 | |
6 import de.intevation.gnv.raster.Vectorizer.RingsHandler; | |
7 import de.intevation.gnv.raster.Vectorizer.Edge; | |
8 | |
9 /** | |
10 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) | |
11 */ | |
12 public class DemuxRingsHandler | |
13 implements RingsHandler | |
14 { | |
15 protected ArrayList<RingsHandler> handlers; | |
16 | |
17 public DemuxRingsHandler() { | |
18 handlers = new ArrayList<RingsHandler>(); | |
19 } | |
20 | |
21 public void addHandler(RingsHandler handler) { | |
22 handlers.add(handler); | |
23 } | |
24 | |
25 public void handleRings( | |
26 List<Edge> rings, | |
27 int value, | |
28 int width, | |
29 int height | |
30 ) { | |
31 for (RingsHandler handler: handlers) { | |
32 handler.handleRings(rings, value, width, height); | |
33 } | |
34 } | |
35 | |
36 public void clear() { | |
37 handlers.clear(); | |
38 } | |
39 } | |
40 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |