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()); } } }
public bool isGeoCellSelected(GeoCell cell) { FastArrayList <GeoCell> selected = getEntry(cell.getBlock()).getValue(); return(selected != null && selected.contains(cell)); }