Last change
on this file since 68 was
68,
checked in by cbipsl, 14 years ago
|
commit v1 eccad
|
-
Property svn:executable set to
*
|
File size:
453 bytes
|
Line | |
---|
1 | package org.medias.eccad.metier.generationRaster.colorMap; |
---|
2 | |
---|
3 | import java.awt.Color; |
---|
4 | |
---|
5 | public class ColorMappingIntervalle extends ColorMapping { |
---|
6 | |
---|
7 | public Color getCouleur(float valeur) { |
---|
8 | float tab_min[] = table_couleur.getTab_min(); |
---|
9 | //if (valeur == 0) |
---|
10 | // return new Color(0,0,0); |
---|
11 | |
---|
12 | for (int i = tab_min.length -1; i >=0; i--) { |
---|
13 | if (valeur >= tab_min[i]) |
---|
14 | return table_couleur.getColor(i); |
---|
15 | } |
---|
16 | |
---|
17 | return table_couleur.getColor(0); |
---|
18 | } |
---|
19 | |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.