MCPcopy Create free account
hub / github.com/Nurtak/ObjectGraphVisualization / setSingleElements

Method setSingleElements

src/ch/hsr/ogv/view/Arrow.java:319–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317 }
318
319 protected void setSingleElements() {
320 double endGap = this.arrowEnd.getAdditionalGap();
321 double startGap = this.arrowStart.getAdditionalGap();
322 double gapDistance = this.startEndDistance - (endGap + startGap) / 2;
323
324 this.line.setDepth(gapDistance);
325 this.line.setTranslateZ((-endGap + startGap) / 4);
326 }
327
328 protected void moveRotateGroup() {
329 this.rotateYAngle = GeometryUtil.rotateYAngle(this.startPoint, this.endPoint);

Callers 1

drawArrowMethod · 0.95

Calls 3

getAdditionalGapMethod · 0.80
setTranslateZMethod · 0.80
setDepthMethod · 0.45

Tested by

no test coverage detected