diff --git a/AlgebraicDataflowArchitectureModel/src/application/editor/stages/DependencyCellEditor.java b/AlgebraicDataflowArchitectureModel/src/application/editor/stages/DependencyCellEditor.java index 889b232..6de3df5 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/editor/stages/DependencyCellEditor.java +++ b/AlgebraicDataflowArchitectureModel/src/application/editor/stages/DependencyCellEditor.java @@ -49,12 +49,12 @@ } /** - * Determines whether the given cell is an interface node (rhombus shape) + * Determines whether the given cell is an interface node (Interface shape) */ private boolean isInterfaceNode(mxCell cell) { if (cell == null || !cell.isVertex()) return false; String style = cell.getStyle(); - return style != null && style.contains("shape=rhombus"); + return style != null && style.contains("shape=interface"); } /** @@ -219,7 +219,7 @@ // Remove the original edge graphComponent.getGraph().getModel().remove(edgeCell); - // Insert the interface node (rhombus) into the DEPENDENCY_LAYER + // Insert the interface node (Interface) into the DEPENDENCY_LAYER mxCell interfaceNode = (mxCell) graphComponent.getGraph().insertVertex( layerCell, null, @@ -228,7 +228,7 @@ midY - ddmStage.DEPENDENCY_NODE_SIZE / 2, ddmStage.DEPENDENCY_NODE_SIZE, ddmStage.DEPENDENCY_NODE_SIZE, - "shape=rhombus;fillColor=#BBFFBB;perimeter=rhombusPerimeter;resizable=0;" + "shape=interface;strokeColor=green;fillColor=#BBFFBB;perimeter=rectanglePerimeter;resizable=0;" ); // Get the original edge's style and value