com.ctreber.acearth.shader.ShaderFlat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml Show documentation
Show all versions of plantuml Show documentation
PlantUML is a component that allows to quickly write :
* sequence diagram,
* use case diagram,
* class diagram,
* activity diagram,
* component diagram,
* state diagram
* object diagram
The newest version!
package com.ctreber.acearth.shader;
import java.awt.Color;
/**
* Flat shader (does not care for Projection).
*
* © 2002 Christian Treber, [email protected] (Nov 11, 2002)
* @author Christian Treber, [email protected]
*
*/
public class ShaderFlat extends Shader
{
public Color[] getShadedColors(int pRowNo, int[] pRowTypes)
{
final Color[] lColors = new Color[pRowTypes.length];
for(int i = 0; i < pRowTypes.length; i++)
{
lColors[i] = getShadedColorForType(pRowTypes[i], 1.0);
}
return lColors;
}
}