public Gesture(PersistentCanvas c, Color o, Color f, Point p, Panel l, boolean gesture) {
        super(c, o, f);
        panel = l;
        type = 1;
        thickness = 2;
        shape = new GeneralPath();

        ((GeneralPath) shape).moveTo(p.x, p.y);

        firstpoint = p;
        isGesture = gesture;
        if (isGesture) {
            dollar.setListener(this);
            dollar.setActive(true);
            dollar.pointerPressed(p.x, p.y);
        }
    }