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


Java DrawingSupplier.getNextShape方法代码示例

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


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

示例1: getSeriesShape

import org.jfree.chart.plot.DrawingSupplier; //导入方法依赖的package包/类
/**
 * Returns a shape used to represent the items in a series.
 *
 * @param series  the series (zero-based index).
 *
 * @return The shape (never <code>null</code>).
 */
public Shape getSeriesShape(int series) {

    // return the override, if there is one...
    if (this.shape != null) {
        return this.shape;
    }

    // otherwise look up the shape list
    Shape result = this.shapeList.getShape(series);
    if (result == null) {
        DrawingSupplier supplier = getDrawingSupplier();
        if (supplier != null) {
            result = supplier.getNextShape();
            this.shapeList.setShape(series, result);
        }
        else {
            result = this.baseShape;
        }
    }
    return result;

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

示例2: lookupSeriesShape

import org.jfree.chart.plot.DrawingSupplier; //导入方法依赖的package包/类
/**
 * Returns a shape used to represent the items in a series.
 *
 * @param series  the series (zero-based index).
 *
 * @return The shape (never <code>null</code>).
 *
 * @since 1.0.6
 */
public Shape lookupSeriesShape(int series) {

    // return the override, if there is one...
    if (this.shape != null) {
        return this.shape;
    }

    // otherwise look up the shape list
    Shape result = getSeriesShape(series);
    if (result == null && this.autoPopulateSeriesShape) {
        DrawingSupplier supplier = getDrawingSupplier();
        if (supplier != null) {
            result = supplier.getNextShape();
            setSeriesShape(series, result, false);
        }
    }
    if (result == null) {
        result = this.baseShape;
    }
    return result;

}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:32,代码来源:AbstractRenderer.java

示例3: lookupSeriesShape

import org.jfree.chart.plot.DrawingSupplier; //导入方法依赖的package包/类
/**
 * Returns a shape used to represent the items in a series.
 *
 * @param series  the series (zero-based index).
 *
 * @return The shape (never {@code null}).
 *
 * @since 1.0.6
 */
public Shape lookupSeriesShape(int series) {

    Shape result = getSeriesShape(series);
    if (result == null && this.autoPopulateSeriesShape) {
        DrawingSupplier supplier = getDrawingSupplier();
        if (supplier != null) {
            result = supplier.getNextShape();
            setSeriesShape(series, result, false);
        }
    }
    if (result == null) {
        result = this.defaultShape;
    }
    return result;

}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:26,代码来源:AbstractRenderer.java

示例4: lookupSeriesShape

import org.jfree.chart.plot.DrawingSupplier; //导入方法依赖的package包/类
/**
 * Returns a shape used to represent the items in a series.
 *
 * @param series  the series (zero-based index).
 *
 * @return The shape (never <code>null</code>).
 *
 * @since 1.0.6
 */
public Shape lookupSeriesShape(int series) {

    // look up the shape list
    Shape result = getSeriesShape(series);
    if (result == null && this.autoPopulateSeriesShape) {
        DrawingSupplier supplier = getDrawingSupplier();
        if (supplier != null) {
            result = supplier.getNextShape();
            setSeriesShape(series, result, false);
        }
    }
    if (result == null) {
        result = this.baseShape;
    }
    return result;

}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:27,代码来源:AbstractRenderer.java

示例5: init

import org.jfree.chart.plot.DrawingSupplier; //导入方法依赖的package包/类
public void init(){
	CLEAR_BUTTON = false;
	LEGEND_SWITCH= false;
	//DefaultDrawingSupplier supplier = new DefaultDrawingSupplier();
	DrawingSupplier supplier = new DefaultDrawingSupplier(
            DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE,
            DefaultDrawingSupplier.DEFAULT_OUTLINE_PAINT_SEQUENCE,
            DefaultDrawingSupplier.DEFAULT_STROKE_SEQUENCE,
            DefaultDrawingSupplier.DEFAULT_OUTLINE_STROKE_SEQUENCE,
            DefaultDrawingSupplier.DEFAULT_SHAPE_SEQUENCE
        );
	//series_shapes = supplier.createStandardSeriesShapes();
	
	//color_mainGroup = supplier.getNextPaint(); //moved to EM
	for (int i=0; i<10; i++){
		//color_kernels[i] = supplier.getNextPaint();
		//series_strokes[i] = supplier.getNextStroke();
		series_shapes[i] = supplier.getNextShape();
	}
	
	series_strokes[0] =new BasicStroke(1.0f, BasicStroke.CAP_SQUARE, 
			                    BasicStroke.JOIN_BEVEL);
	
	series_strokes[1] =new BasicStroke(2.0f, BasicStroke.CAP_SQUARE, 
               BasicStroke.JOIN_BEVEL);
	
	series_strokes[2] =new BasicStroke(3.0f, BasicStroke.CAP_SQUARE, 
               BasicStroke.JOIN_BEVEL);
	
	series_strokes[3] = new BasicStroke(
               1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 
               1.0f, new float[] {10.0f, 6.0f}, 0.0f
           );
	series_strokes[4] = new BasicStroke(
               2.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 
               1.0f, new float[] {10.0f, 6.0f}, 0.0f
           );
	
	series_strokes[5] = new BasicStroke(
               3.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 
               1.0f, new float[] {10.0f, 6.0f}, 0.0f
           );
	series_strokes[6]= new BasicStroke(
               1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND,
               1.0f, new float[] {6.0f, 6.0f}, 0.0f
           );
	series_strokes[7]= new BasicStroke(
               2.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND,
               1.0f, new float[] {6.0f, 6.0f}, 0.0f
           );
	series_strokes[8]= new BasicStroke(
               3.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND,
               1.0f, new float[] {6.0f, 6.0f}, 0.0f
           );
	
	series_strokes[9]= new BasicStroke(
               2.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND,
               1.0f, new float[] {2.0f, 6.0f}, 0.0f
           );
		
	controlPanel = new JPanel();
	modelAllSelected = TOGETHER; 
	num_series=1;
	mEMexperiment  = new MixtureEMExperiment[num_series];
	mEMexperiment[0] = new MixtureEMExperiment();
	resultsTables= new CustomJTable[num_series];
	resultsTables[0] = mEMexperiment[0].getResultsTable();
	
	initControlPanel();
	//initResutlsTable();
	SHOW_STATUS_TEXTAREA = false;

	super.init();

	indLabel = new JLabel("X");
	depLabel = new JLabel("Y");
	
	mEMexperiment[0].resetSize();
	
	packControlArea();
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:82,代码来源:SOCR_EM_MixtureModelChartDemo.java


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