public class LineGraph2DRenderer extends Graph2DRenderer<LineGraph2DRendererUpdate>
| Modifier and Type | Field and Description |
|---|---|
static List<InterpolationScheme> |
supportedInterpolationScheme |
static List<ReductionScheme> |
supportedReductionScheme |
backgroundColor, bottomAreaMargin, bottomMargin, g, labelColor, labelFont, labelFontMetrics, leftAreaMargin, leftMargin, referenceLineColor, rightAreaMargin, rightMargin, topAreaMargin, topMargin, xAreaEnd, xAreaStart, xLabelMargin, xPlotCoordEnd, xPlotCoordStart, xPlotCoordWidth, xPlotValueEnd, xPlotValueStart, xReferenceCoords, xReferenceLabels, xReferenceValues, yAreaEnd, yAreaStart, yLabelMargin, yPlotCoordEnd, yPlotCoordHeight, yPlotCoordStart, yPlotValueEnd, yPlotValueStart, yReferenceCoords, yReferenceLabels, yReferenceValues| Constructor and Description |
|---|
LineGraph2DRenderer(int imageWidth,
int imageHeight)
Creates a new line graph renderer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g,
Point2DDataset data)
Draws the graph on the given graphics context.
|
Integer |
getFocusPixelX() |
int |
getFocusValueIndex() |
InterpolationScheme |
getInterpolation()
The current interpolation used for the line.
|
boolean |
isHighlightFocusValue() |
LineGraph2DRendererUpdate |
newUpdate()
Creates a new update for the given graph.
|
protected void |
processScaledValue(int index,
double valueX,
double valueY,
double scaledX,
double scaledY) |
void |
update(LineGraph2DRendererUpdate update)
Applies the update to the renderer.
|
calculateGraphArea, calculateRanges, drawBackground, drawGraphArea, drawHorizontalReferenceLines, drawValueExplicitLine, drawValueLine, drawVerticalReferenceLines, drawXLabels, drawYLabels, getImageHeight, getImageWidth, getXAggregatedRange, getXAxisRange, getXPlotRange, getYAggregatedRange, getYAxisRange, getYPlotRange, scaledX, scaledY, setClippublic static List<InterpolationScheme> supportedInterpolationScheme
public static List<ReductionScheme> supportedReductionScheme
public LineGraph2DRenderer(int imageWidth,
int imageHeight)
imageWidth - the graph widthimageHeight - the graph heightpublic LineGraph2DRendererUpdate newUpdate()
Graph2DRenderernewUpdate in class Graph2DRenderer<LineGraph2DRendererUpdate>public InterpolationScheme getInterpolation()
public boolean isHighlightFocusValue()
public int getFocusValueIndex()
public Integer getFocusPixelX()
public void update(LineGraph2DRendererUpdate update)
Graph2DRendererWhen 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 Graph2DRenderer<LineGraph2DRendererUpdate>update - the update to applypublic void draw(Graphics2D g, Point2DDataset data)
g - the graphics on which to display the datadata - the data to displayprotected void processScaledValue(int index,
double valueX,
double valueY,
double scaledX,
double scaledY)
processScaledValue in class Graph2DRenderer<LineGraph2DRendererUpdate>Copyright © 2012-2013 Brookhaven National Laboratory, University of Michigan. All Rights Reserved.