public class ProfileLineGraph2D extends ProfileGraph2D<LineGraph2DRenderer,Point2DDataset>
LineGraph2DRenderer
.
Takes a Point2DDataset
dataset and repeatedly renders through a LineGraph2DRenderer
.data, LOG_FILEPATH, renderer
Constructor and Description |
---|
ProfileLineGraph2D() |
Modifier and Type | Method and Description |
---|---|
protected Point2DDataset |
getDataset()
Gets a set of random Gaussian 2D point data.
|
String |
getGraphTitle()
Returns the name of the graph being profiled.
|
protected LineGraph2DRenderer |
getRenderer(int imageWidth,
int imageHeight)
Returns 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,
LineGraph2DRenderer renderer,
Point2DDataset data)
Draws the 2D point data in a line graph.
|
getLogFileName, getNumDataPoints, getProfileTitle, getRenderSettings, getResolution, getSaveSettings, iterationAction, postIterationAction, preLoopAction, saveImage, saveStatistics, setNumDataPoints
getProfileSettings, getStatistics, graphStatistics, printStatistics, profile, saveStatistics
protected Point2DDataset getDataset()
getDataset
in class ProfileGraph2D<LineGraph2DRenderer,Point2DDataset>
Point2DDataset
dataprotected LineGraph2DRenderer getRenderer(int imageWidth, int imageHeight)
LineGraph2DRenderer
.getRenderer
in class ProfileGraph2D<LineGraph2DRenderer,Point2DDataset>
imageWidth
- width of rendered image in pixelsimageHeight
- height of rendered image in pixelsprotected void render(Graphics2D graphics, LineGraph2DRenderer renderer, Point2DDataset data)
render
in class ProfileGraph2D<LineGraph2DRenderer,Point2DDataset>
graphics
- where image draws torenderer
- what draws the imagedata
- the 2D point data being drawnpublic String getGraphTitle()
getGraphTitle
in class ProfileGraph2D<LineGraph2DRenderer,Point2DDataset>
LineGraph2DRenderer
titlepublic LinkedHashMap<String,Graph2DRendererUpdate> getVariations()
getVariations
in class ProfileGraph2D<LineGraph2DRenderer,Point2DDataset>
Copyright © 2015. All rights reserved.