public class BubbleGraph2DRenderer extends Graph2DRenderer<BubbleGraph2DRendererUpdate>
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 |
|---|
BubbleGraph2DRenderer(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateRanges(Range xDataRange,
Range yDataRange,
Range zDataRange) |
void |
draw(Graphics2D g,
Point3DWithLabelDataset data)
Draws a bubble graph on the given Graphics2D context using the given data.
|
BubbleGraph2DRendererUpdate |
newUpdate()
Creates a new update for the given graph.
|
protected void |
newValue(double x,
double y,
double size,
int index)
Does nothing.
|
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 void calculateRanges(Range xDataRange, Range yDataRange, Range zDataRange)
public void draw(Graphics2D g, Point3DWithLabelDataset data)
g - Graphics2D context, can not be null.data - consists of x, y, and z coordinates, as well as labels. x and y correspond to position on the graph.
z corresponds to the diameter of the circle, and the label corresponds to the color.protected void newValue(double x,
double y,
double size,
int index)
x - y - size - index - public BubbleGraph2DRendererUpdate newUpdate()
Graph2DRenderernewUpdate in class Graph2DRenderer<BubbleGraph2DRendererUpdate>Copyright © 2012-2014 Brookhaven National Laboratory, University of Michigan. All Rights Reserved.