T
- the type of the updatepublic class Graph2DRendererUpdate<T extends Graph2DRendererUpdate<T>> extends Object
Graph2DRenderer
. This class
makes sure the operation is atomic, and the change can be queued in a multi-threaded
environment.Constructor and Description |
---|
Graph2DRendererUpdate() |
Modifier and Type | Method and Description |
---|---|
T |
allAreaMargins(int areaMarginSize)
Updates the parameter for all margins (top, bottom, left, right) of the graph area.
|
T |
allLabelMargins(int labelMarginSize)
Updates the parameter for the margins for the labels on both axes.
|
T |
allMargins(int marginSize)
Updates the parameter for all margins (top, bottom, left, right).
|
T |
backgroundColor(Color backgroundColor)
Updates the parameter for the color of the image background.
|
T |
bottomAreaMargin(int bottomAreaMargin)
Updates the parameter for margin at the bottom of the graph area.
|
T |
bottomMargin(int bottomMargin)
Updates the parameter for margin at the bottom.
|
Color |
getBackgroundColor()
Gets background color of the image.
|
Integer |
getBottomAreaMargin()
Gets the margin between the bottom of the graph area and the axes/labels area.
|
Integer |
getBottomMargin()
Gets the margin between the bottom of the image and the bottom of the axes/labels area.
|
Integer |
getImageHeight()
Gets height of image.
|
Integer |
getImageWidth()
Gets width of image.
|
Color |
getLabelColor()
Gets color of labels for the axes.
|
Font |
getLabelFont()
Gets font of labels for the axes.
|
Integer |
getLeftAreaMargin()
Gets the margin between the left of the graph area and the axes/labels area.
|
Integer |
getLeftMargin()
Gets the margin between the left of the image and the left of the axes/labels area.
|
Color |
getReferenceLineColor()
Gets color of reference lines on the graph area.
|
Integer |
getRightAreaMargin()
Gets the margin between the right of the graph area and the axes/labels area.
|
Integer |
getRightMargin()
Gets the margin between the right of the image and the right of the axes/labels area.
|
Integer |
getTopAreaMargin()
Gets the margin between the top of the graph area and the axes/labels area.
|
Integer |
getTopMargin()
Gets the margin between the top of the image and the top of the axes/labels area.
|
AxisRange |
getXAxisRange()
Gets x-axis range.
|
Integer |
getXLabelMargin()
Gets the margin separating x-axis labels from the graph area.
|
ValueScale |
getXValueScale()
Gets the scaling tool to scale down the values on the x-axis.
|
AxisRange |
getYAxisRange()
Gets y-axis range.
|
Integer |
getYLabelMargin()
Gets the margin separating y-axis labels from the graph area.
|
ValueScale |
getYValueScale()
Gets the scaling tool to scale down the values on the y-axis.
|
T |
imageHeight(int height)
Updates the parameter for the height of the image that is rendered.
|
T |
imageWidth(int width)
Updates the parameter for the width of the image that is rendered.
|
T |
labelColor(Color labelColor)
Updates the parameter for the color of the labels for axes.
|
T |
labelFont(Font labelFont)
Updates the parameter for the font of the labels for axes.
|
T |
leftAreaMargin(int leftAreaMargin)
Updates the parameter for margin at the left of the graph area.
|
T |
leftMargin(int leftMargin)
Updates the parameter for margin at the left.
|
T |
referenceLineColor(Color referenceLineColor)
Updates the parameter for the color of the reference lines on the background.
|
T |
rightAreaMargin(int rightAreaMargin)
Updates the parameter for margin at the right of the graph area.
|
T |
rightMargin(int rightMargin)
Updates the parameter for margin at the right.
|
protected T |
self()
Gets the update.
|
T |
topAreaMargin(int topAreaMargin)
Updates the parameter for margin at the top of the graph area.
|
T |
topMargin(int topMargin)
Updates the parameter for margin at the top.
|
T |
xAxisRange(AxisRange xAxisRange)
Updates the parameter for the range (max - min) of the values on the x-axis.
|
T |
xLabelMargin(int xLabelMargin)
Updates the parameter for the margin for the labels on the x-axis.
|
T |
xValueScale(ValueScale xValueScale)
Updates the parameter for the scaling on the x-axis.
|
T |
yAxisRange(AxisRange yAxisRange)
Updates the parameter for the range (max - min) of the values on the y-axis.
|
T |
yLabelMargin(int yLabelMargin)
Updates the parameter for the margin for the labels on the y-axis.
|
T |
yValueScale(ValueScale yValueScale)
Updates the parameter for the scaling on the y-axis.
|
protected T self()
public T imageHeight(int height)
height
- size of image height in pixelspublic T imageWidth(int width)
width
- size of image width in pixelspublic T xAxisRange(AxisRange xAxisRange)
xAxisRange
- specifies the x-axis range (composed of the data range and the aggregated data range)public T yAxisRange(AxisRange yAxisRange)
yAxisRange
- specifies the y-axis range (composed of the data range and the aggregated data range)public T xValueScale(ValueScale xValueScale)
xValueScale
- tool used for changing actual data to scaled data on the x-axis.public T yValueScale(ValueScale yValueScale)
yValueScale
- tool used for changing actual data to scaled data on the y-axis.public T backgroundColor(Color backgroundColor)
backgroundColor
- color of image backgroundpublic T labelColor(Color labelColor)
labelColor
- color of labelspublic T referenceLineColor(Color referenceLineColor)
referenceLineColor
- color of reference linespublic T labelFont(Font labelFont)
labelFont
- font used for labelspublic T bottomMargin(int bottomMargin)
bottomMargin
- margin at bottom of image in pixelspublic T topMargin(int topMargin)
topMargin
- margin at top of image in pixelspublic T leftMargin(int leftMargin)
leftMargin
- margin at top of image in pixelspublic T rightMargin(int rightMargin)
rightMargin
- margin at right of image in pixelspublic T allMargins(int marginSize)
marginSize
- margin on all sides of image in pixelspublic T bottomAreaMargin(int bottomAreaMargin)
bottomAreaMargin
- margin at bottom of the graph area in pixelspublic T topAreaMargin(int topAreaMargin)
topAreaMargin
- margin at top of the graph area in pixelspublic T leftAreaMargin(int leftAreaMargin)
leftAreaMargin
- margin at left of the graph area in pixelspublic T rightAreaMargin(int rightAreaMargin)
rightAreaMargin
- margin at right of the graph area in pixelspublic T allAreaMargins(int areaMarginSize)
areaMarginSize
- margin on all sides of graph area in pixelspublic T xLabelMargin(int xLabelMargin)
xLabelMargin
- margin for the x-axis labels in pixelspublic T yLabelMargin(int yLabelMargin)
yLabelMargin
- margin for the y-axis labels in pixelspublic T allLabelMargins(int labelMarginSize)
labelMarginSize
- margin for the x-axis and y-axis labels in pixelspublic Integer getImageHeight()
public Integer getImageWidth()
public AxisRange getXAxisRange()
public AxisRange getYAxisRange()
public ValueScale getXValueScale()
public ValueScale getYValueScale()
public Color getBackgroundColor()
public Color getLabelColor()
public Color getReferenceLineColor()
public Font getLabelFont()
public Integer getBottomMargin()
public Integer getTopMargin()
public Integer getLeftMargin()
public Integer getRightMargin()
public Integer getBottomAreaMargin()
public Integer getTopAreaMargin()
public Integer getLeftAreaMargin()
public Integer getRightAreaMargin()
public Integer getXLabelMargin()
public Integer getYLabelMargin()
Copyright © 2015. All rights reserved.