code: private void moveTo(int posX, int posY) {
  
          posX = (posX < 0)
          ? 0
          : (((posX + m_currentSelection.getWidth()) >= m_elementWidth)
          ? m_elementWidth - m_currentSelection.getWidth()
          : posX);
          posY = (posY < 0)
          ? 0
          : (((posY + m_currentSelection.getHeight()) >= m_elementHeight)
          ? m_elementHeight - m_currentSelection.getHeight()
          : posY);
  
          m_markerStyle.setTop(posY, Unit.PX);
          m_markerStyle.setLeft(posX, Unit.PX);
  
          m_overlayLeftStyle.setWidth(posX, Unit.PX);
  
          m_overlayTopStyle.setLeft(posX, Unit.PX);
          m_overlayTopStyle.setHeight(posY, Unit.PX);
  
          m_overlayBottomStyle.setLeft(posX, Unit.PX);
          m_overlayBottomStyle.setHeight(m_elementHeight - posY - m_currentSelection.getHeight(), Unit.PX);
  
          m_overlayRightStyle.setWidth(m_elementWidth - posX - m_currentSelection.getWidth(), Unit.PX);
  
          m_currentSelection.setTop(posY);
          m_currentSelection.setLeft(posX);
      }
docs: Moves the select area to the specified position, while keeping the size.<p>
  
  @param posX the new X position
  @param posY the new Y position