private boolean isOnEdge(final int direction,final Point currentPoint){
  m_testPoint.setLocation(currentPoint);
  move(m_testPoint,direction);
  return m_testPoint.x == 0 || m_testPoint.y == 0 || m_testPoint.y == m_bufferedImage.getHeight(this) || m_testPoint.x == m_bufferedImage.getWidth(this) || isBlack(m_testPoint);
}

private boolean isOnEdge ( final int direction , final Point currentPoint ) { m_testPoint . setLocation ( currentPoint ) ; move ( m_testPoint , direction ) ; return m_testPoint . x == 0 || m_testPoint . y == 0 || m_testPoint . y == m_bufferedImage . getHeight ( this ) || m_testPoint . x == m_bufferedImage . getWidth ( this ) || isBlack ( m_testPoint ) ; }
java . lang . boolean isonedge ( java . lang . int , java . awt . point ) checks to see if the direction we ' re going is on the edge . at least thats what i can understand from this .
