Groovy makra v Openu - přílohy
Color
Konstanty barev pro vrácení v metodách
- getForegroundColor
- getBacgroundColor
návrat je následující:
- return new Color(0, 0, 0);
nebo
- return Color.BLACK;
Dostupné konstanty ve třídě Color:
- The color white. In the default sRGB space.
public static final Color white = new Color(255, 255, 255);
public static final Color WHITE = white;
- The color light gray. In the default sRGB space.
public static final Color lightGray = new Color(192, 192, 192);
public static final Color LIGHT_GRAY = lightGray;
- The color gray. In the default sRGB space.
public static final Color gray = new Color(128, 128, 128);
public static final Color GRAY = gray;
- The color dark gray. In the default sRGB space.
public static final Color darkGray = new Color(64, 64, 64);
public static final Color DARK_GRAY = darkGray;
- The color black. In the default sRGB space.
public static final Color black = new Color(0, 0, 0);
public static final Color BLACK = black;
- The color red. In the default sRGB space.
public static final Color red = new Color(255, 0, 0);
public static final Color RED = red;
- The color pink. In the default sRGB space.
public static final Color pink = new Color(255, 175, 175);
public static final Color PINK = pink;
- The color orange. In the default sRGB space.
public static final Color orange = new Color(255, 200, 0);
public static final Color ORANGE = orange;
- The color yellow. In the default sRGB space.
public static final Color yellow = new Color(255, 255, 0);
public static final Color YELLOW = yellow;
- The color green. In the default sRGB space.
public static final Color green = new Color(0, 255, 0);
public static final Color GREEN = green;
- The color magenta. In the default sRGB space.
public static final Color magenta = new Color(255, 0, 255);
public static final Color MAGENTA = magenta;
- The color cyan. In the default sRGB space.
public static final Color cyan = new Color(0, 255, 255);
public static final Color CYAN = cyan;
- The color blue. In the default sRGB space.
public static final Color blue = new Color(0, 0, 255);
public static final Color BLUE = blue;