private Point getColumnLocation(boolean isPrimary, Rectangle bounds) {
    if (isPrimary && mySecondaryColumn.fragments.isEmpty()) {
      return new Point(bounds.x + (bounds.width - myPrimaryColumn.preferredSize.width) / 2, bounds.y);
    }
    else if (isPrimary) {
      return new Point(bounds.x, bounds.y);
    }
    else {
      return new Point(bounds.x + bounds.width - mySecondaryColumn.preferredSize.width, bounds.y);
    }
  }
private Point getColumnLocation(boolean isPrimary, Rectangle bounds)