Loading @GridLayout/draw_onto.m +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ function draw_onto( object, parent_handle ) % needs to be called everytime the back table is updated. The class will % notify when its necessary. [x, y] = object.get_bounding_box(); [~, y] = object.get_bounding_box(); for i = 1:size(object.drawables, 2) for j = 1:size(object.drawables, 1) Loading @TableGrid/TableGrid.m +0 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ classdef TableGrid < handle end function cell = get_cell(object, y, x) x,y assert( x > 0 && x <= object.width, 'Provide a valid X cordinate!'); assert( y > 0 && y <= object.height, 'Provide a valid Y cordinate!'); Loading @TableGridCell/TableGridCell.m +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ classdef TableGridCell < handle end function str = get_user_string(object) str = object.text str = object.text; end end Loading @TableGridDraw/draw_onto.m +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ function draw_onto( object, parent_handle ) if object.controls(j,i) ~= 0 && ishandle(object.controls(j,i)) set(object.controls(j, i), 'Parent', object.phandle); set(object.controls(j, i), 'Position', position); set(object.controls(j, i), 'String', str) set(object.controls(j, i), 'String', str); else %Standardize this object.controls(j, i) = uicontrol(object.phandle, 'Style', 'edit', 'Position', position, 'String', str); Loading Loading
@GridLayout/draw_onto.m +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ function draw_onto( object, parent_handle ) % needs to be called everytime the back table is updated. The class will % notify when its necessary. [x, y] = object.get_bounding_box(); [~, y] = object.get_bounding_box(); for i = 1:size(object.drawables, 2) for j = 1:size(object.drawables, 1) Loading
@TableGrid/TableGrid.m +0 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ classdef TableGrid < handle end function cell = get_cell(object, y, x) x,y assert( x > 0 && x <= object.width, 'Provide a valid X cordinate!'); assert( y > 0 && y <= object.height, 'Provide a valid Y cordinate!'); Loading
@TableGridCell/TableGridCell.m +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ classdef TableGridCell < handle end function str = get_user_string(object) str = object.text str = object.text; end end Loading
@TableGridDraw/draw_onto.m +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ function draw_onto( object, parent_handle ) if object.controls(j,i) ~= 0 && ishandle(object.controls(j,i)) set(object.controls(j, i), 'Parent', object.phandle); set(object.controls(j, i), 'Position', position); set(object.controls(j, i), 'String', str) set(object.controls(j, i), 'String', str); else %Standardize this object.controls(j, i) = uicontrol(object.phandle, 'Style', 'edit', 'Position', position, 'String', str); Loading