Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %%%%%%% Zoom and Pan Buttons
- z_out = uicontrol('Style', 'PushButton', 'units', 'normalized');
- j_z_out = java(findjobj(z_out));
- icon1 = fullfile(matlabroot, 'toolbox', 'matlab', 'icons', 'tool_zoom_out.png');
- set(z_out, 'position', [.4 .01 .05 .05]);
- j_z_out.setIcon(javax.swing.ImageIcon(icon1));
- pan = uicontrol('Style', 'PushButton', 'units', 'normalized');
- j_pan = java(findjobj(pan));
- icon = fullfile(matlabroot, 'toolbox', 'matlab', 'icons', 'tool_hand.png');
- set(pan, 'position', [.46 .01 .05 .05]);
- j_pan.setIcon(javax.swing.ImageIcon(icon));
- z_in = uicontrol('Style', 'PushButton', 'units', 'normalized');
- j_z_in = java(findjobj(z_in));
- icon = fullfile(matlabroot, 'toolbox', 'matlab', 'icons', 'tool_zoom_in.png');
- set(z_in, 'position', [.52 .01 .05 .05]);
- j_z_in.setIcon(javax.swing.ImageIcon(icon));
- %%%%%%% Zoom and Pan Buttons
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement