public class ProfileNLineGraphs2D extends ProfileGraph2D<MultiAxisLineGraph2DRenderer,List<Point2DDataset>>
MultiAxisLineGraph2DRenderer
when drawing separateAreas graphs.
Takes a Point2DDataset
dataset and repeatedly renders
through a Point2DDataset
.data, LOG_FILEPATH, renderer
Constructor and Description |
---|
ProfileNLineGraphs2D() |
Modifier and Type | Method and Description |
---|---|
void |
createDatasetMessage()
Creates a dataset message to output the number of graphs.
|
protected List<Point2DDataset> |
getDataset()
The data that to be rendered in the render loop.
|
String |
getGraphTitle()
Gets the type of graph renderer.
|
int |
getNumGraphs()
Gets the number of graphs for the renderer.
|
protected MultiAxisLineGraph2DRenderer |
getRenderer(int imageWidth,
int imageHeight)
The renderer used in the render loop.
|
LinkedHashMap<String,Graph2DRendererUpdate> |
getVariations()
Gets the updates associated with the renderer in a map, linking a
description of the update to the update object.
|
protected void |
render(Graphics2D graphics,
MultiAxisLineGraph2DRenderer renderer,
List<Point2DDataset> data)
The primary method in the profiling render loop.
|
void |
setNumDataPoints(int numData)
Sets the size of the data set.
|
void |
setNumGraphs(int numGraphs)
Sets the number of graphs for the renderer.
|
getLogFileName, getNumDataPoints, getProfileTitle, getRenderSettings, getResolution, getSaveSettings, iterationAction, postIterationAction, preLoopAction, saveImage, saveStatistics
getProfileSettings, getStatistics, graphStatistics, printStatistics, profile, saveStatistics
public int getNumGraphs()
public final void setNumGraphs(int numGraphs)
numGraphs
- number of graphs being renderedpublic void setNumDataPoints(int numData)
ProfileGraph2D
setNumDataPoints
in class ProfileGraph2D<MultiAxisLineGraph2DRenderer,List<Point2DDataset>>
numData
- size of the data set in renderingpublic final void createDatasetMessage()
protected List<Point2DDataset> getDataset()
ProfileGraph2D
getDataset
in class ProfileGraph2D<MultiAxisLineGraph2DRenderer,List<Point2DDataset>>
protected MultiAxisLineGraph2DRenderer getRenderer(int imageWidth, int imageHeight)
ProfileGraph2D
getRenderer()
is capable of rendering getDataset()
.
Thus type T
is capable of rendering type S
.getRenderer
in class ProfileGraph2D<MultiAxisLineGraph2DRenderer,List<Point2DDataset>>
imageWidth
- pixel width of rendered imageimageHeight
- pixel height of rendered imageGraph2DRenderer
associated with data Sprotected void render(Graphics2D graphics, MultiAxisLineGraph2DRenderer renderer, List<Point2DDataset> data)
ProfileGraph2D
render
in class ProfileGraph2D<MultiAxisLineGraph2DRenderer,List<Point2DDataset>>
graphics
- where image draws torenderer
- what draws the imagedata
- what is drawnpublic LinkedHashMap<String,Graph2DRendererUpdate> getVariations()
getVariations
in class ProfileGraph2D<MultiAxisLineGraph2DRenderer,List<Point2DDataset>>
public String getGraphTitle()
ProfileGraph2D
getGraphTitle
in class ProfileGraph2D<MultiAxisLineGraph2DRenderer,List<Point2DDataset>>
Copyright © 2015. All rights reserved.