当前位置: 首页>>代码示例>>Java>>正文


Java XYLineAndShapeRenderer.setBaseShapesVisible方法代码示例

本文整理汇总了Java中org.jfree.chart.renderer.xy.XYLineAndShapeRenderer.setBaseShapesVisible方法的典型用法代码示例。如果您正苦于以下问题:Java XYLineAndShapeRenderer.setBaseShapesVisible方法的具体用法?Java XYLineAndShapeRenderer.setBaseShapesVisible怎么用?Java XYLineAndShapeRenderer.setBaseShapesVisible使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.chart.renderer.xy.XYLineAndShapeRenderer的用法示例。


在下文中一共展示了XYLineAndShapeRenderer.setBaseShapesVisible方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createLegend

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
protected JFreeChart createLegend(XYDataset dataset) {
    
    JFreeChart chart = ChartFactory.createXYLineChart(
        chartTitle,             // chart title
        "Category",               // domain axis label
        "Value",                  // range axis label
        dataset,                  // data
        PlotOrientation.VERTICAL, // orientation
        true,                     // include legend
        true,                     // tooltips
        false                     // url
    );
 
    // NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...
    chart.setBackgroundPaint(Color.white);
    XYPlot plot = (XYPlot) chart.getPlot();

    XYLineAndShapeRenderer renderer 
    = (XYLineAndShapeRenderer) plot.getRenderer();
    renderer.setBaseLinesVisible(false);
    renderer.setBaseShapesVisible(true);
    renderer.setBaseShapesFilled(true);
    plot.setRenderer(renderer);
    return chart;
    
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:27,代码来源:LineChartDemo6.java

示例2: initMemChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
public void initMemChart(){
	memChart = ChartFactory.createTimeSeriesChart(
			MEM_USED, 
			"Seconds",
			MEM_USED, 
			memSet, 
			true, true, false);
    XYPlot localXYPlot = (XYPlot)memChart.getPlot();
    localXYPlot.setDomainPannable(true);
    localXYPlot.setRangePannable(false);
    localXYPlot.setDomainCrosshairVisible(true);
    localXYPlot.setRangeCrosshairVisible(true);
    XYItemRenderer r = localXYPlot.getRenderer();
       if (r instanceof XYLineAndShapeRenderer) {
           XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r;
           renderer.setBaseShapesVisible(true);
           renderer.setBaseShapesFilled(true);
       }
       
       DateAxis axis = (DateAxis) localXYPlot.getDomainAxis();
       axis.setDateFormatOverride(new SimpleDateFormat("HH:mm:ss"));
}
 
开发者ID:HoratiusTang,项目名称:EsperDist,代码行数:23,代码来源:StatComposite.java

示例3: setTimeSeriesRender

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
public static void setTimeSeriesRender(Plot plot, boolean isShowData, boolean isShapesVisible) {

        XYPlot xyplot = (XYPlot) plot;
        xyplot.setNoDataMessage(NO_DATA_MSG);
        xyplot.setInsets(new RectangleInsets(10, 10, 5, 10));

        XYLineAndShapeRenderer xyRenderer = (XYLineAndShapeRenderer) xyplot.getRenderer();

        xyRenderer.setBaseItemLabelGenerator(new StandardXYItemLabelGenerator());
        xyRenderer.setBaseShapesVisible(false);
        if (isShowData) {
            xyRenderer.setBaseItemLabelsVisible(true);
            xyRenderer.setBaseItemLabelGenerator(new StandardXYItemLabelGenerator());
            xyRenderer.setBasePositiveItemLabelPosition(new ItemLabelPosition(ItemLabelAnchor.OUTSIDE1, TextAnchor.BOTTOM_CENTER));
        }
        xyRenderer.setBaseShapesVisible(isShapesVisible);

        DateAxis domainAxis = (DateAxis) xyplot.getDomainAxis();
        domainAxis.setAutoTickUnitSelection(false);
        DateTickUnit dateTickUnit = new DateTickUnit(DateTickUnitType.YEAR, 1, new SimpleDateFormat("yyyy-MM"));
        domainAxis.setTickUnit(dateTickUnit);

        StandardXYToolTipGenerator xyTooltipGenerator = new StandardXYToolTipGenerator("{1}:{2}", new SimpleDateFormat("yyyy-MM-dd"), new DecimalFormat("0"));
        xyRenderer.setBaseToolTipGenerator(xyTooltipGenerator);

        setXY_XAixs(xyplot);
        setXY_YAixs(xyplot);

    }
 
开发者ID:Fanping,项目名称:iveely.ml,代码行数:30,代码来源:ChartUtils.java

示例4: createXYLineChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
private static  JFreeChart createXYLineChart(String title,String category,String value, XYSeriesCollection dataset) {
	    JFreeChart mChart = ChartFactory.createXYLineChart(
	    		title,
	    		category,
	    		value,				
				dataset,
				PlotOrientation.VERTICAL,
				true, 
				true, 
				false);
//	      ChartPanel chartPanel = new ChartPanel( mChart);
//	      chartPanel.setPreferredSize( new java.awt.Dimension( 560 , 367 ) );
	      final XYPlot plot = mChart.getXYPlot();// 获取折线图plot对象
	      plot.setBackgroundPaint(new Color(240,240,240));
		  NumberAxis na= (NumberAxis)plot.getRangeAxis();
		  NumberAxis domainAxis = (NumberAxis)plot.getDomainAxis();
//		  na.setAutoTickUnitSelection(false);
		  na.setNumberFormatOverride(df);//设置轴坐标
		  domainAxis.setNumberFormatOverride(df);
	      XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer( );// 设置样式
	      renderer.setBaseShapesVisible(false);
	      renderer.setSeriesPaint(0,Color.RED);
		  renderer.setSeriesPaint(1,Color.GREEN);
		  renderer.setSeriesPaint(2,new Color(255,150,24));
		  renderer.setSeriesPaint(3,new Color(82,101,115));
	      plot.setRenderer( renderer ); 
	      return mChart;
	}
 
开发者ID:dbiir,项目名称:ts-benchmark,代码行数:29,代码来源:ChartBizUtil.java

示例5: createChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
/**
 * Creates a chart.
 *
 * @param dataset  a dataset.
 *
 * @return A chart.
 */
private static JFreeChart createChart(XYDataset dataset) {

    JFreeChart chart = ChartFactory.createTimeSeriesChart(
        "Legal & General Unit Trust Prices",  // title
        "Date",             // x-axis label
        "Price Per Unit",   // y-axis label
        dataset,            // data
        true,               // create legend?
        true,               // generate tooltips?
        false               // generate URLs?
    );

    chart.setBackgroundPaint(Color.white);

    XYPlot plot = (XYPlot) chart.getPlot();
    plot.setBackgroundPaint(Color.lightGray);
    plot.setDomainGridlinePaint(Color.white);
    plot.setRangeGridlinePaint(Color.white);
    plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
    plot.setDomainCrosshairVisible(true);
    plot.setRangeCrosshairVisible(true);

    XYItemRenderer r = plot.getRenderer();
    if (r instanceof XYLineAndShapeRenderer) {
        XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r;
        renderer.setBaseShapesVisible(true);
        renderer.setBaseShapesFilled(true);
        renderer.setDrawSeriesLineAsPath(true);
    }

    DateAxis axis = (DateAxis) plot.getDomainAxis();
    axis.setDateFormatOverride(new SimpleDateFormat("MMM-yyyy"));

    return chart;

}
 
开发者ID:Yarichi,项目名称:Proyecto-DASI,代码行数:44,代码来源:TimeSeriesChartDemo1.java

示例6: createChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
/**
 * Creates a chart.
 * 
 * @param dataset  a dataset.
 * 
 * @return A chart.
 */
private static JFreeChart createChart(XYDataset dataset) {

    JFreeChart chart = ChartFactory.createTimeSeriesChart(
        "Legal & General Unit Trust Prices",  // title
        "Date",             // x-axis label
        "Price Per Unit",   // y-axis label
        dataset,            // data
        true,               // create legend?
        true,               // generate tooltips?
        false               // generate URLs?
    );

    chart.setBackgroundPaint(Color.white);

    XYPlot plot = (XYPlot) chart.getPlot();
    plot.setBackgroundPaint(Color.lightGray);
    plot.setDomainGridlinePaint(Color.white);
    plot.setRangeGridlinePaint(Color.white);
    plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
    plot.setDomainCrosshairVisible(true);
    plot.setRangeCrosshairVisible(true);
    
    XYItemRenderer r = plot.getRenderer();
    if (r instanceof XYLineAndShapeRenderer) {
        XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r;
        renderer.setBaseShapesVisible(true);
        renderer.setBaseShapesFilled(true);
    }
    
    DateAxis axis = (DateAxis) plot.getDomainAxis();
    axis.setDateFormatOverride(new SimpleDateFormat("MMM-yyyy"));
    
    return chart;

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:43,代码来源:SWTTimeSeriesDemo.java

示例7: TimeSeriesChartContainer

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
public TimeSeriesChartContainer()
{
	dataset = new DefaultXYDataset();
	renderer = new XYLineAndShapeRenderer();
	renderer.setBaseShapesVisible(false);
	renderer.setBaseLinesVisible(true);
	XYPlot plot = new XYPlot(dataset, new NumberAxis("Time"), new NumberAxis(), renderer);
	chart = new JFreeChart(plot);
	plot.setDrawingSupplier(ChartUtils.createDrawingSupplier());
	
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:12,代码来源:TimeSeriesChartContainer.java

示例8: createChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
/**
 * Crea un objeto JFreechart con el titulo pasado por parametro con 
 * leyenda en el eje X  siendo el tiempo y la leyenda de eje Y  la velocidad.
 * La grafica creada es vacía.
 *
 * @param title. Titulo de la grafica.
 *
 * @return A chart.
 */
private  JFreeChart createChart() {

    JFreeChart chart = ChartFactory.createTimeSeriesChart(
            title, // title
            LEYENDA_X, // x-axis label
            LEYENDA_Y, // y-axis label
            dataset, // data
            true, // create legend?
            true, // generate tooltips?
            false // generate URLs?
            );

    chart.setBackgroundPaint(Color.white);

    XYPlot plot = (XYPlot) chart.getPlot();
    plot.setBackgroundPaint(Color.lightGray);
    plot.setDomainGridlinePaint(Color.white);
    plot.setRangeGridlinePaint(Color.white);
    plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
    plot.setDomainCrosshairVisible(true);
    plot.setRangeCrosshairVisible(true);

    XYItemRenderer r = plot.getRenderer();
    if (r instanceof XYLineAndShapeRenderer) {
        XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r;
        renderer.setBaseShapesVisible(true);
        renderer.setBaseShapesFilled(true);
        renderer.setDrawSeriesLineAsPath(true);
    }

    DateAxis axis = (DateAxis) plot.getDomainAxis();
    axis.setDateFormatOverride(new SimpleDateFormat("h:mm"));
    chartSet = chart;
    return chart;

}
 
开发者ID:salcedonia,项目名称:egorilla-software-engineering-2008-2009,代码行数:46,代码来源:PanelGrafica.java

示例9: createChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
/**
    * Creates a chart.
    * 
    * @param dataset  the dataset.
    * 
    * @return a chart.
    */
   protected JFreeChart createChart(XYDataset dataset) {
        // create the chart...
       JFreeChart chart = ChartFactory.createXYLineChart(
           chartTitle,      // chart title
           "Y",                      // x axis label
           "X",                      // y axis label
           dataset,                  // data
           PlotOrientation.HORIZONTAL,
           !legendPanelOn,                     // include legend
           true,                     // tooltips
           false                     // urls
       );

       // NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...
       chart.setBackgroundPaint(Color.white);
       
       // get a reference to the plot for further customisation...
       XYPlot plot = (XYPlot) chart.getPlot();
       plot.setBackgroundPaint(Color.lightGray);
       plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
       plot.setDomainGridlinePaint(Color.white);
       plot.setRangeGridlinePaint(Color.white);
       
       XYLineAndShapeRenderer renderer 
           = (XYLineAndShapeRenderer) plot.getRenderer();
       renderer.setBaseShapesVisible(true);
       renderer.setBaseShapesFilled(true);

       // change the auto tick unit selection to integer units only...
       NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
       rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
       // OPTIONAL CUSTOMISATION COMPLETED.
               
       return chart;
 
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:44,代码来源:SuperPowerChart.java

示例10: createXYSymbolicAxisChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
private JFreeChart createXYSymbolicAxisChart(String title, XYDataset dataset) {
 SymbolAxis domainAxis = new SymbolAxis("Domain",
            new String[] {"A", "B", "C", "D"});
    SymbolAxis rangeAxis = new SymbolAxis("Range",
            new String[] {"V", "X", "Y", "Z"});
    XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer(false, true);
//renderer.setLegendItemLabelGenerator(new SOCRXYSeriesLabelGenerator());

    XYPlot plot = new XYPlot(dataset, domainAxis, rangeAxis, renderer);
    JFreeChart chart = new JFreeChart("SymbolicAxis Demo 1", plot);

    if (lineCondition.indexOf("noshape")!=-1)
		renderer.setBaseShapesVisible(false);
else  renderer.setBaseShapesVisible(true);

if (lineCondition.indexOf("noline")!=-1)
		renderer.setBaseLinesVisible(false);

if (lineCondition.indexOf("nofill")!=-1){
		renderer.setBaseShapesFilled(false);
		renderer.setBaseFillPaint(Color.white);
		renderer.setDrawOutlines(true);}
 else {
	 renderer.setBaseShapesFilled(true);
	 renderer.setUseFillPaint(false);
	 }

    	renderer.setUseFillPaint(true);
//renderer.setFillPaint(Color.white);

    return chart;
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:33,代码来源:ChartGenerator_JTable.java

示例11: createChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
/**
   * Creates a chart.
   * 
   * @param dataset  the data for the chart.
   * 
   * @return a chart.
   */
  protected JFreeChart createChart(XYDataset dataset) {
      
      // create the chart...
      JFreeChart chart = ChartFactory.createXYLineChart(
          chartTitle,      // chart title
          domainLabel,                      // x axis label
          rangeLabel,                      // y axis label
          dataset,                  // data
          PlotOrientation.VERTICAL,
          !legendPanelOn,                     // include legend
          true,                     // tooltips
          false                     // urls
      );

      // NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...
      chart.setBackgroundPaint(Color.white);
      
     // get a reference to the plot for further customisation...
      XYPlot plot = (XYPlot) chart.getPlot();
      plot.setBackgroundPaint(Color.lightGray);
      plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
      plot.setDomainGridlinePaint(Color.white);
      plot.setRangeGridlinePaint(Color.white);
      
      XYLineAndShapeRenderer renderer 
          = (XYLineAndShapeRenderer) plot.getRenderer();
      renderer.setBaseShapesVisible(true);
      renderer.setBaseShapesFilled(true);
      renderer.setLegendItemLabelGenerator(new SOCRXYSeriesLabelGenerator());

      // change the auto tick unit selection to integer units only...
      NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
      rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
      // OPTIONAL CUSTOMISATION COMPLETED.
         
setXSummary(dataset);     
      return chart;
      
  }
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:47,代码来源:LineChartDemo2.java

示例12: createChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
/**
   * Creates a chart.
   * 
   * @param dataset  a dataset.
   * 
   * @return A chart based on the supplied dataset.
   */
  protected JFreeChart createChart(XYDataset dataset) {
  
      JFreeChart chart = ChartFactory.createXYLineChart(
          chartTitle,      // chart title
          domainLabel,                      // x axis label
          rangeLabel,                      // y axis label
          dataset,                  // data
          PlotOrientation.VERTICAL, 
          !legendPanelOn,                     // include legend
          true,                     // tooltips
          false                     // urls
      );

      // NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...

      // get a reference to the plot for further customisation...
      XYPlot plot = (XYPlot) chart.getPlot();
      XYLineAndShapeRenderer renderer 
          = (XYLineAndShapeRenderer) plot.getRenderer();
      renderer.setBaseShapesVisible(true);
      renderer.setBaseShapesFilled(true);
      renderer.setDrawOutlines(true);
renderer.setLegendItemLabelGenerator(new SOCRXYSeriesLabelGenerator());

      // change the auto tick unit selection to integer units only...
      NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
      rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
NumberAxis domainAxis = (NumberAxis) plot.getDomainAxis();
domainAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
setXSummary(dataset);
      return chart;
  }
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:40,代码来源:LineChartDemo3.java

示例13: createChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
/**
    * Creates a chart.
    * 
    * @param dataset  the dataset.
    * 
    * @return a chart.
    */
   protected JFreeChart createChart(XYDataset dataset) {
        // create the chart...
       JFreeChart chart = ChartFactory.createXYLineChart(
           chartTitle,      // chart title
           domainLabel,                      // x axis label
           rangeLabel,                      // y axis label
           dataset,                  // data
           PlotOrientation.VERTICAL,
           !legendPanelOn,                     // include legend
           true,                     // tooltips
           false                     // urls
       );

       // NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...
       chart.setBackgroundPaint(Color.white);
       
       // get a reference to the plot for further customisation...
       XYPlot plot = (XYPlot) chart.getPlot();
       plot.setBackgroundPaint(Color.lightGray);
       plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
       plot.setDomainGridlinePaint(Color.white);
       plot.setRangeGridlinePaint(Color.white);
       
       XYLineAndShapeRenderer renderer 
           = (XYLineAndShapeRenderer) plot.getRenderer();
       renderer.setBaseShapesVisible(true);
       renderer.setBaseShapesFilled(true);

       // change the auto tick unit selection to integer units only...
       NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
       rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
       // OPTIONAL CUSTOMISATION COMPLETED.
               
       return chart;
 
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:44,代码来源:SuperXYChart_Time.java

示例14: createChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
/**
    * Creates a chart.
    *
    * @param dataset  the dataset.
    *
    * @return a chart.
    */
   protected JFreeChart createChart(XYDataset dataset) {
        // create the chart...
       JFreeChart chart = ChartFactory.createXYLineChart(
           chartTitle,      // chart title
           domainLabel,                      // x axis label
           rangeLabel,                      // y axis label
           dataset,                  // data
           PlotOrientation.VERTICAL,
           !legendPanelOn,                     // include legend
           true,                     // tooltips
           false                     // urls
       );

       // NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...
       chart.setBackgroundPaint(Color.white);

       // get a reference to the plot for further customisation...
       XYPlot plot = (XYPlot) chart.getPlot();
       plot.setBackgroundPaint(Color.lightGray);
       plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
       plot.setDomainGridlinePaint(Color.white);
       plot.setRangeGridlinePaint(Color.white);

       XYLineAndShapeRenderer renderer
           = (XYLineAndShapeRenderer) plot.getRenderer();
       renderer.setBaseShapesVisible(true);
       renderer.setBaseShapesFilled(true);

       // change the auto tick unit selection to integer units only...
       NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
       rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
       // OPTIONAL CUSTOMISATION COMPLETED.

       return chart;

}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:44,代码来源:SuperXYChart_QQ_DD.java

示例15: createChart

import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; //导入方法依赖的package包/类
/**
    * Creates a chart.
    * 
    * @param dataset  the dataset.
    * 
    * @return a chart.
    */
   protected JFreeChart createChart(XYDataset dataset) {
        // create the chart...
       JFreeChart chart = ChartFactory.createXYLineChart(
           chartTitle,      // chart title
           "X",                      // x axis label
           "Y",                      // y axis label
           dataset,                  // data
           PlotOrientation.VERTICAL,
           !legendPanelOn,                     // include legend
           true,                     // tooltips
           false                     // urls
       );

       // NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...
       chart.setBackgroundPaint(Color.white);
       
       // get a reference to the plot for further customisation...
       XYPlot plot = (XYPlot) chart.getPlot();
       plot.setBackgroundPaint(Color.lightGray);
       plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
       plot.setDomainGridlinePaint(Color.white);
       plot.setRangeGridlinePaint(Color.white);
       
       XYLineAndShapeRenderer renderer 
           = (XYLineAndShapeRenderer) plot.getRenderer();
       renderer.setBaseShapesVisible(true);
       renderer.setBaseShapesFilled(true);

       // change the auto tick unit selection to integer units only...
       NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
       rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
       // OPTIONAL CUSTOMISATION COMPLETED.
               
       return chart;
 
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:44,代码来源:SuperXYChart.java


注:本文中的org.jfree.chart.renderer.xy.XYLineAndShapeRenderer.setBaseShapesVisible方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。