131132133134135136137
final String tooltip) { if (category == null) { throw new IllegalArgumentException("Null 'category' argument."); } this.categoryLabelToolTips.put(category, tooltip); this.notifyListeners(new AxisChangeEvent(this)); }
271272273274275276277
* Clears the category label tooltips and sends an {@link AxisChangeEvent} * to all registered listeners. */ public void clearCategoryLabelToolTips() { this.categoryLabelToolTips.clear(); this.notifyListeners(new AxisChangeEvent(this)); }
913914915916917918919
public void removeCategoryLabelToolTip(final Comparable category) { if (category == null) { throw new IllegalArgumentException("Null 'category' argument."); } this.categoryLabelToolTips.remove(category); this.notifyListeners(new AxisChangeEvent(this)); }
990991992993994995996
* @param offset * the offset (in Java2D units). */ public void setCategoryLabelPositionOffset(final int offset) { this.categoryLabelPositionOffset = offset; this.notifyListeners(new AxisChangeEvent(this)); }
1005100610071008100910101011
public void setCategoryLabelPositions(final CategoryLabelPositions positions) { if (positions == null) { throw new IllegalArgumentException("Null 'positions' argument."); } this.categoryLabelPositions = positions; this.notifyListeners(new AxisChangeEvent(this)); }
1019102010211022102310241025
* the margin as a percentage of the axis length (for example, * 0.05 is five percent). */ public void setCategoryMargin(final double margin) { this.categoryMargin = margin; this.notifyListeners(new AxisChangeEvent(this)); }
1032103310341035103610371038
* the margin as a percentage of the axis length (for example, * 0.05 is five percent). */ public void setLowerMargin(final double margin) { this.lowerMargin = margin; this.notifyListeners(new AxisChangeEvent(this)); }
1044104510461047104810491050
* @param lines * the maximum number of lines. */ public void setMaximumCategoryLabelLines(final int lines) { this.maximumCategoryLabelLines = lines; this.notifyListeners(new AxisChangeEvent(this)); }
1056105710581059106010611062
* @param ratio * the ratio. */ public void setMaximumCategoryLabelWidthRatio(final float ratio) { this.maximumCategoryLabelWidthRatio = ratio; this.notifyListeners(new AxisChangeEvent(this)); }
1077107810791080108110821083
if (font == null) { this.tickLabelFontMap.remove(category); } else { this.tickLabelFontMap.put(category, font); } this.notifyListeners(new AxisChangeEvent(this)); }