Advertisement
Guest User

Untitled

a guest
May 12th, 2009
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. %%%%%%% Zoom and Pan Buttons
  2. z_out = uicontrol('Style', 'PushButton', 'units', 'normalized');
  3. j_z_out = java(findjobj(z_out));
  4. icon1 = fullfile(matlabroot, 'toolbox', 'matlab', 'icons', 'tool_zoom_out.png');
  5. set(z_out, 'position', [.4 .01 .05 .05]);
  6. j_z_out.setIcon(javax.swing.ImageIcon(icon1));
  7.  
  8.  
  9. pan = uicontrol('Style', 'PushButton', 'units', 'normalized');
  10. j_pan = java(findjobj(pan));
  11. icon = fullfile(matlabroot, 'toolbox', 'matlab', 'icons', 'tool_hand.png');
  12. set(pan, 'position', [.46 .01 .05 .05]);
  13. j_pan.setIcon(javax.swing.ImageIcon(icon));
  14.  
  15. z_in = uicontrol('Style', 'PushButton', 'units', 'normalized');
  16. j_z_in = java(findjobj(z_in));
  17. icon = fullfile(matlabroot, 'toolbox', 'matlab', 'icons', 'tool_zoom_in.png');
  18. set(z_in, 'position', [.52 .01 .05 .05]);
  19. j_z_in.setIcon(javax.swing.ImageIcon(icon));
  20. %%%%%%% Zoom and Pan Buttons
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement