private String convertClassName(String clazz) {
    StringBuilder sb = new StringBuilder();
    if (clazz.indexOf('.') < 0) {
      sb.append(clazz);
    } else {
      int lastDot = clazz.lastIndexOf('.');
      // int currentDot = -1;
      // while (currentDot < lastDot ){
      // sb.append(clazz.charAt(currentDot+1));
      // sb.append('.');
      // currentDot=clazz.indexOf('.', currentDot+1);
      // }
      // sb.append(clazz.substring(lastDot));
      sb.append(clazz.substring(lastDot + 1));
    }
    if (sb.length() > 30) {
      sb.setLength(30);
    }

    return sb.toString();
  }
Gets horizontal arrow on y height from x=s to x=d

@param s
@param d
@param y
@return
olv-core/src/main/java/pl/otros/logview/uml/UMLModel.java