protected void paintLines(Graphics g) {
    Dimension size = getSize();
    if (myHorizontal) {
      paintHorizontal(g, size);
    }
    else {
      paintVertical(g, size);
    }
  }
protected void paintLines(Graphics g)