jadex.bpmn.editor.model.visual.VInParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-editor-bpmn Show documentation
Show all versions of jadex-editor-bpmn Show documentation
Editor for Business Process Model and Notation (BPMN).
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;
}
}