Package net.sf.graphiti.model

Examples of net.sf.graphiti.model.Parameter


  public void refresh(String parameterName, Object value) {
    Label label = parameterFigures.get(parameterName);
    if (label == null) {
      value = edge.getValue(parameterName);
      if (value != null) {
        Parameter parameter = edge.getParameter(parameterName);
        ParameterPosition position = parameter.getPosition();

        if (position != null) {
          Label parameterLabel = new Label(value.toString());
          parameterLabel
              .setForegroundColor(new Color(null, 224, 0, 0));
View Full Code Here


    Node child = node.getFirstChild();
    while (child != null) {
      if (child.getNodeName().equals("parameter")) {
        Element element = ((Element) child);
        String parameterName = element.getAttribute("name");
        Parameter parameter = type.getParameter(parameterName);
        Object value = parseParameter(parameter, element);
        if (value != null) {
          abstractObject.setValue(parameterName, value);
        }
      }
View Full Code Here

    }

    // creates the parameter
    ParameterPosition position = null;
    Object value = parseParameter(clz, element);
    Parameter parameter = new Parameter(parameterName, value, position, clz);

    // adds the parameter to the type
    type.addParameter(parameter);
  }
View Full Code Here

TOP

Related Classes of net.sf.graphiti.model.Parameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.