public class SparklineGraph2DRendererUpdate extends Graph2DRendererUpdate<SparklineGraph2DRendererUpdate>
SparklineGraph2DRenderer
to update it's settings.
Only the parameters that are set in the update get applied to the renderer. Parameters unique to the sparkline that can be changed are:
Constructor and Description |
---|
SparklineGraph2DRendererUpdate() |
Modifier and Type | Method and Description |
---|---|
SparklineGraph2DRendererUpdate |
aspectRatio(double ratio)
Sets the width to height aspect ratio for the graph area.
|
SparklineGraph2DRendererUpdate |
circleDiameter(int diameter)
Sets the diameter of the circles drawn.
|
SparklineGraph2DRendererUpdate |
drawCircles(boolean decision)
Sets whether circles are drawn on the line at important values.
|
Double |
getAspectRatio()
Gets the width to height aspect ratio of the graph area
|
Integer |
getCircleDiameter()
Gets the diameter of the circle.
|
Boolean |
getDrawCircles()
Gets the decision for whether circles are drawn.
|
InterpolationScheme |
getInterpolation()
Gets the interpolation scheme of the line.
|
Color |
getLastValueColor()
Gets the color of the circle drawn for the last value.
|
Color |
getMaxValueColor()
Gets the color of the circle drawn for the maximum value.
|
Color |
getMinValueColor()
Gets the color of the circle drawn for the minimum value.
|
SparklineGraph2DRendererUpdate |
interpolation(InterpolationScheme scheme)
Sets the interpolation scheme of the line.
|
SparklineGraph2DRendererUpdate |
lastValueColor(Color color)
Sets the color of the circle drawn at the last value.
|
SparklineGraph2DRendererUpdate |
maxValueColor(Color color)
Sets the color of the circle drawn at the maximum value.
|
SparklineGraph2DRendererUpdate |
minValueColor(Color color)
Sets the color of the circle drawn at the minimum value.
|
allAreaMargins, allLabelMargins, allMargins, backgroundColor, bottomAreaMargin, bottomMargin, getBackgroundColor, getBottomAreaMargin, getBottomMargin, getImageHeight, getImageWidth, getLabelColor, getLabelFont, getLeftAreaMargin, getLeftMargin, getReferenceLineColor, getRightAreaMargin, getRightMargin, getTopAreaMargin, getTopMargin, getXAxisRange, getXLabelMargin, getXValueScale, getYAxisRange, getYLabelMargin, getYValueScale, imageHeight, imageWidth, labelColor, labelFont, leftAreaMargin, leftMargin, referenceLineColor, rightAreaMargin, rightMargin, self, topAreaMargin, topMargin, xAxisRange, xLabelMargin, xValueScale, yAxisRange, yLabelMargin, yValueScale
public SparklineGraph2DRendererUpdate minValueColor(Color color)
color
- color for the minimum value circlepublic SparklineGraph2DRendererUpdate maxValueColor(Color color)
color
- color for the maximum value circlepublic SparklineGraph2DRendererUpdate lastValueColor(Color color)
color
- color for the last value circlepublic SparklineGraph2DRendererUpdate circleDiameter(int diameter)
diameter
- size of circle diameter in pixelspublic SparklineGraph2DRendererUpdate drawCircles(boolean decision)
decision
- whether circles are drawnpublic SparklineGraph2DRendererUpdate interpolation(InterpolationScheme scheme)
scheme
- new interpolation schemepublic SparklineGraph2DRendererUpdate aspectRatio(double ratio)
ratio
- ratio between width and height that should be maintainedpublic Color getMinValueColor()
public Color getMaxValueColor()
public Color getLastValueColor()
public Integer getCircleDiameter()
public Boolean getDrawCircles()
public InterpolationScheme getInterpolation()
public Double getAspectRatio()
Copyright © 2015. All rights reserved.