equal
deleted
inserted
replaced
237 |
237 |
238 def paint(g: Graphics2D, path: GeneralPath, shape: Shape) |
238 def paint(g: Graphics2D, path: GeneralPath, shape: Shape) |
239 { |
239 { |
240 position(path, shape) match { |
240 position(path, shape) match { |
241 case None => |
241 case None => |
242 case Some(at) => { |
242 case Some(at) => |
243 val arrow = new GeneralPath(Path2D.WIND_EVEN_ODD, 3) |
243 val arrow = new GeneralPath(Path2D.WIND_EVEN_ODD, 3) |
244 arrow.moveTo(0, 0) |
244 arrow.moveTo(0, 0) |
245 arrow.lineTo(-20, 8) |
245 arrow.lineTo(-10, 4) |
246 arrow.lineTo(-13, 0) |
246 arrow.lineTo(-6, 0) |
247 arrow.lineTo(-20, -8) |
247 arrow.lineTo(-10, -4) |
248 arrow.lineTo(0, 0) |
248 arrow.lineTo(0, 0) |
249 arrow.transform(at) |
249 arrow.transform(at) |
250 |
250 |
251 g.fill(arrow) |
251 g.fill(arrow) |
252 } |
|
253 } |
252 } |
254 } |
253 } |
255 } |
254 } |
256 } |
255 } |