All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.chart.graph.GraphLine Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20241126
Show newest version
package com.scudata.chart.graph;

import com.scudata.cellset.graph.PublicProperty;
import com.scudata.cellset.graph.config.GraphTypes;
import com.scudata.chart.*;
import com.scudata.chart.edit.*;

/**
 * ????ͼ??
 * 
 * @author Joancy
 *
 */
public class GraphLine extends GraphElement {
	public boolean drawLineDot = false;
	public boolean drawLineTrend = false;
	public boolean drawShade = false;
	public boolean ignoreNull = true;
	/** ????ͼֱ?ߴ?ϸ?? */
	public int lineThick = 2;
	public int lineStyle = Consts.LINE_SOLID;
	public byte lineType = GraphTypes.GT_LINE; 

	/**
	 * ȱʡ???????캯??
	 */
	public GraphLine() {
	}

	protected PublicProperty getPublicProperty() {
		PublicProperty pp = super.getPublicProperty();
		pp.setDrawLineDot(drawLineDot);
		pp.setDrawLineTrend(drawLineTrend);
		pp.setDrawShade(drawShade);
		pp.setIgnoreNull(ignoreNull);
		pp.setLineThick((byte)lineThick);
		pp.setLineStyle((byte)lineStyle);
		
		pp.setType( lineType );
		return pp;
	}

	/**
	 * ??ȡ?༭??????Ϣ?б?
	 * @return ??????Ϣ?б?
	 */
	public ParamInfoList getParamInfoList() {
		ParamInfoList paramInfos = new ParamInfoList();
		ParamInfo.setCurrent(GraphLine.class, this);
		paramInfos.add( new ParamInfo("lineType", Consts.INPUT_LINETYPE));
		String group  ="line";
		paramInfos.add(group, new ParamInfo("drawLineDot", Consts.INPUT_CHECKBOX));
		paramInfos.add(group, new ParamInfo("drawLineTrend", Consts.INPUT_CHECKBOX));
		paramInfos.add(group, new ParamInfo("drawShade", Consts.INPUT_CHECKBOX));
		paramInfos.add(group, new ParamInfo("ignoreNull", Consts.INPUT_CHECKBOX));
		paramInfos.add(group, new ParamInfo("lineThick", Consts.INPUT_INTEGER));
		paramInfos.add(group,new ParamInfo("lineStyle", Consts.INPUT_LINESTYLE));

		paramInfos.addAll(super.getParamInfoList());
		return paramInfos;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy