comparison gnv-artifacts/src/main/java/de/intevation/gnv/raster/IsoAttributeGenerator.java @ 802:4abe172be970

Finished Javadoc of the raster package. gnv-artifacts/trunk@884 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 07 Apr 2010 07:49:12 +0000
parents 6cff63d0c434
children f953c9a559d8
comparison
equal deleted inserted replaced
801:d766fe2d917a 802:4abe172be970
1 package de.intevation.gnv.raster; 1 package de.intevation.gnv.raster;
2 2
3 /** 3 /**
4 * Generates label attributes for iso lines. It takes the
5 * neighboring palette ranges and calculates the mid point
6 * between these two ranges.
4 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> 7 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a>
5 */ 8 */
6 public class IsoAttributeGenerator 9 public class IsoAttributeGenerator
7 implements IsoProducer.AttributeGenerator 10 implements IsoProducer.AttributeGenerator
8 { 11 {
12 /**
13 * The palette where to look for the ranges.
14 */
9 protected Palette palette; 15 protected Palette palette;
10 16
17 /**
18 * Default constructor.
19 */
11 public IsoAttributeGenerator() { 20 public IsoAttributeGenerator() {
12 } 21 }
13 22
23 /**
24 * Constructor to create an IsoAttributeGenerator with
25 * a given lookup palette.
26 * @param palette The palette.
27 */
14 public IsoAttributeGenerator(Palette palette) { 28 public IsoAttributeGenerator(Palette palette) {
15 this.palette = palette; 29 this.palette = palette;
16 } 30 }
17 31
18 public Object generateAttribute(int neighbor1, int neighbor2) { 32 public Object generateAttribute(int neighbor1, int neighbor2) {

http://dive4elements.wald.intevation.org