private void processMouse(MouseEvent e) {
    int pointerValue = myVertical ? e.getY() : e.getX();
    pointerValue = Math.max(pointerValue, OFFSET);
    int size = myVertical ? getHeight() : getWidth();
    pointerValue = Math.min(pointerValue, size - 12);

    myPointerValue = pointerValue;

    myValue = pointerValueToValue(myPointerValue);

    repaint();
    fireValueChanged();
  }
private void processMouse(MouseEvent e)