org.jfree.chart.block.LabelBlock Java Examples

The following examples show how to use org.jfree.chart.block.LabelBlock. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StandardChartTheme.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Applies the attributes of this theme to the specified block.
 *
 * @param b  the block.
 */
protected void applyToBlock(Block b) {
    if (b instanceof Title) {
        applyToTitle((Title) b);
    }
    else if (b instanceof LabelBlock) {
        LabelBlock lb = (LabelBlock) b;
        lb.setFont(this.regularFont);
        lb.setPaint(this.legendItemPaint);
    }
}
 
Example #2
Source File: StandardChartTheme.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Applies the attributes of this theme to the specified block.
 *
 * @param b  the block.
 */
protected void applyToBlock(Block b) {
    if (b instanceof Title) {
        applyToTitle((Title) b);
    }
    else if (b instanceof LabelBlock) {
        LabelBlock lb = (LabelBlock) b;
        lb.setFont(this.regularFont);
        lb.setPaint(this.legendItemPaint);
    }
}
 
Example #3
Source File: StandardChartTheme.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the attributes of this theme to the specified block.
 *
 * @param b  the block.
 */
protected void applyToBlock(Block b) {
    if (b instanceof Title) {
        applyToTitle((Title) b);
    }
    else if (b instanceof LabelBlock) {
        LabelBlock lb = (LabelBlock) b;
        lb.setFont(this.regularFont);
        lb.setPaint(this.legendItemPaint);
    }
}
 
Example #4
Source File: StandardChartTheme.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Applies the attributes of this theme to the specified block.
 *
 * @param b  the block.
 */
protected void applyToBlock(Block b) {
    if (b instanceof Title) {
        applyToTitle((Title) b);
    }
    else if (b instanceof LabelBlock) {
        LabelBlock lb = (LabelBlock) b;
        lb.setFont(this.regularFont);
        lb.setPaint(this.legendItemPaint);
    }
}
 
Example #5
Source File: StandardChartTheme.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Applies the attributes of this theme to the specified block.
 *
 * @param b  the block.
 */
protected void applyToBlock(Block b) {
    if (b instanceof Title) {
        applyToTitle((Title) b);
    }
    else if (b instanceof LabelBlock) {
        LabelBlock lb = (LabelBlock) b;
        lb.setFont(this.regularFont);
        lb.setPaint(this.legendItemPaint);
    }
}
 
Example #6
Source File: StandardChartTheme.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Applies the attributes of this theme to the specified block.
 *
 * @param b  the block.
 */
protected void applyToBlock(Block b) {
    if (b instanceof Title) {
        applyToTitle((Title) b);
    }
    else if (b instanceof LabelBlock) {
        LabelBlock lb = (LabelBlock) b;
        lb.setFont(this.regularFont);
        lb.setPaint(this.legendItemPaint);
    }
}
 
Example #7
Source File: StandardChartTheme.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Applies the attributes of this theme to the specified block.
 *
 * @param b  the block.
 */
protected void applyToBlock(Block b) {
    if (b instanceof Title) {
        applyToTitle((Title) b);
    }
    else if (b instanceof LabelBlock) {
        LabelBlock lb = (LabelBlock) b;
        lb.setFont(this.regularFont);
        lb.setPaint(this.legendItemPaint);
    }
}