public void setGraphArcStyle(GraphArcStyle style) { if ((style != null) && (this.arcStyle != style)) { GraphArcStyle oldStyle = this.arcStyle; this.arcStyle = style; // now update the styles on all arcs Collection<GraphArc> arcs = model.getAllArcs(); for (GraphArc arc : arcs) { arc.setArcStyle(this.arcStyle); } firePropertyChange(GRAPH_ARC_STYLE_PROPERTY, oldStyle, this.arcStyle); } }
protected void addGraphArc(GraphArc arc) { // copy the default arc style into the arc if ((getGraphArcStyle() != null) && !getGraphArcStyle().equals(arc.getArcStyle())) { arc.setArcStyle(getGraphArcStyle()); } // check if this arc is filtered // add the arc to the canvas if (arc instanceof PNode) { addArc((PNode) arc); } }