/** * Adds a sub-category to the axis and sends an {@link AxisChangeEvent} to * all registered listeners. * * @param subCategory the sub-category (<code>null</code> not permitted). */ public void addSubCategory(Comparable subCategory) { if (subCategory == null) { throw new IllegalArgumentException("Null 'subcategory' axis."); } this.subCategories.add(subCategory); notifyListeners(new AxisChangeEvent(this)); }
/** * Sets the font used to display the sub-category labels and sends an * {@link AxisChangeEvent} to all registered listeners. * * @param font the font (<code>null</code> not permitted). * * @see #getSubLabelFont() */ public void setSubLabelFont(Font font) { if (font == null) { throw new IllegalArgumentException("Null 'font' argument."); } this.subLabelFont = font; notifyListeners(new AxisChangeEvent(this)); }
/** * Sets the paint used to display the sub-category labels and sends an * {@link AxisChangeEvent} to all registered listeners. * * @param paint the paint (<code>null</code> not permitted). * * @see #getSubLabelPaint() */ public void setSubLabelPaint(Paint paint) { if (paint == null) { throw new IllegalArgumentException("Null 'paint' argument."); } this.subLabelPaint = paint; notifyListeners(new AxisChangeEvent(this)); }
/** * Adds a sub-category to the axis and sends an {@link AxisChangeEvent} to * all registered listeners. * * @param subCategory the sub-category ({@code null} not permitted). */ public void addSubCategory(Comparable subCategory) { Args.nullNotPermitted(subCategory, "subCategory"); this.subCategories.add(subCategory); notifyListeners(new AxisChangeEvent(this)); }
/** * Sets the font used to display the sub-category labels and sends an * {@link AxisChangeEvent} to all registered listeners. * * @param font the font ({@code null} not permitted). * * @see #getSubLabelFont() */ public void setSubLabelFont(Font font) { Args.nullNotPermitted(font, "font"); this.subLabelFont = font; notifyListeners(new AxisChangeEvent(this)); }
/** * Sets the paint used to display the sub-category labels and sends an * {@link AxisChangeEvent} to all registered listeners. * * @param paint the paint ({@code null} not permitted). * * @see #getSubLabelPaint() */ public void setSubLabelPaint(Paint paint) { Args.nullNotPermitted(paint, "paint"); this.subLabelPaint = paint; notifyListeners(new AxisChangeEvent(this)); }