資源描述:
《java programming課程項(xiàng)目設(shè)計(jì)說明—mutiview》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、JavaProgramming課程項(xiàng)目設(shè)計(jì)說明——MultiViewProject功能說明MultiViewProject系統(tǒng)實(shí)現(xiàn)對成績的統(tǒng)計(jì),并通過直方圖和餅圖來顯示統(tǒng)計(jì)的結(jié)果,成績數(shù)據(jù)可以從文件中載入,也可以進(jìn)行增加、刪除、清空等操作,原始數(shù)據(jù)顯示在面板左邊;當(dāng)成績數(shù)據(jù)發(fā)生變化包括增加、刪除和清空時(shí),柱狀圖、餅狀圖兩種圖形以及左邊分?jǐn)?shù)數(shù)據(jù)面板分別調(diào)整圖形中色值區(qū)域和左邊數(shù)值。我們通過下面的ProjectDemo來說明項(xiàng)目的主要功能。1.主界面:界面分為上下兩個(gè)面板,上面面板是包括四個(gè)命令按鈕的工具條,分別為載入、增加、刪除和清空四個(gè)功能。成績文件里面的數(shù)值示在左下方界面,右下面面板
2、顯示相應(yīng)的直方圖和餅狀圖分布。2.主要功能概述1)點(diǎn)擊“Load”otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNort
3、hwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCountypartyCommitteeSecretaryandrecorderoftheCountypartyCommitteeSecretary,Ministersand按鈕,加載成績文件里面的數(shù)值并顯示在左下方界面,同時(shí)顯示相應(yīng)的直方圖和餅狀圖;1)點(diǎn)擊“Add”按鈕,將增加新成績到成績文件中,修改左下方成績和右邊直方圖和餅狀圖分布;2)點(diǎn)擊“Delete”按鈕,將刪除成績文件對應(yīng)成績,修改左下方成
4、績和右邊直方圖和餅狀圖分布;3)點(diǎn)擊“Clear”按鈕,清空面板左邊的所有成績,和右邊的直方圖和餅狀圖信息;3.詳細(xì)說明各模塊功能流程3.1載入功能主要是用來加載數(shù)據(jù)文件,數(shù)據(jù)文件為文本文件,每行一個(gè)數(shù)據(jù)。點(diǎn)擊【load】按鈕,選擇路徑找到data.txt文件,點(diǎn)擊【打開】,用戶可以通過加載數(shù)據(jù)列表對存放在純文本文件中的數(shù)據(jù)進(jìn)行一次性導(dǎo)入。otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecre
5、tary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCountypartyCommitteeSecretaryandrecorderoftheCountypartyCommitteeS
6、ecretary,Ministersand顯示如下:面板的左邊是加載進(jìn)去的數(shù)據(jù)內(nèi)容,面板右邊是本項(xiàng)目實(shí)現(xiàn)對成績進(jìn)行統(tǒng)計(jì),并以柱狀圖和餅狀圖進(jìn)行比例展示的功能。程序?qū)⒆詣?dòng)計(jì)算出0-59,60-69,70-79,80-89,90-100各分段的數(shù)據(jù)分布。按照相應(yīng)比例,分別畫出對應(yīng)柱狀圖和餅狀圖中的深藍(lán)、淺藍(lán)、綠色、粉紅色和黃色區(qū)域的面積大小。3.2增加數(shù)據(jù)otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitte
7、eSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,Direc