Search in sources :

Example 1 with SketchedPath

use of spacegraph.space2d.widget.meta.SketchedPath in project narchy by automenta.

the class Wiring method drag.

@Override
protected boolean drag(Finger f) {
    if (path == null) {
        path = new Path2D(64);
        ((Ortho) (start.root())).addOverlay(pathVis = new SketchedPath(path));
    }
    path.add(f.pos, 64);
    updateEnd(f);
    return true;
}
Also used : Ortho(spacegraph.space2d.hud.Ortho) Path2D(spacegraph.util.Path2D) SketchedPath(spacegraph.space2d.widget.meta.SketchedPath)

Aggregations

Ortho (spacegraph.space2d.hud.Ortho)1 SketchedPath (spacegraph.space2d.widget.meta.SketchedPath)1 Path2D (spacegraph.util.Path2D)1