public class ScatterCharts
extends java.lang.Object
ScatterChart instances| Modifier and Type | Method and Description |
|---|---|
static double |
computeMaxX(ScatterChart scatterChart)
Returns the minimum x-coordinate that appears in the given
chart.
|
static double |
computeMaxY(ScatterChart scatterChart)
Returns the maximum y-coordinate that appears in the given
chart.
|
static double |
computeMinX(ScatterChart scatterChart)
Returns the minimum x-coordinate that appears in the given
chart.
|
static double |
computeMinY(ScatterChart scatterChart)
Returns the minimum y-coordinate that appears in the given
chart.
|
static ScatterChart |
create(java.util.List<? extends java.lang.Number> xCoordinates,
java.util.List<? extends java.lang.Number> yCoordinates,
java.awt.Paint paint,
java.awt.Shape shape)
Create a
ScatterChart that is a view on the given lists of
point coordinates. |
static ScatterChart |
create(java.util.List<? extends java.awt.geom.Point2D> points,
java.awt.Paint paint,
java.awt.Shape shape)
Create a
ScatterChart that is a view on the given list of
points. |
public static ScatterChart create(java.util.List<? extends java.awt.geom.Point2D> points, java.awt.Paint paint, java.awt.Shape shape)
ScatterChart that is a view on the given list of
points. Changes in the given list will be visible in the returned
chart.points - The list of pointspaint - The paint for the points. If this is null,
then no points will be painted.shape - The shape for the points. If this is null,
then no points will be painted.ScatterChartjava.lang.NullPointerException - If the given list is nullpublic static ScatterChart create(java.util.List<? extends java.lang.Number> xCoordinates, java.util.List<? extends java.lang.Number> yCoordinates, java.awt.Paint paint, java.awt.Shape shape)
ScatterChart that is a view on the given lists of
point coordinates. Changes in the given lists will be visible in
the returned chart, but care has to be taken that the lists always
have the same size.xCoordinates - The list of x-coordinatesyCoordinates - The list of y-coordinatespaint - The paint for the points. If this is null,
then no points will be painted.shape - The shape for the points. If this is null,
then no points will be painted.ScatterChartjava.lang.NullPointerException - If any of the given lists is
nulljava.lang.IllegalArgumentException - If the given lists have a different
size. This can only be checked at creation time.public static double computeMinX(ScatterChart scatterChart)
POSITIVE_INFINITY if the chart is
empty.scatterChart - The ScatterChartpublic static double computeMinY(ScatterChart scatterChart)
POSITIVE_INFINITY if the chart is
empty.scatterChart - The ScatterChartpublic static double computeMaxX(ScatterChart scatterChart)
NEGATIVE_INFINITY if the chart is
empty.scatterChart - The ScatterChartpublic static double computeMaxY(ScatterChart scatterChart)
NEGATIVE_INFINITY if the chart is
empty.scatterChart - The ScatterChartCopyright © 2019. All Rights Reserved.