java.lang.Object
de.edgesoft.edgeutils.xchart.ChartFactory
public class ChartFactory
extends java.lang.Object
Class providing methods for creating xcharts.
Legal stuff
Copyright 2010-2020 Ekkart Kleinod ekleinod@edgesoft.de
This file is part of edgeutils.
edgeutils is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
edgeutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with edgeutils. If not, see http://www.gnu.org/licenses/.
- Since:
- 0.10.0
- Author:
- Ekkart Kleinod
-
Constructor Summary
Constructors Constructor Description ChartFactory() -
Method Summary
Modifier and Type Method Description static org.knowm.xchart.CategoryChartcreateCategoryChart(java.lang.String theTitle, int theHeight, int theWidth, java.util.Optional<org.knowm.xchart.CategorySeries.CategorySeriesRenderStyle> theCategorySeriesRenderStyle, java.util.Optional<Colorschemes> theColorscheme)Returns step chart.static org.knowm.xchart.PieChartcreatePieChart(java.lang.String theTitle, int theHeight, int theWidth, java.util.Optional<org.knowm.xchart.style.PieStyler.AnnotationType> theAnnotationType, java.util.Optional<Colorschemes> theColorscheme)Returns pie chart.static org.knowm.xchart.XYChartcreateXYChart(java.lang.String theTitle, int theHeight, int theWidth, java.util.Optional<Colorschemes> theColorscheme)Returns xy chart.
-
Constructor Details
-
ChartFactory
public ChartFactory()
-
-
Method Details
-
createPieChart
public static org.knowm.xchart.PieChart createPieChart(java.lang.String theTitle, int theHeight, int theWidth, java.util.Optional<org.knowm.xchart.style.PieStyler.AnnotationType> theAnnotationType, java.util.Optional<Colorschemes> theColorscheme)Returns pie chart.- Parameters:
theTitle- chart titletheHeight- heighttheWidth- widththeAnnotationType- annotation type (optional)theColorscheme- color scheme (optional)- Returns:
- pie chart
-
createXYChart
public static org.knowm.xchart.XYChart createXYChart(java.lang.String theTitle, int theHeight, int theWidth, java.util.Optional<Colorschemes> theColorscheme)Returns xy chart.- Parameters:
theTitle- chart titletheHeight- heighttheWidth- widththeColorscheme- color scheme (optional)- Returns:
- xy chart
-
createCategoryChart
public static org.knowm.xchart.CategoryChart createCategoryChart(java.lang.String theTitle, int theHeight, int theWidth, java.util.Optional<org.knowm.xchart.CategorySeries.CategorySeriesRenderStyle> theCategorySeriesRenderStyle, java.util.Optional<Colorschemes> theColorscheme)Returns step chart.- Parameters:
theTitle- chart titletheHeight- heighttheWidth- widththeCategorySeriesRenderStyle- render style (optional)theColorscheme- color scheme (optional)- Returns:
- step chart as category chart
-