⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aimsrenderertaskinfo.java

📁 实例实例实例实例实例实例实例实例实例实例实例实例实例实例实例实例
💻 JAVA
字号:
package com.esri.adf.web.aims.tasks;

import com.esri.adf.web.data.tasks.AbsoluteLayout;
import com.esri.adf.web.data.tasks.TabularLayout;
import com.esri.adf.web.data.tasks.TabularPosition;
import com.esri.adf.web.data.tasks.SimpleTaskInfo;
import com.esri.adf.web.data.tasks.TaskActionDescriptor;
import com.esri.adf.web.data.tasks.TaskActionDescriptorModel;
import com.esri.adf.web.data.tasks.TaskDescriptor;
import com.esri.adf.web.data.tasks.TaskLayout;
import com.esri.adf.web.data.tasks.TaskParamDescriptor;
import com.esri.adf.web.data.tasks.TaskParamDescriptorModel;
import com.esri.adf.web.data.tasks.TaskToolDescriptor;
import com.esri.adf.web.data.tasks.TaskToolDescriptorModel;

public class AIMSRendererTaskInfo extends SimpleTaskInfo
{
	private TaskDescriptor taskDescriptor = null;
	private TaskParamDescriptor[]  paramDescriptors = null;
	private TaskActionDescriptor[] actionDescriptors = null;
	private TaskToolDescriptor[] toolDescriptors = null;
	private TabularLayout[] tabularLayout = null;
	
	public AIMSRendererTaskInfo()
	{
		this.paramDescriptors = new TaskParamDescriptor[2];
		this.actionDescriptors = new TaskActionDescriptor[2];		
		this.tabularLayout = new TabularLayout[1];		
		this.taskDescriptor = new TaskDescriptor(AIMSRendererTask.class, "ArcIMS Renderer", "ArcIMS Renderer Task");
	
		this.actionDescriptors[0] = new TaskActionDescriptor(AIMSRendererTask.class, "doSelectAimsResource", "select");
		this.actionDescriptors[0].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		this.actionDescriptors[1] = new TaskActionDescriptor(AIMSRendererTask.class, "doSelectAimsLayer", "select");
		this.actionDescriptors[1].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		
		this.paramDescriptors[0] = new TaskParamDescriptor(AIMSRendererTask.class, "aimsResourceId", "ArcIMS Resources", "getAimsResourceList");
 		this.paramDescriptors[1] = new TaskParamDescriptor(AIMSRendererTask.class, "aimsLayerId", "ArcIMS Layers", "getAimsLayerList");
	
 		this.tabularLayout[0] = new TabularLayout();
		this.tabularLayout[0].setStyle("width:400px; height:100px; color:#444444; font-family:verdana; font-size:8pt; font-weight:normal;");

		this.tabularLayout[0].addComponent(paramDescriptors[0],  new TabularPosition(0, 0, 1, 1));
		//this.tabularLayout[0].addComponent(actionDescriptors[0],  new TabularPosition(0, 1, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[1],  new TabularPosition(1, 0, 1, 1));
		//this.tabularLayout[0].addComponent(actionDescriptors[1],  new TabularPosition(1, 1, 1, 1));
	}
	
	public void applyPointLayerRendererLayout()
	{
		this.paramDescriptors = new TaskParamDescriptor[11];
		this.actionDescriptors = new TaskActionDescriptor[3];		
		this.tabularLayout = new TabularLayout[1];		
		this.taskDescriptor = new TaskDescriptor(AIMSRendererTask.class, "ArcIMS Renderer", "ArcIMS Renderer Task");
	
		this.actionDescriptors[0] = new TaskActionDescriptor(AIMSRendererTask.class, "doSelectAimsResource", "select");
		this.actionDescriptors[0].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		this.actionDescriptors[1] = new TaskActionDescriptor(AIMSRendererTask.class, "doSelectAimsLayer", "select");
		this.actionDescriptors[1].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		this.actionDescriptors[2] = new TaskActionDescriptor(AIMSRendererTask.class, "doRendering", "apply");
		this.actionDescriptors[2].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		
		this.paramDescriptors[0] = new TaskParamDescriptor(AIMSRendererTask.class, "aimsResourceId", "ArcIMS Resources", "getAimsResourceList");
 		this.paramDescriptors[1] = new TaskParamDescriptor(AIMSRendererTask.class, "aimsLayerId", "ArcIMS Layers", "getAimsLayerList");
 		this.paramDescriptors[2] = new TaskParamDescriptor(AIMSRendererTask.class, "pointWidth", "size");
 		this.paramDescriptors[3] = new TaskParamDescriptor(AIMSRendererTask.class, "pointAntialiasing", "anti alisaing");
 		this.paramDescriptors[4] = new TaskParamDescriptor(AIMSRendererTask.class, "pointOverlap", "overlap");
 		this.paramDescriptors[5] = new TaskParamDescriptor(AIMSRendererTask.class, "pointUserCentrid", "user centrid");
 		this.paramDescriptors[6] = new TaskParamDescriptor(AIMSRendererTask.class, "pointTransparency", "transparency");
 		this.paramDescriptors[7] = new TaskParamDescriptor(AIMSRendererTask.class, "pointOutlineColor", "outline color");
 		this.paramDescriptors[8] = new TaskParamDescriptor(AIMSRendererTask.class, "pointColor", "color");
 		this.paramDescriptors[9] = new TaskParamDescriptor(AIMSRendererTask.class, "pointShadow", "shadow color");
 		this.paramDescriptors[10] = new TaskParamDescriptor(AIMSRendererTask.class, "pointMarkerTypeId", "marker type", "getPointMarkerTypeList");
 		
 		this.tabularLayout[0] = new TabularLayout();
		this.tabularLayout[0].setStyle("width:400px; height:400px; color:#444444; font-family:verdana; font-size:8pt; font-weight:normal;");

		this.tabularLayout[0].addComponent(paramDescriptors[0],  new TabularPosition(0, 0, 1, 1));
		//this.tabularLayout[0].addComponent(actionDescriptors[0],  new TabularPosition(0, 1, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[1],  new TabularPosition(1, 0, 1, 1));
		//this.tabularLayout[0].addComponent(actionDescriptors[1],  new TabularPosition(1, 1, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[2],  new TabularPosition(2, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[3],  new TabularPosition(3, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[4],  new TabularPosition(4, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[5],  new TabularPosition(5, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[6],  new TabularPosition(6, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[7],  new TabularPosition(7, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[8],  new TabularPosition(8, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[9],  new TabularPosition(9, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[10],  new TabularPosition(10, 0, 1, 1));
		this.tabularLayout[0].addComponent(actionDescriptors[2],  new TabularPosition(11, 0, 1, 1));
		
	}
	
	public void applyLineLayerRendererLayout()
	{
		this.paramDescriptors = new TaskParamDescriptor[10];
		this.actionDescriptors = new TaskActionDescriptor[3];		
		this.tabularLayout = new TabularLayout[1];		
		this.taskDescriptor = new TaskDescriptor(AIMSRendererTask.class, "ArcIMS Renderer", "ArcIMS Renderer Task");
	
		this.actionDescriptors[0] = new TaskActionDescriptor(AIMSRendererTask.class, "doSelectAimsResource", "select");
		this.actionDescriptors[0].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		this.actionDescriptors[1] = new TaskActionDescriptor(AIMSRendererTask.class, "doSelectAimsLayer", "select");
		this.actionDescriptors[1].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		this.actionDescriptors[2] = new TaskActionDescriptor(AIMSRendererTask.class, "doRendering", "apply");
		this.actionDescriptors[2].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		
		this.paramDescriptors[0] = new TaskParamDescriptor(AIMSRendererTask.class, "aimsResourceId", "ArcIMS Resources", "getAimsResourceList");
 		this.paramDescriptors[1] = new TaskParamDescriptor(AIMSRendererTask.class, "aimsLayerId", "ArcIMS Layers", "getAimsLayerList");
 		this.paramDescriptors[2] = new TaskParamDescriptor(AIMSRendererTask.class, "lineWidth", "width");
 		this.paramDescriptors[3] = new TaskParamDescriptor(AIMSRendererTask.class, "lineAntialiasing", "anti alisaing");
 		this.paramDescriptors[4] = new TaskParamDescriptor(AIMSRendererTask.class, "lineOverlap", "overlap");
 		this.paramDescriptors[5] = new TaskParamDescriptor(AIMSRendererTask.class, "lineTransparency", "transparency");
 		this.paramDescriptors[6] = new TaskParamDescriptor(AIMSRendererTask.class, "lineColor", "color");
 		this.paramDescriptors[7] = new TaskParamDescriptor(AIMSRendererTask.class, "lineTypeId", "line type", "getLineTypeList");
 		this.paramDescriptors[8] = new TaskParamDescriptor(AIMSRendererTask.class, "lineJoinTypeId", "line join type", "getLineJoinTypeList");
 		this.paramDescriptors[9] = new TaskParamDescriptor(AIMSRendererTask.class, "lineCapTypeId", "line cap type", "getLineCapTypeList");
 		
 		this.tabularLayout[0] = new TabularLayout();
		this.tabularLayout[0].setStyle("width:400px; height:400px; color:#444444; font-family:verdana; font-size:8pt; font-weight:normal;");

		this.tabularLayout[0].addComponent(paramDescriptors[0],  new TabularPosition(0, 0, 1, 1));
		//this.tabularLayout[0].addComponent(actionDescriptors[0],  new TabularPosition(0, 1, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[1],  new TabularPosition(1, 0, 1, 1));
		//this.tabularLayout[0].addComponent(actionDescriptors[1],  new TabularPosition(1, 1, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[2],  new TabularPosition(2, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[3],  new TabularPosition(3, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[4],  new TabularPosition(4, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[5],  new TabularPosition(5, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[6],  new TabularPosition(6, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[7],  new TabularPosition(7, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[8],  new TabularPosition(8, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[9],  new TabularPosition(9, 0, 1, 1));		
		this.tabularLayout[0].addComponent(actionDescriptors[2],  new TabularPosition(10, 0, 1, 1));
	}
	
	public void applyPolygonLayerRendererLayout()
	{
		this.paramDescriptors = new TaskParamDescriptor[15];
		this.actionDescriptors = new TaskActionDescriptor[3];		
		this.tabularLayout = new TabularLayout[1];		
		this.taskDescriptor = new TaskDescriptor(AIMSRendererTask.class, "ArcIMS Renderer", "ArcIMS Renderer Task");
	
		this.actionDescriptors[0] = new TaskActionDescriptor(AIMSRendererTask.class, "doSelectAimsResource", "select");
		this.actionDescriptors[0].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		this.actionDescriptors[1] = new TaskActionDescriptor(AIMSRendererTask.class, "doSelectAimsLayer", "select");
		this.actionDescriptors[1].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		this.actionDescriptors[2] = new TaskActionDescriptor(AIMSRendererTask.class, "doRendering", "apply");
		this.actionDescriptors[2].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		
		this.paramDescriptors[0] = new TaskParamDescriptor(AIMSRendererTask.class, "aimsResourceId", "ArcIMS Resources", "getAimsResourceList");
 		this.paramDescriptors[1] = new TaskParamDescriptor(AIMSRendererTask.class, "aimsLayerId", "ArcIMS Layers", "getAimsLayerList");
 		this.paramDescriptors[2] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonBoundary", "boundary");
 		this.paramDescriptors[3] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonBoundaryWidth", "boundary width");
 		this.paramDescriptors[4] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonBoundaryColor", "boundary color");
 		this.paramDescriptors[5] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonBoundaryTransparency", "boundary transparency");
 		this.paramDescriptors[6] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonAntialiasing", "anti alisaing");
 		this.paramDescriptors[7] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonOverlap", "overlap");
 		this.paramDescriptors[8] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonFillTransparency", " fill transparency");
 		this.paramDescriptors[9] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonFillColor", "fill color");
 		this.paramDescriptors[10] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonFillInterval", "fill interval");
 		this.paramDescriptors[11] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonBoundaryTypeId", "boundary type", "getLineTypeList");
 		this.paramDescriptors[12] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonBoundaryJoinTypeId", "boundary join type", "getLineJoinTypeList");
 		this.paramDescriptors[13] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonBoundaryCapTypeId", "boundary cap type", "getLineCapTypeList");
 		this.paramDescriptors[14] = new TaskParamDescriptor(AIMSRendererTask.class, "polygonFillTypeId", "boundary cap type", "getLineCapTypeList");

 		
 		this.tabularLayout[0] = new TabularLayout();
		this.tabularLayout[0].setStyle("width:400px; height:400px; color:#444444; font-family:verdana; font-size:8pt; font-weight:normal;");

		this.tabularLayout[0].addComponent(paramDescriptors[0],  new TabularPosition(0, 0, 1, 1));
		//this.tabularLayout[0].addComponent(actionDescriptors[0],  new TabularPosition(0, 1, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[1],  new TabularPosition(1, 0, 1, 1));
		//this.tabularLayout[0].addComponent(actionDescriptors[1],  new TabularPosition(1, 1, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[2],  new TabularPosition(2, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[3],  new TabularPosition(3, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[4],  new TabularPosition(4, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[5],  new TabularPosition(5, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[6],  new TabularPosition(6, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[7],  new TabularPosition(7, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[8],  new TabularPosition(8, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[9],  new TabularPosition(9, 0, 1, 1));	
		this.tabularLayout[0].addComponent(paramDescriptors[10],  new TabularPosition(10, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[11],  new TabularPosition(11, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[12],  new TabularPosition(12, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[13],  new TabularPosition(13, 0, 1, 1));
		this.tabularLayout[0].addComponent(paramDescriptors[14],  new TabularPosition(14, 0, 1, 1));
		this.tabularLayout[0].addComponent(actionDescriptors[2],  new TabularPosition(15, 0, 1, 1));
	}
	
	public TaskDescriptor getTaskDescriptor() 
	{
	    return this.taskDescriptor;
	}

	public TaskParamDescriptorModel[] getParamDescriptors() 
	{
	    return this.paramDescriptors;
	}

	public TaskActionDescriptorModel[] getActionDescriptors() 
	{
	    return this.actionDescriptors;
	}
	
	public TaskToolDescriptorModel[] getToolDescriptors() 
	{
	    return this.toolDescriptors;
	}
	  
	public TaskLayout[] getTaskLayout() 
	{
	    return this.tabularLayout;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -