float elementColoringGradientHue = 0;
float elementColoringGradientSaturation = 1;
Function1<Resource, Double> edgeThicknessProperty = null;
+ Function1<Resource, Double> arrowLengthProperty = null;
Function1<Resource, Double> nodeScaleProperty = null;
double edgeThicknessGain = 1;
double edgeThicknessBias = 0;
+ double arrowLengthGain = 1;
+ double arrowLengthBias = 0;
double nodeScaleGain = 1;
double nodeScaleBias = 0;
safeDoubleProperty(graph, etp, DN.Edge_ThicknessProperty_bias, 0)
+ safeDoubleProperty(graph, diagram, DN.Diagram_edgeThicknessBias, 0);
}
+ Resource alp = graph.getPossibleObject(diagram, DN.Diagram_arrowLengthProperty);
+ //System.out.println("alp: " + NameUtils.getURIOrSafeNameInternal(graph, alp));
+ if (alp != null) {
+ Variable alpv = Variables.getPossibleVariable(graph, alp);
+ if (alpv != null) {
+ //System.out.println("alpv: " + alpv.getURI(graph));
+ arrowLengthProperty = alpv.getPropertyValue(graph, DN.Edge_ArrowLengthProperty_value);
+ }
+
+ arrowLengthGain =
+ safeDoubleProperty(graph, alp, DN.Edge_ArrowLengthProperty_gain, 1)
+ * safeDoubleProperty(graph, diagram, DN.Diagram_arrowLengthGain, 1);
+ arrowLengthBias =
+ safeDoubleProperty(graph, alp, DN.Edge_ArrowLengthProperty_bias, 0)
+ + safeDoubleProperty(graph, diagram, DN.Diagram_arrowLengthBias, 0);
+ }
Resource nsp = graph.getPossibleObject(diagram, DN.Diagram_nodeScaleProperty);
if (nsp != null) {
Variable nspv = Variables.getPossibleVariable(graph, nsp);
DiagramSettings ds = new DiagramSettings(
nodeScaleProperty, nodeScaleGain, nodeScaleBias,
edgeThicknessProperty, edgeThicknessGain, edgeThicknessBias,
+ arrowLengthProperty, arrowLengthGain, arrowLengthBias,
elementColoringFunction,
elementColoringGradientHue,
elementColoringGradientSaturation);