Search in sources :

Example 1 with SubCategoryAxis

use of org.jfree.chart.axis.SubCategoryAxis in project SIMVA-SoS by SESoS.

the class StandardChartTheme method applyToCategoryAxis.

/**
 * Applies the attributes for this theme to a {@link CategoryAxis}.
 *
 * @param axis  the axis (<code>null</code> not permitted).
 */
protected void applyToCategoryAxis(CategoryAxis axis) {
    axis.setLabelFont(this.largeFont);
    axis.setLabelPaint(this.axisLabelPaint);
    axis.setTickLabelFont(this.regularFont);
    axis.setTickLabelPaint(this.tickLabelPaint);
    if (axis instanceof SubCategoryAxis) {
        SubCategoryAxis sca = (SubCategoryAxis) axis;
        sca.setSubLabelFont(this.regularFont);
        sca.setSubLabelPaint(this.tickLabelPaint);
    }
}
Also used : SubCategoryAxis(org.jfree.chart.axis.SubCategoryAxis)

Aggregations

SubCategoryAxis (org.jfree.chart.axis.SubCategoryAxis)1