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

mapxtreme_mapxtreme最新版_arcgis engine(8)

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

//CreateaSelectionobject,andaddtheselectedfeatures

Selectionsel=newSelection();

sel.add(fs);

//AssigntheSelectionobjecttotheSelectionTheme

selTheme.setSelection(sel);

//AssignthedisplaystyleoftheSelectionTheme

Renditionrend=RenditionImpl.getDefaultRendition();

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

selTheme.setRendition(rend);

//AddtheSelectionThemetothelayerslistofthemes

layer.getThemeList().add(selTheme)

3RangedTheme

范围专题根据图层中数据的数值分成几个范围,然后将图元分为几组,每组有一个Rendition控制图元的显示。MapXtreme提供了一系列的对象用来控制范围专题。

下面先介绍一个示例,然后介绍和范围专题相关的对象:

示例:

Layerlyr=null;

Renditionyellow=RenditionImpl.getDefaultRendition();

Renditionred=RenditionImpl.getDefaultRendition();

lyr=m_map.getLayers().getLayer("States.tab");

StringcolName="Pop_1990";

ColumnStatisticscolStats=lyr.fetchColumnStatistics(colName);

//Setnumberofbreaksfordata

intnumBreaks=5;

//Computethedistributionofdatawith5breaksand

//EqualRanges

VectorrBreaks=Bucketer.computeDistribution(numBreaks,colStats,Bucketer.DISTRIBUTION_TYPE_EQUAL_RANGES);

//Setuparedandayellowrenditionandthen

//spreadthecolors

yellow.setvalue(Rendition.FILL,Color.yellow);

yellow.setvalue(Rendition.STROKE_WIDTH,2);

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

red.setvalue(Rendition.STROKE_WIDTH,4);

Vectorrends=LinearRenditionSpreader.spread(numBreaks,yellow,red);

//CreateThemeobject

RangedThemerTheme=newRangedTheme(colName,rBreaks,rends,"StatesbyPop_1990");

//GetThemeListclassobject

ThemeListtList=lyr.getThemeList();


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

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

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