time | Calls | line |
---|
0.001 | 16 | 1 | classdef (CaseInsensitiveProperties = true) PlotEditBehavior < matlab.graphics.internal.HGBehavior
|
| | 2 | %
|
| | 3 |
|
| | 4 | % Copyright 2013 The MathWorks, Inc.
|
| | 5 |
|
| | 6 | properties (SetAccess = protected)
|
| | 7 | Name = 'Plotedit';
|
| | 8 | Enable_ = true;
|
| | 9 | end
|
| | 10 |
|
| | 11 | properties
|
| | 12 | EnableMove = true;
|
| | 13 | AllowInteriorMove = false;
|
| | 14 | EnableSelect = true;
|
| | 15 | MouseOverFcn = [];
|
| | 16 | ButtonDownFcn = [];
|
| | 17 | ButtonUpFcn = [];
|
| | 18 | KeepContextMenu = false;
|
| | 19 | MouseMotionFcn = [];
|
| | 20 | EnableCopy = true;
|
| | 21 | EnablePaste = true;
|
| | 22 | EnableDelete = true;
|
| | 23 | end
|
| | 24 |
|
| | 25 | properties (Dependent = true)
|
| | 26 | Enable;
|
| | 27 | end
|
| | 28 |
|
| | 29 | properties (Transient=true)
|
| | 30 | Serialize = true;
|
| | 31 | end
|
| | 32 |
|
| | 33 | methods
|
| | 34 | function set.Enable(this,val)
|
| | 35 | this.EnableSelect = val;
|
| | 36 | this.EnableMove = val;
|
| | 37 | this.EnableCopy = val;
|
| | 38 | this.EnablePaste = val;
|
| | 39 | this.EnableDelete = val;
|
| | 40 | this.Enable_ = val;
|
| | 41 | end
|
| | 42 |
|
| | 43 | function val = get.Enable(this)
|
| | 44 | val = this.Enable_;
|
| | 45 | end
|
| | 46 | end
|
| | 47 |
|
| | 48 | methods
|
| | 49 | function thisSerialize = saveobj(this)
|
| | 50 | if this.Serialize
|
| | 51 | thisSerialize = this;
|
| | 52 | else
|
| | 53 | thisSerialize = [];
|
| | 54 | end
|
| | 55 | end
|
| | 56 |
|
| | 57 | function ret = dosupport(~,hTarget)
|
| | 58 | ret = ishghandle(hTarget) && isobject(handle(hTarget)) && ...
|
| | 59 | isvalid(handle(hTarget));
|
| | 60 | end
|
| | 61 | end
|
| | 62 | end
|
| | 63 |
|
| | 64 |
|
| | 65 |
|