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

jadex.bpmn.editor.model.visual.VInParameter Maven / Gradle / Ivy

There is a newer version: 4.0.267
Show newest version
package jadex.bpmn.editor.model.visual;

import com.mxgraph.view.mxGraph;

import jadex.bpmn.editor.gui.stylesheets.BpmnStylesheetColor;
import jadex.bpmn.model.MParameter;

public class VInParameter extends VNamedNode
{
	/** The parameter. */
	protected MParameter parameter;
	
	public VInParameter(mxGraph graph, MParameter param)
	{
		super(graph, VInParameter.class.getSimpleName());
		parameter = param;
		getGeometry().setWidth(BpmnStylesheetColor.PARAMETER_PORT_SIZE);
		getGeometry().setHeight(BpmnStylesheetColor.PARAMETER_PORT_SIZE);
	}
	
	public String getStyle()
	{
		String ret = super.getStyle();
		if(getEdgeCount() > 0)
		{
			ret += "_Connected";
		}
		return ret;
	}
	
	public Object getValue()
	{
		return parameter.getName();
	}
	
	public void setValue(Object value)
	{
	}
	
	public MParameter getParameter()
	{
		return parameter;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy