public class IntensityGraph2DRenderer extends Graph2DRenderer<Graph2DRendererUpdate>
| Modifier and Type | Field and Description |
|---|---|
protected int |
zLabelMargin |
protected org.epics.util.array.ListDouble |
zReferenceCoords |
protected List<String> |
zReferenceLabels |
protected org.epics.util.array.ListDouble |
zReferenceValues |
backgroundColor, bottomAreaMargin, bottomMargin, g, labelColor, labelFont, labelFontMetrics, leftAreaMargin, leftMargin, referenceLineColor, rightAreaMargin, rightMargin, topAreaMargin, topMargin, xAreaCoordEnd, xAreaCoordStart, xLabelMargin, xPlotCoordEnd, xPlotCoordStart, xPlotCoordWidth, xPlotValueEnd, xPlotValueStart, xPointMargin, xReferenceCoords, xReferenceLabels, xReferenceValues, yAreaCoordEnd, yAreaCoordStart, yLabelMargin, yPlotCoordEnd, yPlotCoordHeight, yPlotCoordStart, yPlotValueEnd, yPlotValueStart, yPointMargin, yReferenceCoords, yReferenceLabels, yReferenceValues| Constructor and Description |
|---|
IntensityGraph2DRenderer()
Default Constructor: makes an IntensityGraph2DRenderer of width 300 and height 200.
|
IntensityGraph2DRenderer(int imageWidth,
int imageHeight)
Uses constructor specified in super class (Graph2DRenderer)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateZLabels()
Sets private variables to account for the space required to draw in labels for the legend.
|
protected void |
calculateZRange(Range zDataRange)
Calculates the range of the z values to be graphed based on the previous z range (if there is one).
|
void |
draw(Graphics2D g,
Cell2DDataset data)
Draws an intensity graph in the given graphics context, using the given data.
|
protected void |
drawZLabels()
Draws evenly spaced labels along the legend.
|
Graph2DRendererUpdate |
newUpdate()
Creates a new update for the given graph.
|
protected double |
scaledZ(double value)
Translates a value's position in the aggregated range to a position on the legend.
|
void |
update(IntensityGraph2DRendererUpdate update)
Updates private data by getting new values from update.
|
calculateGraphArea, calculateLabels, calculateRanges, drawBackground, drawGraphArea, drawHorizontalReferenceLines, drawValueExplicitLine, drawValueLine, drawVerticalReferenceLines, drawXLabels, drawYLabels, getImageHeight, getImageWidth, getXAggregatedRange, getXAxisRange, getXPlotRange, getYAggregatedRange, getYAxisRange, getYPlotRange, processScaledValue, scaledX, scaledY, setClip, setupDataAsAreas, setupDataAsPoints, setupXAsAreas, setupXAsPoints, setupYAsAreas, setupYAsPoints, updateprotected int zLabelMargin
protected org.epics.util.array.ListDouble zReferenceCoords
protected org.epics.util.array.ListDouble zReferenceValues
public IntensityGraph2DRenderer(int imageWidth,
int imageHeight)
imageWidth - should be equal to the width of the bufferedImage.imageHeight - should be equal to the height of the bufferedImage.public IntensityGraph2DRenderer()
public void update(IntensityGraph2DRendererUpdate update)
update - IntensityGraph2DRendererUpdatepublic void draw(Graphics2D g, Cell2DDataset data)
g - Graphics2D object used to perform drawing functions within draw.data - can not be nullpublic Graph2DRendererUpdate newUpdate()
Graph2DRenderernewUpdate in class Graph2DRenderer<Graph2DRendererUpdate>protected void calculateZRange(Range zDataRange)
zDataRange - current data range.protected void calculateZLabels()
protected void drawZLabels()
protected final double scaledZ(double value)
value - raw valueCopyright © 2012-2014 Brookhaven National Laboratory, University of Michigan. All Rights Reserved.