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, xValueScale, yAreaCoordEnd, yAreaCoordStart, yLabelMargin, yPlotCoordEnd, yPlotCoordHeight, yPlotCoordStart, yPlotValueEnd, yPlotValueStart, yPointMargin, yReferenceCoords, yReferenceLabels, yReferenceValues, yValueScale
Constructor and Description |
---|
BubbleGraph2DRenderer(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateRanges(Range xDataRange,
Range xDisplayRange,
Range yDataRange,
Range yDisplayRange,
Range zDataRange,
Range zDisplayRange) |
void |
draw(Graphics2D g,
Point3DWithLabelDataset data)
Draws a bubble graph on the given Graphics2D context using the given data.
|
Integer |
getFocusValueIndex()
Return the index of the focused value.
|
BubbleGraph2DRendererUpdate |
newUpdate()
Creates a new update for the given graph.
|
protected void |
newValue(double x,
double y,
double size,
int index)
Does nothing.
|
void |
update(BubbleGraph2DRendererUpdate update)
Applies the update to the renderer.
|
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
public void update(BubbleGraph2DRendererUpdate update)
Graph2DRenderer
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 Graph2DRenderer<BubbleGraph2DRendererUpdate>
update
- the update to applyprotected void calculateRanges(Range xDataRange, Range xDisplayRange, Range yDataRange, Range yDisplayRange, Range zDataRange, Range zDisplayRange)
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
- the x valuey
- the y valuesize
- the sizeindex
- the index of the valuepublic BubbleGraph2DRendererUpdate newUpdate()
Graph2DRenderer
newUpdate
in class Graph2DRenderer<BubbleGraph2DRendererUpdate>
public Integer getFocusValueIndex()
Copyright © 2015. All rights reserved.