    001package org.vishia.gral.ifc;
    002
    003/**This class should not be used by an application. It is intent to adjust the internal colors.
    004 * @author Hartmut Schorrig
    005 *
    006 */
    007public class _GralChgColor
    008{
    009  public static void setColorValue(GralColor color, int rgb) {
    010    color.rgb = rgb;
    011    color.red = (rgb>>16) & 0xff;
    012    color.green = (rgb>>8) & 0xff;
    013    color.blue = (rgb) & 0xff;
    014    color.colorGuimpl = null; //create a new one.
    015  }
    016
    017
    018  public static void addColorUsualNames(GralColor color, String usualNames) {
    019    color.usualNames = usualNames;
    020  }
    021
    022
    023  public static void setColorUsualNames(GralColor color, String usualNames) {
    024    if(false && usualNames !=null && color.usualNames !=null && color.usualNames.length() >0){
    025      color.usualNames += ", " + usualNames;
    026    } else {
    027      color.usualNames = usualNames;
    028    }
    029  }
    030}