Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java @ 4589:afd817b006b7
Documentation added.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 29 Nov 2012 10:27:31 +0100 |
parents | 47d50572844a |
children | 56fbdcdb7ff2 |
comparison
equal
deleted
inserted
replaced
4588:1243531f83ac | 4589:afd817b006b7 |
---|---|
493 * @return a new instance of a JFreeChart. | 493 * @return a new instance of a JFreeChart. |
494 */ | 494 */ |
495 public abstract JFreeChart generateChart(); | 495 public abstract JFreeChart generateChart(); |
496 | 496 |
497 | 497 |
498 /** For every outable (i.e. facets), this function is | |
499 * called and handles the data accordingly. */ | |
498 @Override | 500 @Override |
499 public abstract void doOut( | 501 public abstract void doOut( |
500 ArtifactAndFacet bundle, | 502 ArtifactAndFacet bundle, |
501 Document attr, | 503 Document attr, |
502 boolean visible); | 504 boolean visible); |
697 this.out = out; | 699 this.out = out; |
698 this.context = context; | 700 this.context = context; |
699 } | 701 } |
700 | 702 |
701 | 703 |
704 /** Sets the master artifact. */ | |
702 @Override | 705 @Override |
703 public void setMasterArtifact(Artifact master) { | 706 public void setMasterArtifact(Artifact master) { |
704 this.master = master; | 707 this.master = master; |
705 } | 708 } |
706 | 709 |
707 | 710 |
711 /** Sets the collection. */ | |
708 @Override | 712 @Override |
709 public void setCollection(FLYSArtifactCollection collection) { | 713 public void setCollection(FLYSArtifactCollection collection) { |
710 this.collection = collection; | 714 this.collection = collection; |
711 } | 715 } |
712 | 716 |
1382 | 1386 |
1383 return meta.getPreferredLocale(locales); | 1387 return meta.getPreferredLocale(locales); |
1384 } | 1388 } |
1385 | 1389 |
1386 | 1390 |
1391 /** | |
1392 * Look up \param key in i18n dictionary. | |
1393 * @param key key for which to find i18nd version. | |
1394 * @param def default, returned if lookup failed. | |
1395 * @return value found in i18n dictionary, \param def if no value found. | |
1396 */ | |
1387 protected String msg(String key, String def) { | 1397 protected String msg(String key, String def) { |
1388 return Resources.getMsg(context.getMeta(), key, def); | 1398 return Resources.getMsg(context.getMeta(), key, def); |
1389 } | 1399 } |
1390 | 1400 |
1401 /** | |
1402 * Look up \param key in i18n dictionary. | |
1403 * @param key key for which to find i18nd version. | |
1404 * @return value found in i18n dictionary, key itself if failed. | |
1405 */ | |
1391 protected String msg(String key) { | 1406 protected String msg(String key) { |
1392 return Resources.getMsg(context.getMeta(), key, key); | 1407 return Resources.getMsg(context.getMeta(), key, key); |
1393 } | 1408 } |
1394 | 1409 |
1395 protected String msg(String key, String def, Object[] args) { | 1410 protected String msg(String key, String def, Object[] args) { |