public class DialModelRange
extends java.lang.Object
implements java.io.Serializable
DialModelScale
.Modifier and Type | Method and Description |
---|---|
double |
getInnerRadius()
Return the inner radius percentage(0 ~ 1) of the dial range; default to 0.7.
|
double |
getLowerBound()
Returns the lower bound in scale of this colored range.
|
double |
getOuterRadius()
Return the outer radius percentage(0 ~ 1) of the dial range; default to 0.8.
|
java.lang.String |
getRangeColor()
Get the background color of the dial frame (in string as #RRGGBB).
|
int[] |
getRangeRGB()
Get the background color of the dial frame in int array (0: red, 1: green, 2:blue).
|
double |
getUpperBound()
Returns the upper bound in scale of this colored range.
|
void |
setInnerRadius(double radius)
Sets the inner radius percentage(0 ~ 1) of the dial range; default to 0.7.
|
void |
setLowerBound(double lower)
Sets the lower bound in scale of this colored range.
|
void |
setOuterRadius(double radius)
Sets the outer radius percentage(0 ~ 1) of the dial range; default to 0.8.
|
void |
setRange(double lower,
double upper,
java.lang.String color,
double innerRadius,
double outerRadius)
Setup the DailModel range.
|
void |
setRangeColor(java.lang.String color)
Set the range color of the dial range.
|
void |
setUpperBound(double upper)
Sets the upper bound in scale of this colored range.
|
public void setRange(double lower, double upper, java.lang.String color, double innerRadius, double outerRadius)
lower
- the lower bound of the range in the scale.upper
- the upper bound of the range in the scale.color
- the color in #RRGGBB format (hexadecimal); default to blue.innerRadius
- the inner radius percentage(0 ~ 1) of the range; default to 0.7.outerRadius
- the outer radius percentage(0 ~ 1) of the range; default to 0.8;public void setRangeColor(java.lang.String color)
color
- in #RRGGBB format (hexadecimal).public java.lang.String getRangeColor()
public int[] getRangeRGB()
public void setInnerRadius(double radius)
radius
- the inner radius percentage(0 ~ 1) of the dial range; default to 0.7.public double getInnerRadius()
public void setOuterRadius(double radius)
radius
- the outer radius percentage(0 ~ 1) of the dial range; default to 0.8.public double getOuterRadius()
public double getLowerBound()
public void setLowerBound(double lower)
lower
- the specified lower bound in the scale.public double getUpperBound()
public void setUpperBound(double upper)
upper
- the upper boundCopyright © 2005-2011 Potix Corporation. All Rights Reserved.