hudson.util
Class ShiftedCategoryAxis

java.lang.Object
  extended by org.jfree.chart.axis.Axis
      extended by org.jfree.chart.axis.CategoryAxis
          extended by hudson.util.NoOverlapCategoryAxis
              extended by hudson.util.ShiftedCategoryAxis
All Implemented Interfaces:
Serializable, Cloneable

public final class ShiftedCategoryAxis
extends NoOverlapCategoryAxis

CategoryAxis shifted to left to eliminate redundant space between area and the Y-axis.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jfree.chart.axis.CategoryAxis
DEFAULT_AXIS_MARGIN, DEFAULT_CATEGORY_MARGIN
 
Fields inherited from class org.jfree.chart.axis.Axis
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_AXIS_LINE_PAINT, DEFAULT_AXIS_LINE_STROKE, DEFAULT_AXIS_VISIBLE, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_LABELS_VISIBLE, DEFAULT_TICK_MARK_INSIDE_LENGTH, DEFAULT_TICK_MARK_OUTSIDE_LENGTH, DEFAULT_TICK_MARK_PAINT, DEFAULT_TICK_MARK_STROKE, DEFAULT_TICK_MARKS_VISIBLE
 
Constructor Summary
ShiftedCategoryAxis(String label)
           
 
Method Summary
protected  double calculateCategorySize(int categoryCount, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
           
 double getCategoryEnd(int category, int categoryCount, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
           
 double getCategoryMiddle(int category, int categoryCount, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
           
 double getCategoryStart(int category, int categoryCount, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
           
 
Methods inherited from class hudson.util.NoOverlapCategoryAxis
drawCategoryLabels
 
Methods inherited from class org.jfree.chart.axis.CategoryAxis
addCategoryLabelToolTip, calculateCategoryGapSize, calculateTextBlockHeight, calculateTextBlockWidth, clearCategoryLabelToolTips, clone, configure, createLabel, draw, drawCategoryLabels, equals, getCategoryJava2DCoordinate, getCategoryLabelPositionOffset, getCategoryLabelPositions, getCategoryLabelToolTip, getCategoryMargin, getCategorySeriesMiddle, getLowerMargin, getMaximumCategoryLabelLines, getMaximumCategoryLabelWidthRatio, getTickLabelFont, getTickLabelPaint, getUpperMargin, hashCode, refreshTicks, removeCategoryLabelToolTip, reserveSpace, setCategoryLabelPositionOffset, setCategoryLabelPositions, setCategoryMargin, setLowerMargin, setMaximumCategoryLabelLines, setMaximumCategoryLabelWidthRatio, setTickLabelFont, setTickLabelPaint, setUpperMargin
 
Methods inherited from class org.jfree.chart.axis.Axis
addChangeListener, drawAxisLine, drawLabel, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelEnclosure, getLabelFont, getLabelInsets, getLabelPaint, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, hasListener, isAxisLineVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, notifyListeners, removeChangeListener, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelPaint, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShiftedCategoryAxis

public ShiftedCategoryAxis(String label)
Method Detail

calculateCategorySize

protected double calculateCategorySize(int categoryCount,
                                       Rectangle2D area,
                                       org.jfree.ui.RectangleEdge edge)
Overrides:
calculateCategorySize in class org.jfree.chart.axis.CategoryAxis

getCategoryEnd

public double getCategoryEnd(int category,
                             int categoryCount,
                             Rectangle2D area,
                             org.jfree.ui.RectangleEdge edge)
Overrides:
getCategoryEnd in class org.jfree.chart.axis.CategoryAxis

getCategoryMiddle

public double getCategoryMiddle(int category,
                                int categoryCount,
                                Rectangle2D area,
                                org.jfree.ui.RectangleEdge edge)
Overrides:
getCategoryMiddle in class org.jfree.chart.axis.CategoryAxis

getCategoryStart

public double getCategoryStart(int category,
                               int categoryCount,
                               Rectangle2D area,
                               org.jfree.ui.RectangleEdge edge)
Overrides:
getCategoryStart in class org.jfree.chart.axis.CategoryAxis


Copyright © 2004-2013. All Rights Reserved.