Пример #1
0
 @Override
 public void zoomChanged(int squareSize) {
   Position prevSelectedPosition = selectedPosition;
   super.zoomChanged(squareSize);
   if (selectedPosition != null && selectedPosition.equals(prevSelectedPosition)) {
     // no square enter/leave trigger in this case - refresh areas
     areas = prepareAreas(gridPanel.getTile(selectedPosition), selectedPosition);
   }
 }
Пример #2
0
 public boolean at(Position p) {
   if (position == null) return false;
   return position.equals(p);
 }