final int dotSize = computeDotSize(h); final TLane myLane = commit.getLane(); final int myLaneX = laneC(myLane); final TColor myColor = laneColor(myLane); final int cx = laneC(passingLane); final TColor c = laneColor(passingLane); drawLine(c, cx, 0, cx, h, LINE_WIDTH); maxCenter = Math.max(maxCenter, cx); drawLine(myColor, myLaneX, h, myLaneX, (h + dotSize) / 2, LINE_WIDTH); final TColor pColor = laneColor(pLane); final int cx = laneC(pLane); drawLine(pColor, myLaneX, h / 2, ix, h / 2, LINE_WIDTH); drawLine(pColor, ix, h / 2, cx, h, LINE_WIDTH); } else drawLine(pColor, myLaneX, h / 2, cx, h, LINE_WIDTH); for (int i = 0; i < commit.forkingOffLanes.length; i++) { final TLane childLane = (TLane) commit.forkingOffLanes[i]; final TColor cColor = laneColor(childLane); final int cx = laneC(childLane); if (Math.abs(myLaneX - cx) > LANE_WIDTH) { final int ix; drawLine(cColor, myLaneX, h / 2, ix, h / 2, LINE_WIDTH);
private static int laneC(PlotLane myLane) { return laneX(myLane) + LANE_WIDTH / 2; } }
final int dotSize = computeDotSize(h); final TLane myLane = commit.getLane(); final int myLaneX = laneC(myLane); final TColor myColor = laneColor(myLane); final int cx = laneC(passingLane); final TColor c = laneColor(passingLane); drawLine(c, cx, 0, cx, h, LINE_WIDTH); maxCenter = Math.max(maxCenter, cx); drawLine(myColor, myLaneX, h, myLaneX, (h + dotSize) / 2, LINE_WIDTH); final TColor pColor = laneColor(pLane); final int cx = laneC(pLane); drawLine(pColor, myLaneX, h / 2, ix, h / 2, LINE_WIDTH); drawLine(pColor, ix, h / 2, cx, h, LINE_WIDTH); } else drawLine(pColor, myLaneX, h / 2, cx, h, LINE_WIDTH); for (int i = 0; i < commit.forkingOffLanes.length; i++) { final TLane childLane = (TLane) commit.forkingOffLanes[i]; final TColor cColor = laneColor(childLane); final int cx = laneC(childLane); if (Math.abs(myLaneX - cx) > LANE_WIDTH) { final int ix; drawLine(cColor, myLaneX, h / 2, ix, h / 2, LINE_WIDTH);
private static int laneC(final PlotLane myLane) { return laneX(myLane) + LANE_WIDTH / 2; } }
final int dotSize = computeDotSize(h); final TLane myLane = commit.getLane(); final int myLaneX = laneC(myLane); final TColor myColor = laneColor(myLane); final int cx = laneC(passingLane); final TColor c = laneColor(passingLane); drawLine(c, cx, 0, cx, h, LINE_WIDTH); maxCenter = Math.max(maxCenter, cx); drawLine(myColor, myLaneX, h, myLaneX, (h + dotSize) / 2, LINE_WIDTH); final TColor pColor = laneColor(pLane); final int cx = laneC(pLane); drawLine(pColor, myLaneX, h / 2, ix, h / 2, LINE_WIDTH); drawLine(pColor, ix, h / 2, cx, h, LINE_WIDTH); } else drawLine(pColor, myLaneX, h / 2, cx, h, LINE_WIDTH); for (int i = 0; i < commit.forkingOffLanes.length; i++) { final TLane childLane = (TLane) commit.forkingOffLanes[i]; final TColor cColor = laneColor(childLane); final int cx = laneC(childLane); if (Math.abs(myLaneX - cx) > LANE_WIDTH) { final int ix; drawLine(cColor, myLaneX, h / 2, ix, h / 2, LINE_WIDTH);
private static int laneC(PlotLane myLane) { return laneX(myLane) + LANE_WIDTH / 2; } }