public class JFreeScatterPlot extends java.lang.Object implements ScatterPeriodPlot
Constructor and Description |
---|
JFreeScatterPlot(java.lang.String label,
SplitTimePeriod period,
int nsplit) |
Modifier and Type | Method and Description |
---|---|
void |
addData(Plot plot)
add the data from another plot of the same type as this one.
|
<D> void |
addData(RangeMapper<D> x,
RangeMapper<D> y,
D object)
Basic method for mapping an object into the plot.
|
void |
addPoint(float x,
float y) |
void |
scale(float scale)
rescale all the data by a factor
|
void |
setLabel(java.lang.String key) |
public JFreeScatterPlot(java.lang.String label, SplitTimePeriod period, int nsplit)
public <D> void addData(RangeMapper<D> x, RangeMapper<D> y, D object) throws InvalidTransformException
ScatterPeriodPlot
Note that the same interface can be used to map individual records or to query a factory for a required period.
addData
in interface ScatterPeriodPlot
x
- A RangeMapper
to generate the X coordinatey
- A RangeMapper
to generate the Y coordinateInvalidTransformException
public void setLabel(java.lang.String key)
setLabel
in interface ScatterPeriodPlot
public void scale(float scale)
Plot
public void addPoint(float x, float y)
addPoint
in interface ScatterPeriodPlot