📄 rangedlabeltheme.java~1~
字号:
package myfirstmap;import com.mapinfo.mapj.FeatureLayer;import com.mapinfo.mapj.MapJ;import com.mapinfo.unit.LinearUnit;import com.mapinfo.util.DoublePoint;import com.mapinfo.util.DoubleRect;import com.mapinfo.mapj.Layers;public class RangedLabelTheme{ private String mdfFilePath="e:\\MapInfo\\study\\mapmdf"; private String mdfFileName="states.mdf"; private String mapxtremeURL="http://901-32:8083/mapxtreme47/mapxtreme"; public RangedLabelTheme() { }public void studyRangedLabelTheme() { MapJ mapj=new MapJ(); double zoom = 10000.0; DoublePoint centerPoint=new DoublePoint(-108.8,42.5); LinearUnit unit=LinearUnit.kilometer ; DoubleRect bound=new DoubleRect(0,0,800,600); Layers layers=null; FeatureLayer layer=null; // obtain a reference to the target layer// name of the target layer whose labels' appearance will// be altered by the RangedLabelThemeString TARGET_LAYER_NAME = "STATES";if ((layer = (FeatureLayer)mapj.getLayers().getLayer(TARGET_LAYER_NAME)) != null){} }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -