-
Notifications
You must be signed in to change notification settings - Fork 2
/
XTickLabelEntry.m
41 lines (37 loc) · 1002 Bytes
/
XTickLabelEntry.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 XTickLabelEntry < axesStringEntry
%XTICKLABELENTRY: For manipulation of YTickLabel strings in plotBrowser class
properties
ax; % reference to axes
end
properties (Dependent)
String;
UserData;
end
methods
function l = XTickLabelEntry(obj)
l.ax = obj;
l.origString = obj.XTickLabel;
end
function s = get.String(l)
s = l.ax.XTickLabel;
end
function set.String(l, s)
l.ax.XTickLabel = s;
end
function u = get.UserData(l)
try
u = l.ax.UserData.XTickLabelEntryUserData;
catch
u = [];
end
end
function set.UserData(l, u)
l.ax.UserData.XTickLabelEntryUserData = u;
end
end
methods (Static)
function s = getElementName
s = 'XTickLabel';
end
end
end