|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.piechart.OtherThreshold
public class OtherThreshold
PieChartModel
,
Serialized FormConstructor Summary | |
---|---|
OtherThreshold(double pct)
Constructs an OtherThreshold object from a measure of percent |
|
OtherThreshold(double magnitude,
java.lang.String unit)
Constructs an OtherThreshold object from the specified magnitude and unit |
|
OtherThreshold(java.lang.String text)
Constructs an OtherThreshold object from a string consisting of a numeric value and unit. |
Method Summary | |
---|---|
double |
getMagnitude(java.lang.Object unit)
Returns an equivalent magnitude of the current threshold in terms of the specified unit. |
java.lang.Object |
getUnit()
Returns the abbreviated name of the unit property. |
java.lang.String |
getUnitName()
Returns the full name value of the unit property. |
protected void |
initializeUnit(java.lang.Object unit)
Initializes a unit. |
boolean |
validateUnit(java.lang.String unit)
Returns true if the specified unit is a supported unit of measure, false otherwise. |
Constructor Detail |
---|
public OtherThreshold(double magnitude, java.lang.String unit)
magnitude
- numeric value of the measurementunit
- how to interpret the magnitude
java.lang.IllegalArgumentException
- if the unit is not a supported unitpublic OtherThreshold(java.lang.String text)
text
- a string consisting of a number,
some whitespace, and a supported units token, such as
"10 slices" or "2.5 percent"
java.lang.IllegalArgumentException
- if the unit is not a supported unitpublic OtherThreshold(double pct)
pct
- Method Detail |
---|
public double getMagnitude(java.lang.Object unit)
getMagnitude
in interface com.sas.measures.MeasureInterface
getMagnitude
in class com.sas.measures.Measure
unit
- the unit to convert to
java.lang.IllegalArgumentException
- if the unit is not supportedpublic java.lang.Object getUnit()
getUnit
in interface com.sas.measures.MeasureInterface
getUnit
in class com.sas.measures.Measure
public java.lang.String getUnitName()
getUnitName
in interface com.sas.measures.MeasureInterface
getUnitName
in class com.sas.measures.Measure
protected void initializeUnit(java.lang.Object unit)
initializeUnit
in class com.sas.measures.Measure
unit
- the unit to initialize
java.lang.IllegalArgumentException
- if the unit is not a supported unit of measurepublic boolean validateUnit(java.lang.String unit)
unit
- the unit of measure to validate
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |