1226014 玖、發明說明: 【發明所屬之技術領域】 本發明係關於一種調整視窗元件大小與配置的方 法,尤指一種在行動終端裝置上動態調整視窗元件大小與 10 15 20 【先前技術】 目前一般行動終端裝置越來越普遍,例如··手機、pD 等···,幾乎已達到人人手中都有一台的階段,以pDA ^ 例,製造廠商相當繁多,而每家製造廠商所生產之ρ〇Α名 "例如,PDA上的顯示螢幕大小各不相同,而對於相房 =應用程式’由於程式設計人員在寫程式時就已經先對福 -件大J、或位置預先設定,因此,相同的應用程式在不 =的:DA上。可能會發生視窗元件過大或過小的情況,此因 計人員當初只是預估使用於單—或是少數種類的行 、、、端裝置,所以沒辦法適用於所有的pDA,導致相同的 3程式,無法適用於不同的行動終端裂置,另外,由於 =1大小與位置係由程式設計人M所決定且在出廠時 , 故'又有辦法針對使用者的喜好自動調整視窗元 1千的大小及# …、法滿足個人化的需求,因此,習知 要°而Γ固疋件大小與位置之設計實無法滿足實際之需 要,而有予以改進的必要。1226014 发明 Description of the invention: [Technical field to which the invention belongs] The present invention relates to a method for adjusting the size and configuration of window elements, especially a method for dynamically adjusting the size of window elements and 10 15 20 on a mobile terminal device. [Previous technology] Currently general Mobile terminal devices are becoming more and more common, such as mobile phones, pDs, etc., almost reaching a stage where everyone has one. Take pDA ^ as an example, there are quite a lot of manufacturers, and each manufacturer produces ρ 〇ΑName " For example, the size of the display screens on PDAs are different, and for photo room = applications', because the programmers have already set the size of the B-piece or the location in advance when writing the program, The same application is not on: DA. It may happen that the window component is too large or too small. This is because the staff originally estimated that it would be used in a single—or a few kinds of line ,, and end devices, so it could not be applied to all pDA, resulting in the same 3 programs, Cannot be applied to different mobile terminal splits. In addition, since the size and position of = 1 is determined by the programmer M and when it leaves the factory, there is another way to automatically adjust the size of the window element 1,000 and #…, Method meets the needs of individualization. Therefore, it is necessary to improve the design of the size and position of the Γ solid fittings, and it is necessary to improve them.
【發明内容】 5 1226014 本發明之主要目的係在提供一種動態調整視窗元件 J /、配置的方法’俾能動態加入或移除不同的元件參數 、、且,使配置官理員(Layout manager)依據不同使用者的喜好 或不同執行平台的特徵,動態調整視窗元件的大小與配置。 5 為達成前述之目的,本發明之動態調整視窗元件大小與 配置的方法係用以決定多個視窗元件顯示在視窗中之大小 與位置,该方法包括下列步驟:(A)接收一預設元件參數 組,其包括多個參數,分別定義每個視窗元件顯示在視窗 中的大小及位置之預設值;(B)接收至少一延伸元件參數 10組,其包括多個參數,分別定義每個視窗元件顯示在視窗 中的大小及位置之值;(C)將預設元件參數組之每一參數與 疋義相同視窗元件之延伸元件參數組的對應參數組合,而 決定每一視窗元件顯示在視窗中之大小與位置的參數;以 及(D)依據步驟(C)所決定之參數,調整上述之多數視窗元 15 件顯示在視窗中之大小與位置。 【實施方式】 有關本發明之動態調整視窗元件大小與位置的方法 之一較佳實施例,請先參照圖1所示,其中,本發明係以 20 使用配置管理員(Layoutmanager)13決定各視窗元件之大 小與位置,而配置管理員13係根據多個元件參數組丨丨來 調整視窗元件顯示在一行動終端裝置14中之大小與位 置,其中,每一元件參數組11包含了每一視窗元件例 如:’Label 1’、’Label 2’、’Button’欲顯示在視窗中之大小與 1226014 位置的參數。 前述之多個參數組U具有_預設元件參數組⑴ 預設兀件參數組1 i i是由程式開發人員對視窗元件先行〜 義(Prog麵讀Specified),其包含有每一視窗元件欲^ 5在行動終端裝置14中之大小與位置的預設參數。•…、 除該預設元件參數組Π1外,尚具有至少一延伸元件 參數組112,此延伸元件參數組112係依據特定之需长而 視窗元件進行定義,其包含有每一視窗元件欲顯示在行動 終端裝置14中之大小與位置的延伸參數,前述特定之需求 10例如為不同之平台特徵或不同之使用者喜好等,於本實施 例中,包括使用者參數組(User Pr〇file)n22及硬體參數組 (〇6乂106?1*0刮幻1121等兩種延伸元件參數組112,其中,使 用者參數組1122係依據使用者喜好而對視窗元件進行定 義,其包含有每一視窗元件欲顯示在行動終端裝置14中之 15大小與位置的使用者參數,不同之使用者可依據本身之喜 好而設定自己之使用者參數組1122 ;而硬體參數組丨丨以係 依據硬體平台特性而對視窗元件進行定義,其包含有每一 視窗元件欲顯示在行動終端裝置14中之大小與位置的硬體 參數,對於不同之硬體(例如不同廠家2PDA),可依據 20其特性(例如顯示幕之大小)而設定相應之硬體參數组 1121 。 ' ' 前述之預設元件參數組11丨丨及延伸元件參數組係經 由配置管理員13給定之權值(weight)進行運算而組合產生 25實際決定視窗元件顯示在視窗中之大小與位置的參數,亦 1226014 5 10 15 即,貫際決定視窗元件顯示在視窗中之大小與位置的表數 係為··(預設元件參數組之參數xwl)+(延伸元件參數組的參 數XW2),當中,權重wl+w2=1。以圖丨所示參數組包括預設 凡件參數組m、使用者參數組1122、及硬體參數組1121、 且所欲顯示之視窗元件包括,Label r、,Label2,、,Button, 為例說明,其中,該預設元件參數組ln包括分別定義視窗 元件Label Γ、’Label 2’、’Button’之三個預設參數 Ρ1·1,Ρ1-2,Ρ1-3 ;該硬體參數組1121包括分別定義視窗元 件Label Γ、’Label 2’、’Button,之三個硬體參數 Ρ2-1,Ρ2-2,Ρ2-3 ;該使用者參數組1122包括分別定義視窗元 件Label Γ、’Label 2’、’Button’之三個使用者參數 Ρ3-1,Ρ3-2,Ρ3-3。而假設配置管理員13給予該預設元件參數 組π卜使用者參數組1122、及硬體參數組1121之權重分別 為 wl、w2、w3(wl+w2+w3 = l),則產生視窗元件,Label 1’、’Label 2’、’Button’之三個實際參數ρι,Ρ2,Ρ3為: PI =Pl-l*wl+P2-l*w2+P3-l*w3, P2 = Pl-2*wl+P2-2*w2+P3-2*w3 j P3 = Pl-3*wl+P2,3*w2+P3-3*w3, 而配置管理員13以上述之參數P1,P2,P3決定視窗元 20 件’Label Γ、’Label 2’、’Button’顯示在視窗中14之大小及 位置,並據以實際調整之。 由以上之說明可知,本發明藉由組合不同參數組來動 態調整視窗元件大小與位置,可使得實際顯示之視窗元件 的大小及位置符合硬體特性並滿足使用者之喜好,圖2顯示 1226014 在一 PDA視窗之視窗元件,其中,圖2A中之使用者參數組 定義較小之視窗元件,而圖2B中之使用者參數組則定義較 大之視窗元件。 上述實施例僅係為了方便說明而舉例而已,本發明所 5主張之權利範圍自應以申請專利範圍所述為準,而^僅限 於上述實施例。 【圖式簡單說明】 圖1係本發明之動態調整視窗元件大小與位置的方法之示 10 意圖。 圖2係本發明之使用不同者參數組顯示於PDA上之結果。 【圖號說明】 =元件參數Μ 112延伸元件參數組 預叹70件參數組1121硬體參數組 使用者參數組13配置管理員 14 行動終端裝置[Summary of the Invention] 5 1226014 The main purpose of the present invention is to provide a method for dynamically adjusting the window components J /, configuration, 'can dynamically add or remove different component parameters, and make the layout manager based on Dynamically adjust the size and configuration of window components based on the preferences of different users or the characteristics of different execution platforms. 5 In order to achieve the foregoing objective, the method for dynamically adjusting the size and configuration of window elements of the present invention is used to determine the size and position of multiple window elements displayed in a window. The method includes the following steps: (A) receiving a preset element Parameter group, which includes multiple parameters, each of which defines the default value of the size and position of each window element displayed in the window; (B) Receives at least one extension element parameter 10 groups, which includes multiple parameters, each defining each The value of the size and position of the window component displayed in the window; (C) Each parameter of the preset component parameter group and the corresponding parameter combination of the extended component parameter group of the same window component are defined to determine the display of each window component in the The size and position parameters in the window; and (D) adjusting the size and position of most of the 15 window elements displayed in the window according to the parameters determined in step (C). [Embodiment] For a preferred embodiment of the method for dynamically adjusting the size and position of window elements of the present invention, please refer to FIG. 1 first, wherein the present invention uses a layout manager (Layoutmanager) 13 to determine each window. The size and position of the components, and the configuration manager 13 adjusts the size and position of the window components displayed in a mobile terminal device 14 according to a plurality of component parameter groups, wherein each component parameter group 11 includes each window Components such as: 'Label 1', 'Label 2', 'Button' The parameters of the size and position of 1226014 to be displayed in the window. The aforementioned multiple parameter groups U have _ preset component parameter groups ⑴ preset component parameter group 1 ii is a program developer's pre-defined window components (Prog read Specified), which contains the requirements of each window component ^ 5 Preset parameters of size and position in the mobile terminal device 14. • ... In addition to the preset component parameter group Π1, there is also at least one extended component parameter group 112. This extended component parameter group 112 is defined according to a specific length of a window component, which includes each window component to be displayed. The extended parameters of the size and position in the mobile terminal device 14, the aforementioned specific requirements 10 are, for example, different platform features or different user preferences, etc. In this embodiment, a user parameter group (User Pr0file) is included n22 and hardware parameter group (〇6 乂 106? 1 * 0 scratch magic 1121 and other two types of extended component parameter group 112, of which user parameter group 1122 is based on user preferences to define the window component, which includes each A window component wants to display 15 size and position user parameters in the mobile terminal device 14. Different users can set their own user parameter group 1122 according to their own preferences; and the hardware parameter group 丨 丨 is based on Windows components are defined by the characteristics of the hardware platform, which includes the hardware parameters of the size and position of each window component to be displayed in the mobile terminal device 14. For different Body (such as 2 PDAs from different manufacturers), you can set the corresponding hardware parameter group 1121 according to its characteristics (such as the size of the display screen). '' The aforementioned preset component parameter group 11 and extension component parameter groups are configured The administrator 13 calculates the given weight and combines it to produce 25 parameters that actually determine the size and position of the window element displayed in the window, which is 1226014 5 10 15 that is, it determines the size and position of the window element displayed in the window. The number of positions table is ... (parameter xwl of the preset component parameter group) + (parameter XW2 of the extension component parameter group), among which, the weight wl + w2 = 1. The parameter group shown in Figure 丨 includes the preset components. Parameter group m, user parameter group 1122, and hardware parameter group 1121, and the window components to be displayed include Label r, Label2 ,, and Button. As an example, the preset component parameter group ln includes Define the three preset parameters P1 · 1, P1-2, and P1-3 of the window element Label Γ, 'Label 2', and 'Button', respectively. The hardware parameter group 1121 includes the definition of the window elements Label Γ, 'Label 2 respectively. ',' Button, of Hardware parameters P2-1, P2-2, P2-3; the user parameter group 1122 includes three user parameters P3-1, P3- defining window elements Label Γ, 'Label 2', and 'Button', respectively 2, P3-3. Suppose that the configuration manager 13 gives the preset component parameter group π user parameter group 1122, and the weight of the hardware parameter group 1121 are wl, w2, w3 (wl + w2 + w3 = l ), Then the window elements, Label 1 ',' Label 2 ', and' Button 'are the three actual parameters ρ, P2, and P3: PI = Pl-l * wl + P2-l * w2 + P3-l * w3 , P2 = Pl-2 * wl + P2-2 * w2 + P3-2 * w3 j P3 = Pl-3 * wl + P2,3 * w2 + P3-3 * w3, and the configuration manager 13 uses the above parameters P1, P2, and P3 determine the size and position of the 20 window elements' Label Γ, 'Label 2', and 'Button' displayed in the window 14 and adjust them accordingly. As can be seen from the above description, the present invention dynamically adjusts the size and position of the window element by combining different parameter groups, so that the size and position of the actually displayed window element conforms to the hardware characteristics and meets the user's preference. Figure 2 shows 1226014 in A window component of a PDA window, wherein the user parameter group in FIG. 2A defines a smaller window component, and the user parameter group in FIG. 2B defines a larger window component. The above embodiments are merely examples for the convenience of description. The scope of the rights claimed in the present invention shall be based on the scope of the patent application, and ^ is limited to the above embodiments. [Schematic description] FIG. 1 is a schematic diagram of a method for dynamically adjusting the size and position of a window element according to the present invention. FIG. 2 is a result of displaying different parameter groups on a PDA according to the present invention. [Illustration of drawing number] = Component parameter M 112 Extended component parameter group 70 pieces of parameter group 1121 Hardware parameter group User parameter group 13 Configuration manager 14 Mobile terminal device