public Function<? super JobGraphLink, Shape> getEdgeShapeTransformer() { final String edgeStyle = _userPreferences.getAdditionalProperties().get(USER_PREFERENCES_PROPERTY_EDGE_STYLE); final Function<? super JobGraphLink, Shape> baseTransformer = getBaseEdgeShapeTransformer(edgeStyle); return input -> { final Shape result = baseTransformer.apply(input); if (isCompoundRequirementLink(input)) { // make a double link (actually a wedge, but close // enough) to show that there are more than one filter // outcome coming from this source return EdgeShape.wedge(_graph, 10).apply(input); } return result; }; }
e_line = new EdgeShape.Line(); e_quad = new EdgeShape.QuadCurve(); e_wedge = new EdgeShape.Wedge(10); e_paint = new EdgeTransformer.PaintMode(tooltab.getPaintMaps(), PaintMaps.PAINTMODE_CONVERSATION); e_gradient = new EdgeTransformer.GradientPaint(e_paint, vv, GradientPaint.GRADIENT_RELATIVE);
public static <E> Wedge wedge(int width) { return new Wedge(width); }
public static <V, E> EdgeShape<V, E>.Wedge wedge(Graph<V, E> graph, int width) { return new EdgeShape<V, E>(graph).new Wedge(width); }