田源
2024-03-07 4b4083fd73dc27ece42f4835483565eef0e4f608
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package com.vci.client.workflow.editor;
 
import java.io.Serializable;
 
public class FlowNode implements Serializable{
 
    private static final long serialVersionUID = 370713807085188646L;
    
    private String type;
    private String name;
    private String icon = "";
    private int width = 0;
    private int height = 0;
 
    public FlowNode(String type){
        this.type= type;
    }
    public FlowNode(String type, String name) {
        this.type = type;
        this.name = name;
    }
 
    public String getIcon() {
        return icon;
    }
 
    public void setIcon(String icon) {
        this.icon = icon;
    }
 
    public int getWidth() {
        return width;
    }
 
    public void setWidth(int width) {
        this.width = width;
    }
 
    public int getHeight() {
        return height;
    }
 
    public void setHeight(int height) {
        this.height = height;
    }
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
    
    public String toString() {
//        String name=this.getProperty("name");
//        if(name==null || (!this.type.equals("task") && !this.type.equals("sub-process") && !this.type.equals("transition"))){
//            name="";
//        }
        return name;
    }
 
    @Override
    protected Object clone() {
        return new FlowNode(this.type, this.name);
    }
}