comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java @ 408:fc3ac59c3c8b

Enabled i18n support for charts. flys-artifacts/trunk@1865 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 09 May 2011 12:53:49 +0000
parents 8830eecad69e
children 046bd86ae41d
comparison
equal deleted inserted replaced
407:9eb5f0c8fe7f 408:fc3ac59c3c8b
6 import org.apache.log4j.Logger; 6 import org.apache.log4j.Logger;
7 7
8 import org.w3c.dom.Document; 8 import org.w3c.dom.Document;
9 9
10 import de.intevation.artifacts.Artifact; 10 import de.intevation.artifacts.Artifact;
11 import de.intevation.flys.artifacts.resources.Resources;
11 import de.intevation.artifacts.CallContext; 12 import de.intevation.artifacts.CallContext;
12 13
13 14
14 /** 15 /**
15 * The base class for chart creation. It should provide some basic things that 16 * The base class for chart creation. It should provide some basic things that
39 this.out = out; 40 this.out = out;
40 this.context = context; 41 this.context = context;
41 } 42 }
42 43
43 44
45 protected String msg(String key, String def) {
46 return Resources.getMsg(context.getMeta(), key, def);
47 }
48
49
44 public abstract void doOut(Artifact artifact, String facet, Document attr); 50 public abstract void doOut(Artifact artifact, String facet, Document attr);
45 51
46 public abstract void generate() throws IOException; 52 public abstract void generate() throws IOException;
47 } 53 }
48 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 54 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org