新生代數(shù)字媒體技術(shù)羿魔方數(shù)據(jù)可視化系統(tǒng)源代碼java

上傳人:奇異 文檔編號(hào):21523639 上傳時(shí)間:2021-05-03 格式:DOCX 頁數(shù):100 大?。?2.58KB
收藏 版權(quán)申訴 舉報(bào) 下載
新生代數(shù)字媒體技術(shù)羿魔方數(shù)據(jù)可視化系統(tǒng)源代碼java_第1頁
第1頁 / 共100頁
新生代數(shù)字媒體技術(shù)羿魔方數(shù)據(jù)可視化系統(tǒng)源代碼java_第2頁
第2頁 / 共100頁
新生代數(shù)字媒體技術(shù)羿魔方數(shù)據(jù)可視化系統(tǒng)源代碼java_第3頁
第3頁 / 共100頁

下載文檔到電腦,查找使用更方便

10 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《新生代數(shù)字媒體技術(shù)羿魔方數(shù)據(jù)可視化系統(tǒng)源代碼java》由會(huì)員分享,可在線閱讀,更多相關(guān)《新生代數(shù)字媒體技術(shù)羿魔方數(shù)據(jù)可視化系統(tǒng)源代碼java(100頁珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。

1、 packageorg.jfree.base.config; importjava.util.Enumeration; importjava.util.Iterator; importorg.jfree.util.Configuration; publicabstractinterfaceModifiableConfigurationextendsConfiguration { publicabstractvoidsetConfigProperty(StringparamString1,StringparamStri

2、ng2); publicabstractEnumerationgetConfigProperties(); publicabstractIteratorfindPropertyKeys(StringparamString); } packageorg.jfree.base.config; importjava.util.Enumeration; importjava.util.Properties;? importjava.util.Vector; publicclassSystemPropertyConfigur

3、ationextendsHierarchicalConfiguration { publicvoidsetConfigProperty(Stringkey,Stringvalue) { thrownewUnsupportedOperationException("TheSystemPropertyConfigurationisreadOnly"); } publicStringgetConfigProperty(Stringkey,StringdefaultValue) { try { Stri

4、ngvalue=System.getProperty(key); if(value!=null){ returnvalue; } } catch(SecurityExceptionse) { } returnsuper.getConfigProperty(key,defaultValue); } publicbooleanisLocallyDefined(Stringkey) { try { returnSystem.getProperti

5、es().containsKey(key); }catch(SecurityExceptionse){ } returnfalse; } publicEnumerationgetConfigProperties() { try { returnSystem.getProperties().keys(); } catch(SecurityExceptionse){ } returnnewVector().elements(); } }package

6、org.jfree.base.config; importjava.io.BufferedInputStream; importjava.io.IOException; importjava.io.InputStream; importjava.util.Properties; importorg.jfree.util.Log; importorg.jfree.util.ObjectUtilities; publicclassPropertyFileConfigurationextendsHierarchic

7、alConfiguration { publicvoidload(StringresourceName) { load(resourceName,PropertyFileConfiguration.class); } publicvoidload(StringresourceName,ClassresourceSource) { InputStreamin=ObjectUtilities.getResourceRelativeAsStream(resourceName,resourceSource); i

8、f(in!=null) { try { load(in); } finally { try { in.close(); } catch(IOExceptione) { } } } else { Log.debug("Configurationfilenotfoundintheclasspath:"+resourceName); } } publicvoidloa

9、d(InputStreamin) { if(in==null) { thrownewNullPointerException(); } try { BufferedInputStreambin=newBufferedInputStream(in); Propertiesp=newProperties(); p.load(bin); getConfiguration().putAll(p); bin.close(); } catch(IOExceptioni

10、oe) { Log.warn("Unabletoreadconfiguration",ioe); } } }packageorg.jfree.base.log; importorg.jfree.util.Log; importorg.jfree.util.LogT arget; importorg.jfree.util.PrintStreamLogTarget; publicclassDefaultLogextendsLog { privatestaticfinalPrintStrea

11、mLogT argetDEFAULT_LOG_TARGET=newPrintStreamLogT arget(); privatestaticfinalDefaultLogdefaultLogInstance=newDefaultLog(); publicvoidinit() { removeT arget(DEFAULT_LOG_TARGET); StringlogLevel=LogConfiguration.getLogLevel(); if(logLevel.equalsIgnoreCase("error")){

12、 setDebuglevel(0); } elseif(logLevel.equalsIgnoreCase("warn")){ setDebuglevel(1); } elseif(logLevel.equalsIgnoreCase("info")){ setDebuglevel(2); } elseif(logLevel.equalsIgnoreCase("debug")) setDebuglevel(3); } publicsynchronizedvoidaddT arg

13、et(LogT argettarget) { super.addT arget(target); if(target!=DEFAULT_LOG_TARGET) removeT arget(DEFAULT_LOG_TARGET); } publicstaticDefaultLoggetDefaultLog() { returndefaultLogInstance; } publicstaticvoidinstallDefaultLog() { Log.defineLog(de

14、faultLogInstance); } static { defaultLogInstance.addT arget(DEFAULT_LOG_TARGET); try { Stringproperty=System.getProperty("org.jfree.DebugDefault","false"); if(Boolean.valueOf(property).booleanValue()){ defaultLogInstance.setDebuglevel(3); }

15、 else defaultLogInstance.setDebuglevel(1); } catch(SecurityExceptionse) { defaultLogInstance.setDebuglevel(1); } } }packageorg.jfree.base.log; importorg.jfree.base.modules.AbstractModule; importorg.jfree.base.modules.ModuleInitializeException;

16、 importorg.jfree.base.modules.SubSystem; importorg.jfree.util.Configuration; importorg.jfree.util.Log; importorg.jfree.util.PrintStreamLogTarget; publicclassDefaultLogModuleextendsAbstractModule { publicDefaultLogModule() throwsModuleInitializeException {

17、 loadModuleInfo(); } publicvoidinitialize(SubSystemsubSystem) throwsModuleInitializeException { if(LogConfiguration.isDisableLogging()) { return; } if(LogConfiguration.getLogT arget().equals(PrintStreamLogT arget.class.getName())) { Def

18、aultLog.installDefaultLog(); Log.getInstance().addT arget(newPrintStreamLogT arget()); if("true".equals(subSystem.getGlobalConfig().getConfigProperty("org.jfree.base.LogAutoInit"))) { Log.getInstance().init(); } Log.info("Defaultlogtargetstartedpreviouslogmessagescouldh

19、avebeenignored."); } } }packageorg.jfree.base.log; importorg.jfree.base.AbstractBoot; importorg.jfree.base.BaseBoot; importorg.jfree.base.config.ModifiableConfiguration; importorg.jfree.util.Configuration; importorg.jfree.util.PrintStreamLogTarget; public

20、classLogConfiguration { publicstaticfinalStringDISABLE_LOGGING_DEFAULT="false"; publicstaticfinalStringLOGLEVEL="org.jfree.base.LogLevel"; publicstaticfinalStringLOGLEVEL_DEFAULT="Info"; publicstaticfinalStringLOGTARGET="org.jfree.base.LogT arget"; publicstaticfinalStri

21、ngLOGTARGET_DEFAULT=PrintStreamLogT arget.class.getName(); publicstaticfinalStringDISABLE_LOGGING="org.jfree.base.NoDefaultDebug"; publicstaticStringgetLogT arget() { returnBaseBoot.getInstance().getGlobalConfig().getConfigProperty("org.jfree.base.LogT arget",LO GTAR

22、GET_DEFAULT); } publicstaticvoidsetLogT arget(StringlogT arget) { BaseBoot.getConfiguration().setConfigProperty("org.jfree.base.LogT arget",logT arget); } publicstaticStringgetLogLevel() { returnBaseBoot.getInstance().getGlobalConfig().getConfigProperty("org.j

23、free.base.LogLevel","Inf o"); } publicstaticvoidsetLogLevel(Stringlevel) { BaseBoot.getConfiguration().setConfigProperty("org.jfree.base.LogLevel",level); } publicstaticbooleanisDisableLogging() { returnBaseBoot.getInstance().getGlobalConfig().getConfigPr

24、operty("org.jfree.base.NoDefaultDeb ug","false").equalsIgnoreCase("true"); } publicstaticvoidsetDisableLogging(booleandisableLogging) { BaseBoot.getConfiguration().setConfigProperty("org.jfree.base.NoDefaultDebug",String.valueOf( disableLogging)); } }packageor

25、g.jfree.base.log; importjava.util.Arrays; publicclassPadMessage { privatefinalObjecttext; privatefinalintlength; publicPadMessage(Objectmessage,intlength) { this.text=message; this.length=length; } publicStringtoString() { Stri

26、ngBufferb=newStringBuffer(); b.osend(this.text); if(b.length()

27、java.io.IOException; importjava.io.InputStream; importjava.io.InputStreamReader; importjava.util.ArrayList; importorg.jfree.util.ObjectUtilities; publicabstractclassAbstractModuleextendsDefaultModuleInfo implementsModule { privateModuleInfo[]requiredMo

28、dules; privateModuleInfo[]optionalModules; privateStringname; privateStringdescription; privateStringproducer; privateStringsubsystem; publicAbstractModule() { setModuleClass(getClass().getName()); } protectedvoidloadModuleInfo() throwsModuleIni

29、tializeException { InputStreamin=ObjectUtilities.getResourceRelativeAsStream("module.properties",getClass()); if(in==null) { thrownewModuleInitializeException("Filemodule.propertiesnotfoundinmodulepackage."); } loadModuleInfo(in); } protectedvoidloadModul

30、eInfo(InputStreamin) throwsModuleInitializeException { if(in==null) { thrownewNullPointerException("GivenInputStreamisnull."); } try { ArrayListoptionalModules=newArrayList(); ArrayListdependendModules=newArrayList(); ReaderHelperrh=newR

31、eaderHelper(newBufferedReader(newInputStreamReader(in,"ISO-8859-1" ))); try { while(rh.hasNext()) { StringlastLineRead=rh.next(); if(lastLineRead.startsWith("module-info:")) { readModuleInfo(rh); } elseif(lastLineRead.startsWith("depends:"))

32、 { dependendModules.add(readExternalModule(rh)); } elseif(lastLineRead.startsWith("optional:")) { optionalModules.add(readExternalModule(rh)); } } } finally { rh.close(); } this.optionalModules=((ModuleInfo[])optionalModules.toArray(n

33、ewModuleInfo[optionalModule s.size()])); this.requiredModules=((ModuleInfo[])dependendModules.toArray(newModuleInfo[dependend Modules.size()])); } catch(IOExceptionioe) { thrownewModuleInitializeException("Failedtoloadproperties",ioe); } } pr

34、ivateStringreadValue(ReaderHelperreader,StringfirstLine) throwsIOException { StringBufferb=newStringBuffer(firstLine.trim()); booleannewLine=true; while(isNextLineValueLine(reader)) { firstLine=reader.next(); StringtrimedLine=firstLine.trim(); if((trimedL

35、ine.length()==0)&&(!newLine)) { b.osend("\n"); newLine=true; } else { if(!newLine) { b.osend(""); } b.osend(parseValue(trimedLine)); newLine=false; } } returnb.toString(); } privatebooleanisNextLineValueLine

36、(ReaderHelperreader) throwsIOException { if(!reader.hasNext()) { returnfalse; } StringfirstLine=reader.next(); if(firstLine==null) { returnfalse; } if(parseKey(firstLine)!=null) { reader.pushBack(firstLine); returnfalse;

37、 } reader.pushBack(firstLine); returntrue; } privatevoidreadModuleInfo(ReaderHelperreader) throwsIOException { while(reader.hasNext()) { StringlastLineRead=reader.next(); if(!Character.isWhitespace(lastLineRead.charAt(0))) { reader.

38、pushBack(lastLineRead); return; } Stringline=lastLineRead.trim(); Stringkey=parseKey(line); if(key!=null) { Stringb=readValue(reader,parseValue(line.trim())); if("name".equals(key)) { setName(b); } elseif("producer".equals(key)) {

39、 setProducer(b); } elseif("description".equals(key)) { setDescription(b); } elseif("subsystem".equals(key)) { setSubSystem(b); } elseif("version.major".equals(key)) { setMajorVersion(b); } elseif("version.minor".equals(key))

40、 { setMinorVersion(b); } elseif("version.patchlevel".equals(key)) { setPatchLevel(b); } } } } privateStringparseKey(Stringline) { intidx=line.indexOf(:); if(idx==-1) { returnnull; } returnline.substring(0,idx

41、); } privateStringparseValue(Stringline) { intidx=line.indexOf(:); if(idx==-1) { returnline; } if(idx+1==line.length()) { return""; } returnline.substring(idx+1); } privateDefaultModuleInforeadExternalModule(ReaderHel

42、perreader) throwsIOException { DefaultModuleInfomi=newDefaultModuleInfo(); while(reader.hasNext()) { StringlastLineRead=reader.next(); if(!Character.isWhitespace(lastLineRead.charAt(0))) { reader.pushBack(lastLineRead); returnmi; } Stringli

43、ne=lastLineRead.trim(); Stringkey=parseKey(line); if(key!=null) { Stringb=readValue(reader,parseValue(line)); if("module".equals(key)) { mi.setModuleClass(b); } elseif("version.major".equals(key)) { mi.setMajorVersion(b); } elseif("ver

44、sion.minor".equals(key)) { mi.setMinorVersion(b); } elseif("version.patchlevel".equals(key)) { mi.setPatchLevel(b); } } } returnmi; } publicStringgetName() { returnthis.name; } protectedvoidsetName(Stringname)

45、 { this.name=name; } publicStringgetDescription() { returnthis.description; } protectedvoidsetDescription(Stringdescription) { this.description=description; } publicStringgetProducer() { returnthis.producer; } protectedvoid

46、setProducer(Stringproducer) { this.producer=producer; } publicModuleInfo[]getRequiredModules() { ModuleInfo[]retval=newModuleInfo[this.requiredModules.length]; System.arraycopy(this.requiredModules,0,retval,0,this.requiredModules.length); returnretval;

47、 } publicModuleInfo[]getOptionalModules() { ModuleInfo[]retval=newModuleInfo[this.optionalModules.length]; System.arraycopy(this.optionalModules,0,retval,0,this.optionalModules.length); returnretval; } protectedvoidsetRequiredModules(ModuleInfo[]requiredModule

48、s) { this.requiredModules=newModuleInfo[requiredModules.length]; System.arraycopy(requiredModules,0,this.requiredModules,0,requiredModules.length); } publicvoidsetOptionalModules(ModuleInfo[]optionalModules) { this.optionalModules=newModuleInfo[optionalModules.leng

49、th]; System.arraycopy(optionalModules,0,this.optionalModules,0,optionalModules.length); } publicStringtoString() { StringBufferbuffer=newStringBuffer(); buffer.osend("Module:"); buffer.osend(getName()); buffer.osend("\n"); buffer.osend("ModuleClas

50、s:"); buffer.osend(getModuleClass()); buffer.osend("\n"); buffer.osend("Version:"); buffer.osend(getMajorVersion()); buffer.osend("."); buffer.osend(getMinorVersion()); buffer.osend("."); buffer.osend(getPatchLevel()); buffer.osend("\n"); buffer.osen

51、d("Producer:"); buffer.osend(getProducer()); buffer.osend("\n"); buffer.osend("Description:"); buffer.osend(getDescription()); buffer.osend("\n"); returnbuffer.toString(); } /**@deprecated*/ protectedstaticbooleanisClassLoadable(Stringname) { tr

52、y { ClassLoaderloader=ObjectUtilities.getClassLoader(AbstractModule.class); if(loader==null) { returnfalse; } loader.loadClass(name); returntrue; } catch(Exceptione){ } returnfalse; } protectedstaticbooleanisClassLoadable(

53、Stringname,Classcontext) { try { ObjectUtilities.getClassLoader(context).loadClass(name); returntrue; } catch(Exceptione){ } returnfalse; } publicvoidconfigure(SubSystemsubSystem) { InputStreamin=ObjectUtilities.getResourceRelativeAsSt

54、ream("configuration.properties",getClass( )); if(in==null) { return; } try { subSystem.getPackageManager().getPackageConfiguration().load(in); } finally { try { in.close(); } catch(IOExceptione) { }

55、 } } /**@deprecated*/ protectedvoidperformExternalInitialize(Stringclassname) throwsModuleInitializeException { try { ModuleInitializermi=(ModuleInitializer)ObjectUtilities.loadAndInstantiate(classname,AbstractMo dule.class,ModuleInitializer.class);

56、 if(mi==null) { thrownewModuleInitializeException("Failedtoloadspecifiedinitializerclass."); } mi.performInit(); } catch(ModuleInitializeExceptionmie) { throwmie; } catch(Exceptione) { thrownewModuleInitializeException("Failedtoload

57、specifiedinitializerclass.",e); } } protectedvoidperformExternalInitialize(Stringclassname,Classcontext) throwsModuleInitializeException { try { ModuleInitializermi=(ModuleInitializer)ObjectUtilities.loadAndInstantiate(classname,context,Mo duleInitializer

58、.class); if(mi==null) { thrownewModuleInitializeException("Failedtoloadspecifiedinitializerclass."); } mi.performInit(); } catch(ModuleInitializeExceptionmie) { throwmie; } catch(Exceptione) { thrownewModuleInitializeException("Failedt

59、oloadspecifiedinitializerclass.",e); } } publicStringgetSubSystem() { if(this.subsystem==null) { returngetName(); } returnthis.subsystem; } protectedvoidsetSubSystem(Stringname) { this.subsystem=name; } privatestaticc

60、lassReaderHelper { privateStringbuffer; privatefinalBufferedReaderreader; protectedReaderHelper(BufferedReaderreader) { this.reader=reader; } publicbooleanhasNext() throwsIOException { if(this.buffer==null) { this.buffer=readLine();

61、 } returnthis.buffer!=null; } publicStringnext() { Stringline=this.buffer; this.buffer=null; returnline; } publicvoidpushBack(Stringline) { this.buffer=line; } protectedStringreadLine() throwsIOException { Stri

62、ngline=this.reader.readLine(); while((line!=null)&&((line.length()==0)||(line.startsWith("#")))) { line=this.reader.readLine(); } returnline; } publicvoidclose() throwsIOException { this.reader.close(); } } } packageorg.jfree.base

63、.modules; publicclassDefaultModuleInfo implementsModuleInfo { privateStringmoduleClass; privateStringmajorVersion; privateStringminorVersion; privateStringpatchLevel; publicDefaultModuleInfo() { } publicDefaultModuleInfo(StringmoduleClas

64、s,StringmajorVersion,StringminorVersion,Stringpatch Level) { if(moduleClass==null) { thrownewNullPointerException("Moduleclassmustnotbenull."); } this.moduleClass=moduleClass; this.majorVersion=majorVersion; this.minorVersion=minorVersion; this.patch

65、Level=patchLevel; } publicStringgetModuleClass() { returnthis.moduleClass; } publicvoidsetModuleClass(StringmoduleClass) { if(moduleClass==null) { thrownewNullPointerException(); } this.moduleClass=moduleClass; } publicStringgetMa

66、jorVersion() { returnthis.majorVersion; } publicvoidsetMajorVersion(StringmajorVersion) { this.majorVersion=majorVersion; } publicStringgetMinorVersion() { returnthis.minorVersion; } publicvoidsetMinorVersion(StringminorVersion) { this.minorVersion=minorVersion; } publicStringgetPatchLevel() { returnthis.patchLevel; } publicvoidsetPatchLevel(StringpatchLevel) { this.patch

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號(hào):ICP2024067431號(hào)-1 川公網(wǎng)安備51140202000466號(hào)


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺(tái),本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請(qǐng)立即通知裝配圖網(wǎng),我們立即給予刪除!