/** * Tests this generator for equality with an arbitrary object. * * @param obj the object ({@code null} permitted). * * @return {@code true} if this generator is equal to * {@code obj}, and {@code false} otherwise. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardCategoryItemLabelGenerator)) { return false; } return super.equals(obj); } }
/** * 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; }
/** * Tests this generator for equality with an arbitrary object. * * @param obj the object ({@code null} permitted). * * @return A boolean. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardCategoryToolTipGenerator)) { return false; } return super.equals(obj); }
/** * Tests this generator for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardCategoryToolTipGenerator)) { return false; } return super.equals(obj); }
/** * Tests this generator for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return <code>true</code> if this generator is equal to * <code>obj</code>, and <code>false</code> otherwise. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardCategoryItemLabelGenerator)) { return false; } return super.equals(obj); } }