Mercurial > projects > dwt-addons
comparison dwtx/draw2d/ConnectionRouter.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 |
---|---|
86 points.addPoint(p); | 86 points.addPoint(p); |
87 conn.setPoints(points); | 87 conn.setPoints(points); |
88 } | 88 } |
89 } | 89 } |
90 | 90 |
91 | |
91 /** | 92 /** |
92 * The default router for Connections. | 93 * The default router for Connections. |
93 */ | 94 */ |
94 public static const ConnectionRouter ConnectionRouter_NULL; | 95 private static NullConnectionRouter ConnectionRouter_NULL_; |
95 | 96 public static NullConnectionRouter ConnectionRouter_NULL(){ |
96 static this(){ | 97 if( ConnectionRouter_NULL_ is null ){ |
97 ConnectionRouter_NULL = new NullConnectionRouter(); | 98 synchronized( NullConnectionRouter.classinfo ){ |
99 if( ConnectionRouter_NULL_ is null ){ | |
100 ConnectionRouter_NULL_ = new NullConnectionRouter(); | |
101 } | |
102 } | |
103 } | |
104 return ConnectionRouter_NULL_; | |
98 } | 105 } |
99 | 106 |
107 |