-
Notifications
You must be signed in to change notification settings - Fork 2
/
XLabelEntry.m
41 lines (37 loc) · 985 Bytes
/
XLabelEntry.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
classdef XLabelEntry < axesStringEntry
%YLABELENTRY: For manipulation of YLabel strings in plotBrowser class
properties
ax; % reference to axes
end
properties (Dependent)
String;
UserData;
end
methods
function l = XLabelEntry(obj)
l.ax = obj;
l.origString = obj.XLabel.String;
end
function s = get.String(l)
s = l.ax.XLabel.String;
end
function set.String(l, s)
l.ax.XLabel.String = s;
end
function u = get.UserData(l)
try
u = l.ax.UserData.XLabelEntryUserData;
catch
u = [];
end
end
function set.UserData(l, u)
l.ax.UserData.XLabelEntryUserData = u;
end
end
methods (Static)
function s = getElementName
s = 'XLabel';
end
end
end