<CONTEXT>Point2D start = pStart.getConnectionPoint(computeDirection(pStart, pEnd));</BUG>if( pGraph != null ){<extra_id_0>if( pGraph != null ){<BUG>Direction direction = computeDirection(pStart, pEnd);Position position = computePosition(pStart, direction, pGraph, pEnd);if( direction == Direction.EAST || direction == Direction.WEST ){</BUG>start = new Point2D.Double( start.getX(), start.getY()+ position.computeNudge(pStart.getBounds().getHeight()));</CONTEXT>
}}}private SegmentationStyleFactory(){}private static SegmentationStyle genericCreateStrategy( final SegmentationStyle pMain, final SegmentationStyle pAlternate)return new SegmentationStyle()@Overridepublic Point2D[] getPath(Node pStart, Node pEnd, Graph pGraph)if( pStart == pEnd )return createSelfPath(pStart);