/** * Returns a list with the row names that are currently visible. * * @return a list with the row names that are currently visible */ public List<String> getVisibleRowNames() { if (visibleRows.isPresent()) { return visibleRows.get(); } else { return getRowNames(); } }
protected void editVisibleRows() { List<String> visible = this.heatmap.getVisibleRowNames(); List<String> notVisible = this.heatmap.getRowNames(); notVisible.removeAll(visible); ListSelectionDialog<String> dialog; try { dialog = new ListSelectionDialog<String>( getDialogParent(), visible, notVisible, "Visible rows", "Not visible rows" ) { private static final long serialVersionUID = 1L; public String getDescription() { return DESCRIPTION_VISIBLE_ROWS; } }; dialog.setVisible(true); if (!dialog.isCanceled()) { this.heatmap.setVisibleRowNames(dialog.getSelectedItems()); } } catch (InvalidClassException e) { throw new RuntimeException(e); } }