b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

mapxtreme_mapxtreme最新版_arcgis engine(10)

电脑杂谈  发布时间:2017-01-21 21:02:49  来源:网络整理

//Renderthemaptothefile

Renderer.toFile("comp.gif");

4IndividualvalueTheme

示例:

//getareferencetothelayerwewillbeapplyingthemeto

lyr=lyrs.add(dpr,ttdh,"Territories");

//createanewthemeobject

IndividualvalueThemeiValThm=newIndividualvalueTheme("CoverageTerritory","Sales

CoverageBreakdown");

//createarendition

Renditionrend=RenditionImpl.getDefaultRendition();

//assigncolortorenditionaddattributetothemewithpreviouslysetrendition

rend.setvalue(Rendition.FILL,Color.red);

iValThm.add(newAttribute("SouthWest"),rend);

//assigncolortorenditionaddattributetothemewithpreviouslysetrendition

rend.setvalue(Rendition.FILL,Color.blue);

iValThm.add(newAttribute("SouthEast"),rend);

//assigncolortorenditionaddattributetothemewithpreviouslysetrendition

rend.setvalue(Rendition.FILL,Color.green);

iValThm.add(newAttribute("Central"),rend);

//Addthethemetolayersthemelist

lyr.getThemeList().add(iValThm);

//Storecolumnnameandtypeinhashtable

Hashtableht=newHashtable();

ht.put("geomtype",IndividualvalueThemeLegend.REGION_GEOMETRY);

ht.put("lableorder",IndividualvalueThemeLegend.ORDER_ASCENDING);

//Createnewlegendpassingthemeandhashtable.ThesetThemeTitle.

IndividualvalueThemeLegendiValThmLeg;

iValThmLeg=newIndividualvalueThemeLegend(iValThm,ht);

iValThmLeg.setTitle("CovergeTerritorylegend");

//Generategifimagefromlegend

iValThmLeg.toFile("c:\\temp\\terrLeg.gif","image/gif");


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-27888-10.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...