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



《新生代數(shù)字媒體技術(shù)羿魔方數(shù)據(jù)可視化系統(tǒng)源代碼java》由會員分享,可在線閱讀,更多相關《新生代數(shù)字媒體技術(shù)羿魔方數(shù)據(jù)可視化系統(tǒng)源代碼java(100頁珍藏版)》請在裝配圖網(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等.壓縮文件請下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年高考政治一輪復習:統(tǒng)編版選擇性必修1-3【共3冊重點知識點匯總】
- 2025年高考政治一輪復習:七冊教材重點考點匯總
- 2025年高考生物一輪復習:高中生物必修+選必修5冊教材重點知識點匯總
- 2025政府工作報告要點速覽發(fā)展總體要求和政策取向
- 《哪吒2》與DEEPSEEK年輕力量的崛起助力中國突破重圍
- 建設金融強國做好金融五篇大文章的指導意見
- 落實高質(zhì)量發(fā)展要求如期完成既定目標任務更新理念科學統(tǒng)籌切實增強規(guī)劃執(zhí)行的系統(tǒng)性整體性協(xié)同性
- 如何成為一名暖護暖護的概念與職責
- 藥品儲存與養(yǎng)護醫(yī)療護理藥品儲存藥品養(yǎng)護藥品常識
- 手術(shù)室職業(yè)暴露與防護診療護理等過程中被患者血液體液等污染自身皮膚或黏膜導致的感染
- XX企業(yè)中層管理者領導力提升培訓課程
- 醫(yī)院新員工入職培訓醫(yī)院新員工必備主要職業(yè)意識醫(yī)院新員工必備工作觀
- 人工智能技術(shù)介紹人工智能DeepSeek人工智能的未來展望與發(fā)展
- 養(yǎng)娃要有松弛感家庭教育讓孩子在具有松弛感的家庭里慢慢成長
- 醫(yī)院新員工入職培訓醫(yī)院新員工必備主要職業(yè)意識