Class JfcPlotUtils
java.lang.Object
com.illumon.iris.db.plot.builders.jfreechart.JfcPlotUtils
Plotting utilities for JFreeChart.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jfree.chart.labels.StandardCategoryToolTipGeneratorgetCategoryToolTipGenerator(AxisFormat yAxisFormat, String pointLabelFormat, String yToolTipPattern) static PaintgetItemPaint(CategoryDataSetCollection series, int row, int col, Paint defaultPaint) Gets the color of the specified data point.static PaintgetItemPaint(DataSetCollection<? extends XYDataSeriesInternal> collection, int row, int col, Paint defaultPaint) Gets the color of the specified data point.static PaintgetItemPaint(XYDataSeriesInternal s, int col, Paint defaultPaint) Gets the color of the specified data point.static ShapegetItemShape(DataSetCollection<? extends XYDataSeriesInternal> collection, int row, int col, Shape defaultShape) Gets the shape of the specified data point.static NumberFormatgetNumberFormat(AxisFormat axisFormat, String toolTipPattern) static org.jfree.data.RangegetStackedRangeBounds(org.jfree.data.category.CategoryDataset dataset) Computes stacked range forCategoryDatasetby considering visible points onlystatic org.jfree.data.RangegetStackedRangeBounds(org.jfree.data.category.CategoryDataset dataset, org.jfree.data.KeyToGroupMap map) Computes stacked range forCategoryDatasetby considering visible points onlystatic org.jfree.data.RangegetStackedRangeBounds(org.jfree.data.xy.TableXYDataset dataset) Computes stacked range forTableXYDatasetby considering visible points onlystatic org.jfree.chart.labels.StandardXYToolTipGeneratorgetXYToolTipGenerator(AxisFormat xAxisFormat, AxisFormat yAxisFormat, String pointLabelFormat, String xToolTipPattern, String yToolTipPattern) Gets aStandardXYToolTipGeneratorsuitable for the given inputs.static booleanisNormalizedRange(org.jfree.data.Range range)
-
Constructor Details
-
JfcPlotUtils
public JfcPlotUtils()
-
-
Method Details
-
getItemPaint
public static Paint getItemPaint(CategoryDataSetCollection series, int row, int col, Paint defaultPaint) Gets the color of the specified data point. ThedefaultPaintis used if null.- Parameters:
series- datarow- series indexcol- item indexdefaultPaint- default paint- Returns:
- color of the data point
-
getItemPaint
public static Paint getItemPaint(DataSetCollection<? extends XYDataSeriesInternal> collection, int row, int col, Paint defaultPaint) Gets the color of the specified data point. ThedefaultPaintis used if null.- Parameters:
collection- datarow- series indexcol- item indexdefaultPaint- default paint- Returns:
- color of the data point
-
getItemPaint
Gets the color of the specified data point. ThedefaultPaintis used if null.- Parameters:
s- data seriescol- item indexdefaultPaint- default paint- Returns:
- color of the data point
-
getItemShape
public static Shape getItemShape(DataSetCollection<? extends XYDataSeriesInternal> collection, int row, int col, Shape defaultShape) Gets the shape of the specified data point. ThedefaultShapeis used if null.- Parameters:
collection- datarow- series indexcol- item indexdefaultShape- default shape- Returns:
- shape of the data point
-
getXYToolTipGenerator
public static org.jfree.chart.labels.StandardXYToolTipGenerator getXYToolTipGenerator(AxisFormat xAxisFormat, AxisFormat yAxisFormat, String pointLabelFormat, String xToolTipPattern, String yToolTipPattern) Gets aStandardXYToolTipGeneratorsuitable for the given inputs.If an
AxisFormatis aNanosAxisFormat, the generator will use aNanosAxisFormat.NanosFormatfor that axis. Otherwise, aDecimalFormatis used.- Parameters:
xAxisFormat-AxisFormatfor the x-axisyAxisFormat-AxisFormatfor the y-axispointLabelFormat- point label format StringxToolTipPattern- tooltip format String for x-valuesyToolTipPattern- tooltip format String for y-values- Returns:
StandardXYToolTipGeneratorsuitable for the given inputs.
-
getNumberFormat
-
getCategoryToolTipGenerator
public static org.jfree.chart.labels.StandardCategoryToolTipGenerator getCategoryToolTipGenerator(AxisFormat yAxisFormat, String pointLabelFormat, String yToolTipPattern) -
isNormalizedRange
public static boolean isNormalizedRange(org.jfree.data.Range range) -
getStackedRangeBounds
public static org.jfree.data.Range getStackedRangeBounds(org.jfree.data.xy.TableXYDataset dataset) Computes stacked range forTableXYDatasetby considering visible points only- Parameters:
dataset- Dataset for which the range needs to be computed- Returns:
- stacked org.jfree.data.Range for the dataset
-
getStackedRangeBounds
public static org.jfree.data.Range getStackedRangeBounds(org.jfree.data.category.CategoryDataset dataset) Computes stacked range forCategoryDatasetby considering visible points only- Parameters:
dataset- Dataset for which the range needs to be computed- Returns:
- stacked org.jfree.data.Range for the dataset
-
getStackedRangeBounds
public static org.jfree.data.Range getStackedRangeBounds(org.jfree.data.category.CategoryDataset dataset, org.jfree.data.KeyToGroupMap map) Computes stacked range forCategoryDatasetby considering visible points only- Parameters:
dataset- Dataset for which the range needs to be computed- Returns:
- stacked org.jfree.data.Range for the dataset
-