Exemplo n.º 1
0
 private void updateGUI(GeoCell cell)
 {
     if (!hasSelected())
     {
         FrameMain.getInstance().setSelectedGeoCell(null);
     }
     else
     {
         FastArrayList <GeoCell> selected = cell == null ? null : getEntry(cell.getBlock()).getValue();
         if (selected == null)
         {
             selected = getTail().getPrev().getValue();
         }
         //
         if (cell != null && selected.contains(cell))
         {
             FrameMain.getInstance().setSelectedGeoCell(cell);
         }
         else
         {
             FrameMain.getInstance().setSelectedGeoCell(selected.getLastUnsafe());
         }
     }
 }
Exemplo n.º 2
0
        public bool isGeoCellSelected(GeoCell cell)
        {
            FastArrayList <GeoCell> selected = getEntry(cell.getBlock()).getValue();

            return(selected != null && selected.contains(cell));
        }