public class RegionData extends Object
Constructor and Description |
---|
RegionData(String label,
int highlightedValue,
int[] values) |
Modifier and Type | Method and Description |
---|---|
int |
getHighlightedValue() |
String |
getLabel() |
int |
getMaxValue() |
int[] |
getValues() |
boolean |
hasHighlightedValue() |
void |
setHighlightedValue(int highlightedValue)
sets the highlighted value index, or removes highlight if -1 is used
|
void |
setMaxValue(int maxValue) |
public RegionData(String label, int highlightedValue, int[] values)
label
- the text label to draw for this regionhighlightedValue
- the index of the value to "highlight" or -1, if
no values should be highlighted. Note that highlighting a value in a
region causes the entire region to get a background highlight, alsovalues
- int array of raw values, each between 0 and 15.public String getLabel()
public int getHighlightedValue()
public void setHighlightedValue(int highlightedValue)
highlightedValue
- the index of the bar to highlight.public int[] getValues()
public int getMaxValue()
public void setMaxValue(int maxValue)
maxValue
- the global graph maximum value, used for normalizing
values to ensure the values use the entire Y axis.public boolean hasHighlightedValue()
Copyright © 2005–2015 IIPC. All rights reserved.