public final class ShiftedCategoryAxis extends NoOverlapCategoryAxis
CategoryAxis
shifted to left to eliminate redundant space
between area and the Y-axis.DEFAULT_AXIS_MARGIN, DEFAULT_CATEGORY_MARGIN
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 and Description |
---|
ShiftedCategoryAxis(String label) |
Modifier and Type | Method and Description |
---|---|
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) |
drawCategoryLabels
addCategoryLabelToolTip, addCategoryLabelURL, calculateCategoryGapSize, calculateTextBlockHeight, calculateTextBlockWidth, clearCategoryLabelToolTips, clearCategoryLabelURLs, clone, configure, createLabel, draw, drawCategoryLabels, drawTickMarks, equals, getCategoryJava2DCoordinate, getCategoryLabelPositionOffset, getCategoryLabelPositions, getCategoryLabelToolTip, getCategoryLabelURL, getCategoryMargin, getCategoryMiddle, getCategorySeriesMiddle, getCategorySeriesMiddle, getLowerMargin, getMaximumCategoryLabelLines, getMaximumCategoryLabelWidthRatio, getTickLabelFont, getTickLabelPaint, getUpperMargin, hashCode, refreshTicks, removeCategoryLabelToolTip, removeCategoryLabelURL, reserveSpace, setCategoryLabelPositionOffset, setCategoryLabelPositions, setCategoryMargin, setLowerMargin, setMaximumCategoryLabelLines, setMaximumCategoryLabelWidthRatio, setTickLabelFont, setTickLabelPaint, setUpperMargin
addChangeListener, createAndAddEntity, createAttributedLabel, drawAttributedLabel, drawAxisLine, drawLabel, fireChangeEvent, getAttributedLabel, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelEnclosure, getLabelFont, getLabelInsets, getLabelLocation, getLabelPaint, getMinorTickMarkInsideLength, getMinorTickMarkOutsideLength, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, hasListener, isAxisLineVisible, isMinorTickMarksVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, labelAnchorH, labelAnchorV, labelLocationX, labelLocationY, notifyListeners, removeChangeListener, setAttributedLabel, setAttributedLabel, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelInsets, setLabelLocation, setLabelPaint, setMinorTickMarkInsideLength, setMinorTickMarkOutsideLength, setMinorTickMarksVisible, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
public ShiftedCategoryAxis(String label)
protected double calculateCategorySize(int categoryCount, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
calculateCategorySize
in class org.jfree.chart.axis.CategoryAxis
public double getCategoryEnd(int category, int categoryCount, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
getCategoryEnd
in class org.jfree.chart.axis.CategoryAxis
public double getCategoryMiddle(int category, int categoryCount, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
getCategoryMiddle
in class org.jfree.chart.axis.CategoryAxis
public double getCategoryStart(int category, int categoryCount, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
getCategoryStart
in class org.jfree.chart.axis.CategoryAxis
Copyright © 2019. All rights reserved.