}
if (x > tArea.getMaxX()) x = (int)tArea.getMaxX() - 1; if (y > tArea.getMaxY()) y = (int)tArea.getMaxY() - 1; if (x < tArea.getMinX()) x = 0; if (y < tArea.getMinY()) y = 0;
   public int getRowColFromPoint (int x, int y) {      // is x,y in the drawing area      // x is left to right and y is top to bottom      if (tArea.contains(x,y)) {//         int cols = (numCols - ((((fmWidth * numCols) - x) / fmWidth)));//         System.out.println(cols);         return getPos((numRows - ((((fmHeight * (numRows)) - y) / fmHeight))),                        (numCols - ((((fmWidth * (numCols)) - x) / fmWidth)))                     );      }      return 0;   }