Java 类org.jfree.chart.axis.StandardTickUnitSource 实例源码

项目:mafscaling    文件:LogView.java   
private void removeXYSeries(int column) {
    if (column == rpmCol) {
        ((NumberAxis)plot.getRangeAxis(0)).setStandardTickUnits(new StandardTickUnitSource());
        plot.getRangeAxis(0).setTickLabelsVisible(false);
        rpmPlotRenderer.setSeriesVisible(0, false);
        xMarker.removeLabel(rpmPlotRenderer.getSeriesPaint(0));
    }
    else {
        displCount -= 1;
        if (displCount == 0)
            plot.getRangeAxis(1).setTickLabelsVisible(false);
        plotRenderer.setSeriesVisible(column, false);
        xMarker.removeLabel(plotRenderer.getSeriesPaint(column));
    }
}
项目:astor    文件:StandardTickUnitSourceTests.java   
/**
 * Confirm that the equals method can distinguish all the required fields.
 */
public void testEquals() {
    StandardTickUnitSource t1 = new StandardTickUnitSource();
    StandardTickUnitSource t2 = new StandardTickUnitSource();
    assertTrue(t1.equals(t2));
}