T
- the parameterization lower bounded by PlotContext
itself.P
- the Plot
type.public interface PlotContext<T extends PlotContext<T,P>,P extends Plot<P>>
Plot
s.Modifier and Type | Method and Description |
---|---|
P |
addPlot(Plottable plottable)
Creates a
Plot at the given coordinates. |
P |
addPlot(RealArray... datasets)
Creates a
Plot at the given coordinates. |
T |
setFont(String fontName,
int fontSize)
Sets the font and size.
|
T |
setOutputFormat(String outputFormat)
Sets the output format.
|
T |
setOutputSize(int outputWidth,
int outputHeight)
Sets the output size.
|
void |
toFile(File file)
Exports to a file.
|
P addPlot(Plottable plottable)
Plot
at the given coordinates.plottable
- the Plottable
.P addPlot(RealArray... datasets)
Plot
at the given coordinates.datasets
- the datasets.void toFile(File file) throws IOException
file
- the file.IOException
- when something goes awry.T setFont(String fontName, int fontSize)
fontName
- the font name.fontSize
- the font size.T setOutputFormat(String outputFormat)
outputFormat
- the output format.T setOutputSize(int outputWidth, int outputHeight)
outputWidth
- the output width.outputHeight
- the output height.