Revision 42465
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/legend/gui/VectorialInterval.java | ||
---|---|---|
414 | 414 |
r = startColor.getRed(); |
415 | 415 |
g = startColor.getGreen(); |
416 | 416 |
b = startColor.getBlue(); |
417 |
stepR = (endColor.getRed() - r) / arrayIntervalos.length;
|
|
418 |
stepG = (endColor.getGreen() - g) / arrayIntervalos.length;
|
|
419 |
stepB = (endColor.getBlue() - b) / arrayIntervalos.length;
|
|
417 |
stepR = (int) Math.floor((endColor.getRed() - r) / (arrayIntervalos.length-1));
|
|
418 |
stepG = (int) Math.floor((endColor.getGreen() - g) / (arrayIntervalos.length-1));
|
|
419 |
stepB = (int) Math.floor((endColor.getBlue() - b) / (arrayIntervalos.length-1));
|
|
420 | 420 |
|
421 | 421 |
// auxLegend = LegendFactory.createVectorialIntervalLegend(layer.getShapeType()); |
422 | 422 |
auxLegend = (IVectorialIntervalLegend) MapContextLocator |
Also available in: Unified diff