public abstract class AbstractGraphRow extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Color |
color |
protected boolean |
drawLine |
protected String |
label |
protected Rectangle |
legendColorBox
When user clicks on this, color of the box and metric line will change.
|
static float |
LINE_THICKNESS_BIG |
static int |
MARKER_SIZE_BIG |
static int |
MARKER_SIZE_NONE |
static int |
MARKER_SIZE_SMALL |
protected int |
markerSize |
protected long |
maxX |
protected long |
minX |
static int |
ROW_AVERAGES |
static int |
ROW_EXACT_VALUES |
static int |
ROW_OVERALL_AVERAGES |
static int |
ROW_PERCENTILES |
static int |
ROW_ROLLING_SUM_VALUES |
static int |
ROW_SIMPLE |
static int |
ROW_SUM_VALUES |
| Constructor and Description |
|---|
AbstractGraphRow() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long xVal,
double yVal) |
Color |
getColor() |
abstract AbstractGraphPanelChartElement |
getElement(long value)
Needed for csv export.
|
long |
getFirstTime() |
int |
getGranulationValue() |
Long |
getHigherKey(long value) |
String |
getLabel() |
Rectangle |
getLegendColorBox() |
AbstractGraphPanelChartElement |
getLowerElement(long value)
Needed for aggregate average rows witch need to be summed.
|
int |
getMarkerSize() |
long |
getMaxX() |
double[] |
getMinMaxY(int maxPoints) |
long |
getMinX() |
static AbstractGraphRow |
instantiateNewRow(int rowType) |
boolean |
isDrawBar() |
boolean |
isDrawLine() |
boolean |
isDrawOnChart() |
boolean |
isDrawSpline() |
boolean |
isDrawThickLines() |
boolean |
isDrawValueLabel() |
boolean |
isShowInLegend() |
abstract Iterator<Map.Entry<Long,AbstractGraphPanelChartElement>> |
iterator() |
void |
setColor(Color nextColor) |
void |
setDrawBar(boolean b) |
void |
setDrawLine(boolean b) |
void |
setDrawOnChart(boolean drawOnChart) |
void |
setDrawSpline(boolean drawSpline) |
void |
setDrawThickLines(boolean isThickLine) |
void |
setDrawValueLabel(boolean drawValueLabel) |
void |
setExcludeOutOfRangeValues(boolean excludeOutOfRangeValues)
For bar chart x axis too big prevention.
|
void |
setGranulationValue(int value)
set the granulation value for drawbar width
|
void |
setLabel(String label) |
void |
setLegendColorBox(Rectangle val) |
void |
setMarkerSize(int aMarkerSize) |
void |
setShowInLegend(boolean showInLegend) |
abstract int |
size() |
public static final int MARKER_SIZE_NONE
public static final int MARKER_SIZE_SMALL
public static final int MARKER_SIZE_BIG
public static final float LINE_THICKNESS_BIG
public static final int ROW_AVERAGES
public static final int ROW_EXACT_VALUES
public static final int ROW_OVERALL_AVERAGES
public static final int ROW_PERCENTILES
public static final int ROW_SUM_VALUES
public static final int ROW_ROLLING_SUM_VALUES
public static final int ROW_SIMPLE
protected boolean drawLine
protected int markerSize
protected Color color
protected Rectangle legendColorBox
protected String label
protected long maxX
protected long minX
public void setDrawThickLines(boolean isThickLine)
public boolean isDrawThickLines()
public void setDrawLine(boolean b)
b - public void setMarkerSize(int aMarkerSize)
aMarkerSize - public boolean isDrawLine()
public int getMarkerSize()
public Color getColor()
public void setColor(Color nextColor)
nextColor - public String getLabel()
public void setLabel(String label)
label - the label to setpublic long getMaxX()
public double[] getMinMaxY(int maxPoints)
public long getMinX()
public void add(long xVal,
double yVal)
xVal - yVal - public abstract Iterator<Map.Entry<Long,AbstractGraphPanelChartElement>> iterator()
public boolean isDrawValueLabel()
public void setDrawValueLabel(boolean drawValueLabel)
drawValueLabel - the drawValueLabel to setpublic boolean isShowInLegend()
public void setShowInLegend(boolean showInLegend)
showInLegend - the showInLegend to setpublic boolean isDrawOnChart()
public void setDrawOnChart(boolean drawOnChart)
drawOnChart - the drawOnChart to setpublic void setDrawBar(boolean b)
public boolean isDrawBar()
public boolean isDrawSpline()
public void setDrawSpline(boolean drawSpline)
public int getGranulationValue()
public void setGranulationValue(int value)
public void setExcludeOutOfRangeValues(boolean excludeOutOfRangeValues)
excludeOutOfRangeValues - public abstract AbstractGraphPanelChartElement getElement(long value)
value - the key to get the elementpublic AbstractGraphPanelChartElement getLowerElement(long value)
value - the upper key to get the floor elementpublic Long getHigherKey(long value)
public abstract int size()
public static AbstractGraphRow instantiateNewRow(int rowType)
public long getFirstTime()
public void setLegendColorBox(Rectangle val)
public Rectangle getLegendColorBox()
Copyright © 2016. All rights reserved.