本文整理了Java中org.knowm.xchart.XYChart.setTitle()
方法的一些代码示例,展示了XYChart.setTitle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYChart.setTitle()
方法的具体详情如下:
包路径:org.knowm.xchart.XYChart
类名称:XYChart
方法名:setTitle
暂无
代码示例来源:origin: knowm/XChart
/**
* Constructor
*
* @param chartBuilder
*/
public XYChart(XYChartBuilder chartBuilder) {
this(chartBuilder.width, chartBuilder.height, chartBuilder.chartTheme);
setTitle(chartBuilder.title);
setXAxisTitle(chartBuilder.xAxisTitle);
setYAxisTitle(chartBuilder.yAxisTitle);
}
代码示例来源:origin: knowm/XChart
private static XYChart createChart(String title, double[] yData) {
XYChart chart = new XYChart(300, 200);
chart.setTitle(title);
chart.setXAxisTitle("X");
chart.setXAxisTitle("Y");
chart.addSeries("y(x)", null, yData);
return chart;
}
}
代码示例来源:origin: knowm/XChart
chart.setTitle("TEst");
chart.getStyler().setLegendVisible(false);
new SwingWrapper(chart).displayChart();
代码示例来源:origin: knowm/XChart
chart.setTitle("Default data labels");
chart.getStyler().setToolTipsEnabled(true);
charts.add(chart);
chart.setTitle("No data label");
charts.add(chart);
chart.getStyler().setToolTipBackgroundColor(Color.RED);
chart.getStyler().setToolTipType(Styler.ToolTipType.yLabels);
chart.setTitle("Red background");
charts.add(chart);
chart.getStyler().setToolTipBorderColor(Color.BLUE);
chart.getStyler().setToolTipFont(new Font(Font.MONOSPACED, Font.PLAIN, 20));
chart.setTitle("Blue and custom Font");
charts.add(chart);
代码示例来源:origin: knowm/XChart
chart.setTitle("AreaChart01 - custom x&y axis labels");
charts.add(chart);
chart.setTitle("Day scale - x axis labels on every data point");
代码示例来源:origin: knowm/XChart
chart.setTitle(chartTitle);
chart.setXAxisTitle(xTitle);
chart.setYAxisTitle(yTitle);
chart.setTitle(chartTitle);
chart.setXAxisTitle(xTitle);
chart.setYAxisTitle(yTitle);
代码示例来源:origin: jMetal/jMetal
@Override
synchronized public void measureGenerated(Long iteration) {
if (this.chart != null) {
this.chart.getFrontChart().setTitle("Iteration: " + iteration);
}
}
}
代码示例来源:origin: jMetal/jMetal
@Override
synchronized public void measureGenerated(Long iteration) {
if (this.chart != null) {
this.chart.getFrontChart().setTitle("Iteration: " + iteration);
}
}
}
代码示例来源:origin: jMetal/jMetal
@Override
synchronized public void measureGenerated(Long iteration) {
if (this.chart != null) {
this.chart.getFrontChart().setTitle("Iteration: " + iteration);
}
}
}
代码示例来源:origin: jMetal/jMetal
public ChartListener(ChartContainer chart) {
this.chart = chart;
this.chart.getFrontChart().setTitle("Iteration: " + this.iteration);
}
代码示例来源:origin: jMetal/jMetal
public ChartListener(ChartContainer chart) {
this.chart = chart;
this.chart.getFrontChart().setTitle("Iteration: " + this.iteration);
}
代码示例来源:origin: jMetal/jMetal
public IterationListener(ChartContainer chart) {
this.chart = chart;
this.chart.getFrontChart().setTitle("Iteration: " + 0);
}
代码示例来源:origin: jMetal/jMetal
public ChartListener(ChartContainer chart) {
this.chart = chart;
this.chart.getFrontChart().setTitle("Iteration: " + this.iteration);
}
代码示例来源:origin: jMetal/jMetal
public ChartListener(ChartContainerWithReferencePoints chart) {
this.chart = chart;
this.chart.getFrontChart().setTitle("Iteration: " + this.iteration);
}
代码示例来源:origin: jMetal/jMetal
public ChartListener(ChartContainer chart) {
this.chart = chart;
this.chart.getFrontChart().setTitle("Iteration: " + this.iteration);
}
代码示例来源:origin: knowm/XChart
public static void main(String[] args) throws Exception {
double[] yData = new double[] {2.0, 1.0, 0.0};
// Create Chart
XYChart chart = new XYChart(500, 400);
chart.setTitle("Sample Chart");
chart.setXAxisTitle("X");
chart.setXAxisTitle("Y");
XYSeries series = chart.addSeries("y(x)", null, yData);
series.setMarker(SeriesMarkers.CIRCLE);
BitmapEncoder.saveBitmap(chart, "./Sample_Chart", BitmapFormat.PNG);
BitmapEncoder.saveBitmap(chart, "./Sample_Chart", BitmapFormat.JPG);
BitmapEncoder.saveJPGWithQuality(chart, "./Sample_Chart_With_Quality.jpg", 0.95f);
BitmapEncoder.saveBitmap(chart, "./Sample_Chart", BitmapFormat.BMP);
BitmapEncoder.saveBitmap(chart, "./Sample_Chart", BitmapFormat.GIF);
BitmapEncoder.saveBitmapWithDPI(chart, "./Sample_Chart_300_DPI", BitmapFormat.PNG, 300);
BitmapEncoder.saveBitmapWithDPI(chart, "./Sample_Chart_300_DPI", BitmapFormat.JPG, 300);
BitmapEncoder.saveBitmapWithDPI(chart, "./Sample_Chart_300_DPI", BitmapFormat.GIF, 300);
VectorGraphicsEncoder.saveVectorGraphic(chart, "./Sample_Chart", VectorGraphicsFormat.EPS);
VectorGraphicsEncoder.saveVectorGraphic(chart, "./Sample_Chart", VectorGraphicsFormat.PDF);
VectorGraphicsEncoder.saveVectorGraphic(chart, "./Sample_Chart", VectorGraphicsFormat.SVG);
}
}
代码示例来源:origin: jMetal/jMetal
private void refreshChart(List<DoubleSolution> solutionList) {
if (this.chart != null) {
iteration++;
this.chart.getFrontChart().setTitle("Iteration: " + this.iteration);
this.chart.updateFrontCharts(solutionList);
this.chart.refreshCharts();
}
}
代码示例来源:origin: jMetal/jMetal
private void refreshChart(List<DoubleSolution> solutionList) {
if (this.chart != null) {
iteration++;
this.chart.getFrontChart().setTitle("Iteration: " + this.iteration);
this.chart.updateFrontCharts(solutionList);
this.chart.refreshCharts();
}
}
代码示例来源:origin: jMetal/jMetal
private void refreshChart(List<DoubleSolution> solutionList) {
if (this.chart != null) {
iteration++;
this.chart.getFrontChart().setTitle("Iteration: " + this.iteration);
this.chart.updateFrontCharts(solutionList);
this.chart.refreshCharts();
}
}
代码示例来源:origin: jMetal/jMetal
private void refreshChart(List<DoubleSolution> solutionList) {
if (this.chart != null) {
iteration++;
this.chart.getFrontChart().setTitle("Iteration: " + this.iteration);
this.chart.updateFrontCharts(solutionList);
this.chart.refreshCharts();
new SolutionListOutput(solutionList)
.setSeparator("\t")
.setVarFileOutputContext(new DefaultFileOutputContext("VAR." + iteration + ".tsv"))
.setFunFileOutputContext(new DefaultFileOutputContext("FUN." + iteration + ".tsv"))
.print();
}
}
内容来源于网络,如有侵权,请联系作者删除!