drag Line with callback

[set & get& drag] the line in figure, and get its [draggin-callback] as your wish.

You are now following this Submission

You can [set & get& drag] the line(“dragLine”) position. When dragged, it can run your <own callback function_handle> by set the obj Interface.
[dragLine and dragRangle ] have almost the same properties and operation skill, but have 4 dragLine.
Tips:
The "zip" file have a "demo.m" may be helpful.
All written by 'classdef' technology.
Author:
Chen Xinfeng(陈昕枫,华中科技大学)
2016-1-12

Cite As

chen xinfeng (2026). drag Line with callback (https://ch.mathworks.com/matlabcentral/fileexchange/54857-drag-line-with-callback), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Graphical data selection tool

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0