@@ -53,7 +53,11 @@ public class SmartGraphEdgeCurve<E, V> extends CubicCurve implements SmartGraphE
5353
5454 private static final double MAX_EDGE_CURVE_ANGLE = 45 ;
5555 private static final double MIN_EDGE_CURVE_ANGLE = 3 ;
56+
57+ /** Distance (in pixels) that establishes the maximum curve threshold */
5658 public static final int DISTANCE_THRESHOLD = 400 ;
59+
60+ /** Radius applied to loop curves */
5761 public static final int LOOP_RADIUS_FACTOR = 4 ;
5862
5963 private final Edge <E , V > underlyingEdge ;
@@ -110,24 +114,36 @@ public SmartGraphEdgeCurve(Edge<E, V> edge, SmartGraphVertexNode<V> inbound, Sma
110114 enableListeners ();
111115 }
112116
113- @ Override
114117 public void setStyleInline (String css ) {
115118 styleProxy .setStyleInline (css );
119+ if (attachedArrow != null ) {
120+ attachedArrow .setStyleInline (css );
121+ }
116122 }
117123
118124 @ Override
119125 public void setStyleClass (String cssClass ) {
120126 styleProxy .setStyleClass (cssClass );
127+ if (attachedArrow != null ) {
128+ attachedArrow .setStyleClass (cssClass );
129+ }
121130 }
122131
123132 @ Override
124133 public void addStyleClass (String cssClass ) {
125134 styleProxy .addStyleClass (cssClass );
135+ if (attachedArrow != null ) {
136+ attachedArrow .addStyleClass (cssClass );
137+ }
126138 }
127139
128140 @ Override
129141 public boolean removeStyleClass (String cssClass ) {
130- return styleProxy .removeStyleClass (cssClass );
142+ boolean result = styleProxy .removeStyleClass (cssClass );
143+ if (attachedArrow != null ) {
144+ attachedArrow .removeStyleClass (cssClass );
145+ }
146+ return result ;
131147 }
132148
133149 private void update () {
0 commit comments