예제 #1
0
 // @todo (france, ub): add id to signature
 public LinkTypeBean(
     String name,
     Class firstClass,
     Class secondClass,
     String firstRole,
     String secondRole,
     CardinalityKey firstCardinality,
     CardinalityKey secondCardinality,
     ArrowKey firstArrowType,
     ArrowKey secondArrowType,
     ColorKey lineColor,
     LineKey lineType,
     boolean showLinkTypeName,
     boolean showRoleNames) {
   super(name, name);
   this.firstClassName = firstClass == null ? null : firstClass.getName();
   this.secondClassName = secondClass == null ? null : secondClass.getName();
   this.firstRole = firstRole;
   this.secondRole = secondRole;
   this.firstCardinality = firstCardinality.getValue();
   this.secondCardinality = secondCardinality.getValue();
   this.firstArrowType = firstArrowType.getValue();
   this.secondArrowType = secondArrowType.getValue();
   this.lineColor = lineColor.getValue();
   this.lineType = lineType.getValue();
   this.showLinkTypeName = showLinkTypeName;
   this.showRoleNames = showRoleNames;
 }
예제 #2
0
 public void setSecondArrowType(ArrowKey arrowKey) {
   secondArrowType = arrowKey.getValue();
 }
예제 #3
0
 public void setFirstArrowType(ArrowKey arrowKey) {
   firstArrowType = arrowKey.getValue();
 }