- public DiagramSettings(Resource vertexScalingProperty, double vertexScalingScale, Resource edgeThicknessProperty, double edgeThicknessScale) {
- this.vertexScalingProperty = Optional.ofNullable(vertexScalingProperty);
- this.vertexScalingScale = vertexScalingScale;
+ public DiagramSettings(
+ Function1<Resource, Double> vertexScaleProperty, double vertexScaleGain, double vertexScaleBias,
+ Function1<Resource, Double> edgeThicknessProperty, double edgeThicknessGain, double edgeThicknessBias,
+ Function1<Resource, Double> elementColoringFunction,
+ float elementColoringGradientHue,
+ float elementColoringGradientSaturation
+ ) {
+ this.vertexScaleProperty = Optional.ofNullable(vertexScaleProperty);
+ this.vertexScaleGain = vertexScaleGain;
+ this.vertexScaleBias = vertexScaleBias;