comparison dwtx/draw2d/FigureUtilities.d @ 101:1082a0fc2bb8

First Draw2D example running
author Frank Benoit <benoit@tionex.de>
date Sun, 03 Aug 2008 02:17:46 +0200
parents 95307ad235d9
children
comparison
equal deleted inserted replaced
100:86617aa6b5dd 101:1082a0fc2bb8
34 34
35 private static final float RGB_VALUE_MULTIPLIER = 0.6f; 35 private static final float RGB_VALUE_MULTIPLIER = 0.6f;
36 private static GC gc; 36 private static GC gc;
37 private static Font appliedFont; 37 private static Font appliedFont;
38 private static FontMetrics metrics; 38 private static FontMetrics metrics;
39 private static Color ghostFillColor; 39
40 40 private static Color ghostFillColor_;
41 static this(){ 41 private static Color ghostFillColor(){
42 ghostFillColor = new Color(null, 31, 31, 31); 42 if( ghostFillColor_ is null ){
43 synchronized( FigureUtilities.classinfo ){
44 if( ghostFillColor_ is null ){
45 ghostFillColor_ = new Color(null, 31, 31, 31);
46 }
47 }
48 }
49 return ghostFillColor_;
43 } 50 }
44 51
45 /** 52 /**
46 * Returns a new Color the same as the passed color in a darker hue. 53 * Returns a new Color the same as the passed color in a darker hue.
47 * 54 *