Home > BiKEGG > VisualProp.m

VisualProp

PURPOSE ^

VisualProp(GUI)

SYNOPSIS ^

function varargout = VisualProp(varargin)

DESCRIPTION ^

 VisualProp(GUI)
 Customizing color properties for KeggDraw maps.

 O. Jamialahmadi
 TMU, Chem. Eng. Dept., Biotech. Group 
 Mar. 2015

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function varargout = VisualProp(varargin)
0002 % VisualProp(GUI)
0003 % Customizing color properties for KeggDraw maps.
0004 %
0005 % O. Jamialahmadi
0006 % TMU, Chem. Eng. Dept., Biotech. Group
0007 % Mar. 2015
0008 
0009 % Begin initialization code - DO NOT EDIT
0010 gui_Singleton = 1;
0011 gui_State = struct('gui_Name',       mfilename, ...
0012                    'gui_Singleton',  gui_Singleton, ...
0013                    'gui_OpeningFcn', @VisualProp_OpeningFcn, ...
0014                    'gui_OutputFcn',  @VisualProp_OutputFcn, ...
0015                    'gui_LayoutFcn',  [] , ...
0016                    'gui_Callback',   []);
0017 if nargin && ischar(varargin{1})
0018     gui_State.gui_Callback = str2func(varargin{1});
0019 end
0020 
0021 if nargout
0022     [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
0023 else
0024     gui_mainfcn(gui_State, varargin{:});
0025 end
0026 % End initialization code - DO NOT EDIT
0027 
0028 
0029 % --- Executes just before VisualProp is made visible.
0030 function VisualProp_OpeningFcn(hObject, eventdata, handles, varargin)
0031 % This function has no output args, see OutputFcn.
0032 % hObject    handle to figure
0033 % eventdata  reserved - to be defined in a future version of MATLAB
0034 % handles    structure with handles and user data (see GUIDATA)
0035 % varargin   command line arguments to VisualProp (see VARARGIN)
0036 
0037 % Choose default command line output for VisualProp
0038 handles.output = hObject;
0039 
0040 % Update handles structure
0041 guidata(hObject, handles);
0042 
0043 % UIWAIT makes VisualProp wait for user response (see UIRESUME)
0044 % uiwait(handles.figure1);
0045 
0046 
0047 % --- Outputs from this function are returned to the command line.
0048 function varargout = VisualProp_OutputFcn(hObject, eventdata, handles) 
0049 % varargout  cell array for returning output args (see VARARGOUT);
0050 % hObject    handle to figure
0051 % eventdata  reserved - to be defined in a future version of MATLAB
0052 % handles    structure with handles and user data (see GUIDATA)
0053 
0054 % Get default command line output from handles structure
0055 varargout{1} = handles.output;
0056 
0057 
0058 % --- Executes on button press in TextColPush.
0059 function TextColPush_Callback(hObject, eventdata, handles)
0060 % hObject    handle to TextColPush (see GCBO)
0061 % eventdata  reserved - to be defined in a future version of MATLAB
0062 % handles    structure with handles and user data (see GUIDATA)
0063 if ~isempty (getappdata(0,'TextCol'))
0064     rmappdata (0,'TextCol')
0065 else
0066     waitfor(msgbox({'                      Choosing text color is optional';...
0067         'You can use default properties simply by closing color panel'},...
0068         'warning','warn'));
0069 end
0070 TextCol=uisetcolor;
0071 if size(TextCol,2) == 3
0072     setappdata(0,'TextCol',TextCol)
0073 end
0074 
0075 % --- Executes on button press in TextFontPush.
0076 function TextFontPush_Callback(hObject, eventdata, handles)
0077 % hObject    handle to TextFontPush (see GCBO)
0078 % eventdata  reserved - to be defined in a future version of MATLAB
0079 % handles    structure with handles and user data (see GUIDATA)
0080 if ~isempty (getappdata(0,'TextFont'))
0081     rmappdata (0,'TextFont')
0082 else
0083     waitfor(msgbox({'                      Choosing text font is optional';...
0084         'You can use default properties simply by closing text panel'},...
0085         'warning','warn'));
0086 end
0087 TextFont=uisetfont;
0088 if isstruct(TextFont);
0089     setappdata(0,'TextFont',TextFont)
0090 end
0091 
0092 % --- Executes on button press in BoxColPush.
0093 function BoxColPush_Callback(hObject, eventdata, handles)
0094 % hObject    handle to BoxColPush (see GCBO)
0095 % eventdata  reserved - to be defined in a future version of MATLAB
0096 % handles    structure with handles and user data (see GUIDATA)
0097 if ~isempty (getappdata(0,'BoxtCol'))
0098     rmappdata (0,'BoxtCol')
0099 else
0100     waitfor(msgbox({'                      Choosing box color is optional';...
0101         'You can use default properties simply by closing color panel'},...
0102         'warning','warn'));
0103 end
0104 BoxCol=uisetcolor;
0105 if size(BoxCol,2) == 3
0106     setappdata(0,'BoxtCol',BoxCol)
0107 end
0108 
0109 
0110 % --- Executes on button press in Donepushbutton5.
0111 function Donepushbutton5_Callback(hObject, eventdata, handles)
0112 % hObject    handle to Donepushbutton5 (see GCBO)
0113 % eventdata  reserved - to be defined in a future version of MATLAB
0114 % handles    structure with handles and user data (see GUIDATA)
0115 close(gcf)

Generated on Sat 16-Jul-2016 20:21:30 by m2html © 2005