/** * Generates a for the specified item. * * @param dataset the dataset (<code>null</code> not permitted). * @param row the row index (zero-based). * @param column the column index (zero-based). * * @return The label (possibly <code>null</code>). */ protected String generateLabelString(CategoryDataset dataset, int row, int column) { if (dataset == null) { throw new IllegalArgumentException("Null 'dataset' argument."); } String result = null; Object[] items = createItemArray(dataset, row, column); result = MessageFormat.format(this.labelFormat, items); return result; }
/** * Generates a for the specified item. * * @param dataset the dataset ({@code null} not permitted). * @param row the row index (zero-based). * @param column the column index (zero-based). * * @return The label (possibly {@code null}). */ protected String generateLabelString(CategoryDataset dataset, int row, int column) { Args.nullNotPermitted(dataset, "dataset"); String result; Object[] items = createItemArray(dataset, row, column); result = MessageFormat.format(this.labelFormat, items); return result; }