Java Code Examples for org.jfree.chart.plot.PolarPlot#setAngleLabelPaint()

The following examples show how to use org.jfree.chart.plot.PolarPlot#setAngleLabelPaint() . 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 a {@link PolarPlot}.  This
 * method is called from the {@link #applyToPlot(Plot)} method.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToPolarPlot(PolarPlot plot) {
    plot.setAngleLabelFont(this.regularFont);
    plot.setAngleLabelPaint(this.tickLabelPaint);
    plot.setAngleGridlinePaint(this.domainGridlinePaint);
    plot.setRadiusGridlinePaint(this.rangeGridlinePaint);
    ValueAxis axis = plot.getAxis();
    if (axis != null) {
        applyToValueAxis(axis);
    }
}
 
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 a {@link PolarPlot}.  This
 * method is called from the {@link #applyToPlot(Plot)} method.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToPolarPlot(PolarPlot plot) {
    plot.setAngleLabelFont(this.regularFont);
    plot.setAngleLabelPaint(this.tickLabelPaint);
    plot.setAngleGridlinePaint(this.domainGridlinePaint);
    plot.setRadiusGridlinePaint(this.rangeGridlinePaint);
    ValueAxis axis = plot.getAxis();
    if (axis != null) {
        applyToValueAxis(axis);
    }
}
 
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 a {@link PolarPlot}.  This
 * method is called from the {@link #applyToPlot(Plot)} method.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToPolarPlot(PolarPlot plot) {
    plot.setAngleLabelFont(this.regularFont);
    plot.setAngleLabelPaint(this.tickLabelPaint);
    plot.setAngleGridlinePaint(this.domainGridlinePaint);
    plot.setRadiusGridlinePaint(this.rangeGridlinePaint);
    ValueAxis axis = plot.getAxis();
    if (axis != null) {
        applyToValueAxis(axis);
    }
}
 
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 a {@link PolarPlot}.  This
 * method is called from the {@link #applyToPlot(Plot)} method.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToPolarPlot(PolarPlot plot) {
    plot.setAngleLabelFont(this.regularFont);
    plot.setAngleLabelPaint(this.tickLabelPaint);
    plot.setAngleGridlinePaint(this.domainGridlinePaint);
    plot.setRadiusGridlinePaint(this.rangeGridlinePaint);
    ValueAxis axis = plot.getAxis();
    if (axis != null) {
        applyToValueAxis(axis);
    }
}
 
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 a {@link PolarPlot}.  This
 * method is called from the {@link #applyToPlot(Plot)} method.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToPolarPlot(PolarPlot plot) {
    plot.setAngleLabelFont(this.regularFont);
    plot.setAngleLabelPaint(this.tickLabelPaint);
    plot.setAngleGridlinePaint(this.domainGridlinePaint);
    plot.setRadiusGridlinePaint(this.rangeGridlinePaint);
    ValueAxis axis = plot.getAxis();
    if (axis != null) {
        applyToValueAxis(axis);
    }
}
 
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 a {@link PolarPlot}.  This
 * method is called from the {@link #applyToPlot(Plot)} method.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToPolarPlot(PolarPlot plot) {
    plot.setAngleLabelFont(this.regularFont);
    plot.setAngleLabelPaint(this.tickLabelPaint);
    plot.setAngleGridlinePaint(this.domainGridlinePaint);
    plot.setRadiusGridlinePaint(this.rangeGridlinePaint);
    ValueAxis axis = plot.getAxis();
    if (axis != null) {
        applyToValueAxis(axis);
    }
}
 
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 a {@link PolarPlot}.  This
 * method is called from the {@link #applyToPlot(Plot)} method.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToPolarPlot(PolarPlot plot) {
    plot.setAngleLabelFont(this.regularFont);
    plot.setAngleLabelPaint(this.tickLabelPaint);
    plot.setAngleGridlinePaint(this.domainGridlinePaint);
    plot.setRadiusGridlinePaint(this.rangeGridlinePaint);
    ValueAxis axis = plot.getAxis();
    if (axis != null) {
        applyToValueAxis(axis);
    }
}
 
Example 8
Source File: PolarPlotTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Some checks for the equals() method.
 */
public void testEquals() {
    PolarPlot plot1 = new PolarPlot();
    PolarPlot plot2 = new PolarPlot();
    assertTrue(plot1.equals(plot2));
    assertTrue(plot2.equals(plot1));

    plot1.setAngleGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
            3.0f, 4.0f, Color.blue));
    assertFalse(plot1.equals(plot2));
    plot2.setAngleGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
            3.0f, 4.0f, Color.blue));
    assertTrue(plot1.equals(plot2));

    Stroke s = new BasicStroke(1.23f);
    plot1.setAngleGridlineStroke(s);
    assertFalse(plot1.equals(plot2));
    plot2.setAngleGridlineStroke(s);
    assertTrue(plot1.equals(plot2));

    plot1.setAngleTickUnit(new NumberTickUnit(11.0));
    assertFalse(plot1.equals(plot2));
    plot2.setAngleTickUnit(new NumberTickUnit(11.0));
    assertTrue(plot1.equals(plot2));

    plot1.setAngleGridlinesVisible(false);
    assertFalse(plot1.equals(plot2));
    plot2.setAngleGridlinesVisible(false);
    assertTrue(plot1.equals(plot2));

    plot1.setAngleLabelFont(new Font("Serif", Font.PLAIN, 9));
    assertFalse(plot1.equals(plot2));
    plot2.setAngleLabelFont(new Font("Serif", Font.PLAIN, 9));
    assertTrue(plot1.equals(plot2));

    plot1.setAngleLabelPaint(new GradientPaint(9.0f, 8.0f, Color.blue,
            7.0f, 6.0f, Color.red));
    assertFalse(plot1.equals(plot2));
    plot2.setAngleLabelPaint(new GradientPaint(9.0f, 8.0f, Color.blue,
            7.0f, 6.0f, Color.red));
    assertTrue(plot1.equals(plot2));

    plot1.setAngleLabelsVisible(false);
    assertFalse(plot1.equals(plot2));
    plot2.setAngleLabelsVisible(false);
    assertTrue(plot1.equals(plot2));

    plot1.setAxis(new NumberAxis("Test"));
    assertFalse(plot1.equals(plot2));
    plot2.setAxis(new NumberAxis("Test"));
    assertTrue(plot1.equals(plot2));

    plot1.setRadiusGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.white,
            3.0f, 4.0f, Color.black));
    assertFalse(plot1.equals(plot2));
    plot2.setRadiusGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.white,
            3.0f, 4.0f, Color.black));
    assertTrue(plot1.equals(plot2));

    plot1.setRadiusGridlineStroke(s);
    assertFalse(plot1.equals(plot2));
    plot2.setRadiusGridlineStroke(s);
    assertTrue(plot1.equals(plot2));

    plot1.setRadiusGridlinesVisible(false);
    assertFalse(plot1.equals(plot2));
    plot2.setRadiusGridlinesVisible(false);
    assertTrue(plot1.equals(plot2));

    plot1.addCornerTextItem("XYZ");
    assertFalse(plot1.equals(plot2));
    plot2.addCornerTextItem("XYZ");
    assertTrue(plot1.equals(plot2));
}
 
Example 9
Source File: PolarPlotTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Some checks for the equals() method.
 */
public void testEquals() {
    PolarPlot plot1 = new PolarPlot();
    PolarPlot plot2 = new PolarPlot();
    assertTrue(plot1.equals(plot2));
    assertTrue(plot2.equals(plot1));
    
    plot1.setAngleGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
            3.0f, 4.0f, Color.blue));
    assertFalse(plot1.equals(plot2));
    plot2.setAngleGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
            3.0f, 4.0f, Color.blue));
    assertTrue(plot1.equals(plot2));
    
    Stroke s = new BasicStroke(1.23f);
    plot1.setAngleGridlineStroke(s);
    assertFalse(plot1.equals(plot2));
    plot2.setAngleGridlineStroke(s);
    assertTrue(plot1.equals(plot2));
    
    plot1.setAngleTickUnit(new NumberTickUnit(11.0));
    assertFalse(plot1.equals(plot2));
    plot2.setAngleTickUnit(new NumberTickUnit(11.0));
    assertTrue(plot1.equals(plot2));
    
    plot1.setAngleGridlinesVisible(false);
    assertFalse(plot1.equals(plot2));
    plot2.setAngleGridlinesVisible(false);
    assertTrue(plot1.equals(plot2));
    
    plot1.setAngleLabelFont(new Font("Serif", Font.PLAIN, 9));
    assertFalse(plot1.equals(plot2));
    plot2.setAngleLabelFont(new Font("Serif", Font.PLAIN, 9));
    assertTrue(plot1.equals(plot2));
    
    plot1.setAngleLabelPaint(new GradientPaint(9.0f, 8.0f, Color.blue,
            7.0f, 6.0f, Color.red));
    assertFalse(plot1.equals(plot2));
    plot2.setAngleLabelPaint(new GradientPaint(9.0f, 8.0f, Color.blue,
            7.0f, 6.0f, Color.red));
    assertTrue(plot1.equals(plot2));
    
    plot1.setAngleLabelsVisible(false);
    assertFalse(plot1.equals(plot2));
    plot2.setAngleLabelsVisible(false);
    assertTrue(plot1.equals(plot2));
    
    plot1.setAxis(new NumberAxis("Test"));
    assertFalse(plot1.equals(plot2));
    plot2.setAxis(new NumberAxis("Test"));
    assertTrue(plot1.equals(plot2));
    
    plot1.setRadiusGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.white,
            3.0f, 4.0f, Color.black));
    assertFalse(plot1.equals(plot2));
    plot2.setRadiusGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.white,
            3.0f, 4.0f, Color.black));
    assertTrue(plot1.equals(plot2));
    
    plot1.setRadiusGridlineStroke(s);
    assertFalse(plot1.equals(plot2));
    plot2.setRadiusGridlineStroke(s);
    assertTrue(plot1.equals(plot2));
    
    plot1.setRadiusGridlinesVisible(false);
    assertFalse(plot1.equals(plot2));
    plot2.setRadiusGridlinesVisible(false);
    assertTrue(plot1.equals(plot2));
    
    plot1.addCornerTextItem("XYZ");
    assertFalse(plot1.equals(plot2));
    plot2.addCornerTextItem("XYZ");
    assertTrue(plot1.equals(plot2));   
}