src/Tools/Graphview/shapes.scala
changeset 59292 fef652c88263
parent 59291 506660c6792f
child 59293 305e79989d48
equal deleted inserted replaced
59291:506660c6792f 59292:fef652c88263
    53     }
    53     }
    54   }
    54   }
    55 
    55 
    56   object Dummy
    56   object Dummy
    57   {
    57   {
    58     def shape(visualizer: Visualizer, d: Layout.Point): Shape =
    58     def shape(visualizer: Visualizer, d: Layout.Point): Rectangle2D.Double =
    59     {
    59     {
    60       val metrics = visualizer.metrics
    60       val metrics = visualizer.metrics
    61       val w = metrics.space_width
    61       val w = metrics.space_width
    62       new Rectangle2D.Double((d.x - (w / 2)).floor, (d.y - (w / 2)).floor, w.ceil, w.ceil)
    62       new Rectangle2D.Double((d.x - (w / 2)).floor, (d.y - (w / 2)).floor, w.ceil, w.ceil)
    63     }
    63     }