Package org.jbpm.workflow.core

Examples of org.jbpm.workflow.core.Node


        node.setMetaData("width", constraint.width);
        node.setMetaData("height", constraint.height);
    }
   
    public Rectangle internalGetConstraint() {
        Node node = getNode();
        Integer x = (Integer) node.getMetaData("x");
        Integer y = (Integer) node.getMetaData("y");
        Integer width = (Integer) node.getMetaData("width");
        Integer height = (Integer) node.getMetaData("height");
        return new Rectangle(
            x == null ? 0 : x,
            y == null ? 0 : y,
            width == null ? -1 : width,
            height == null ? -1 : height);
View Full Code Here


    private static final long serialVersionUID = 510l;
   
    public DefaultNodeWrapper(String nodeClassName) {
        try {
            Class<?> nodeClass = Class.forName(nodeClassName);
            Node node = (Node) nodeClass.newInstance();
            if (node instanceof NodeExtension) {
                NodeExtension nodeExtension = (NodeExtension) node;
                node.setName(nodeExtension.getDefaultName());
            }
            setNode(node);
        } catch (Throwable t) {
            DroolsEclipsePlugin.log(t);
        }
View Full Code Here

    public Node getNode() {
        return (Node) getElement();
    }
   
    public boolean isFullProperties() {
      Node node = getNode();
      NodeContainer container = node.getNodeContainer();
      while (!(container instanceof RuleFlowProcess)) {
        if (container instanceof Node) {
          container = ((Node) container).getNodeContainer();
        } else {
          return false;
View Full Code Here

    protected void internalSetColor(Integer color) {
        getNode().setMetaData("color", color);
    }

    protected void internalSetConstraint(Rectangle constraint) {
        Node node = getNode();
        node.setMetaData("x", constraint.x);
        node.setMetaData("y", constraint.y);
        node.setMetaData("width", constraint.width);
        node.setMetaData("height", constraint.height);
    }
View Full Code Here

        node.setMetaData("width", constraint.width);
        node.setMetaData("height", constraint.height);
    }
   
    public Rectangle internalGetConstraint() {
        Node node = getNode();
        Integer x = (Integer) node.getMetaData().get("x");
        Integer y = (Integer) node.getMetaData().get("y");
        Integer width = (Integer) node.getMetaData().get("width");
        Integer height = (Integer) node.getMetaData().get("height");
        return new Rectangle(
            x == null ? 0 : x,
            y == null ? 0 : y,
            width == null ? -1 : width,
            height == null ? -1 : height);
View Full Code Here

    public Node getNode() {
        return (Node) getElement();
    }
   
    public boolean isFullProperties() {
      Node node = getNode();
      NodeContainer container = node.getNodeContainer();
      while (!(container instanceof RuleFlowProcess)) {
        if (container instanceof Node) {
          container = ((Node) container).getNodeContainer();
        } else {
          return false;
View Full Code Here

        getNode().setName(name);
        notifyListeners(CHANGE_NAME);
    }
   
    protected void internalSetConstraint(Rectangle constraint) {
        Node node = getNode();
        node.setMetaData("x", constraint.x);
        node.setMetaData("y", constraint.y);
        node.setMetaData("width", constraint.width);
        node.setMetaData("height", constraint.height);
    }
View Full Code Here

        node.setMetaData("width", constraint.width);
        node.setMetaData("height", constraint.height);
    }
   
    public Rectangle internalGetConstraint() {
        Node node = getNode();
        Integer x = (Integer) node.getMetaData().get("x");
        Integer y = (Integer) node.getMetaData().get("y");
        Integer width = (Integer) node.getMetaData().get("width");
        Integer height = (Integer) node.getMetaData().get("height");
        return new Rectangle(
            x == null ? 0 : x,
            y == null ? 0 : y,
            width == null ? -1 : width,
            height == null ? -1 : height);
View Full Code Here

public class DefaultNodeEditPart extends ElementEditPart {

    protected IFigure createFigure() {
        DefaultNodeFigure figure = new DefaultNodeFigure();
        Node node = ((NodeWrapper) getElementWrapper()).getNode();
        if (node instanceof NodeExtension) {
            figure.setIcon(((NodeExtension) node).getIcon());
        }
        return figure;
    }
View Full Code Here

TOP

Related Classes of org.jbpm.workflow.core.Node

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.