本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}