コード例 #1
0
 private Color getDefaultStrokeColor(final OverlaySettings settings) {
   final ColorRGB color = settings.getLineColor();
   final int r = color.getRed();
   final int g = color.getGreen();
   final int b = color.getBlue();
   return new Color(r, g, b, 255);
 }
コード例 #2
0
 private Color getDefaultFillColor(final OverlaySettings settings) {
   final ColorRGB color = settings.getFillColor();
   final int r = color.getRed();
   final int g = color.getGreen();
   final int b = color.getBlue();
   final int a = settings.getAlpha();
   return new Color(r, g, b, a);
 }