public class LineTimeGraph2DRenderer extends TemporalGraph2DRenderer<LineTimeGraph2DRendererUpdate>
Modifier and Type | Field and Description |
---|---|
static List<InterpolationScheme> |
supportedInterpolationScheme |
backgroundColor, bottomAreaMargin, bottomMargin, g, labelColor, labelFont, labelFontMetrics, leftAreaMargin, leftMargin, normalizedTimeReferences, referenceLineColor, rightAreaMargin, rightMargin, timeReferenceLabels, timeReferences, topAreaMargin, topMargin, valueReferenceLabels, valueReferences, xAreaEnd, xAreaStart, xLabelMargin, xPlotCoordEnd, xPlotCoordStart, xPlotCoordWidth, xPlotValueEnd, xPlotValueStart, xReferenceCoords, xRow2LabelMargin, yAreaEnd, yAreaStart, yLabelMargin, yPlotCoordEnd, yPlotCoordHeight, yPlotCoordStart, yPlotValueEnd, yPlotValueStart, yReferenceCoords
Constructor and Description |
---|
LineTimeGraph2DRenderer(int imageWidth,
int imageHeight)
Creates a new line graph renderer.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g,
TimeSeriesDataset data)
Draws the graph on the given graphics context.
|
InterpolationScheme |
getInterpolation()
The current interpolation used for the line.
|
LineTimeGraph2DRendererUpdate |
newUpdate()
Creates a new update for the given graph.
|
void |
update(LineTimeGraph2DRendererUpdate update)
Applies the update to the renderer.
|
calculateGraphArea, calculateRanges, drawBackground, drawGraphArea, drawHorizontalReferenceLines, drawValueLine, drawVerticalReferenceLines, drawXLabels, drawYLabels, getAggregatedRange, getAggregatedTimeInterval, getAxisRange, getImageHeight, getImageWidth, getPlotRange, getPlotTimeInterval, getTimeAxisRange, scaledX, scaledY, setClip
public static List<InterpolationScheme> supportedInterpolationScheme
public LineTimeGraph2DRenderer(int imageWidth, int imageHeight)
imageWidth
- the graph widthimageHeight
- the graph heightpublic LineTimeGraph2DRendererUpdate newUpdate()
TemporalGraph2DRenderer
newUpdate
in class TemporalGraph2DRenderer<LineTimeGraph2DRendererUpdate>
public InterpolationScheme getInterpolation()
public void update(LineTimeGraph2DRendererUpdate update)
TemporalGraph2DRenderer
When sub-classing, one should re-implement this method by first calling it and then applying all the updates specific to the sub-class.
update
in class TemporalGraph2DRenderer<LineTimeGraph2DRendererUpdate>
update
- the update to applypublic void draw(Graphics2D g, TimeSeriesDataset data)
g
- the graphics on which to display the datadata
- the data to displayCopyright © 2015. All rights reserved.