|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.graphics.components.piechart.OtherThreshold
@SASScope(value="ALL") public class OtherThreshold
PieChartModel,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.sas.measures.Measure |
|---|
DISPLAY_FORMAT_NOSPACE_BETWEEN_MAGNITUDE_AND_UNIT, DISPLAY_FORMAT_SPACE_BETWEEN_MAGNITUDE_AND_UNIT, displayFormat, locale, magnitude, RB_KEY |
| Constructor 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. |
| Methods inherited from class com.sas.measures.Measure |
|---|
_init, clone, equals, equals, getMagnitude, hashCode, toString |
| 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.MeasureInterfacegetMagnitude in class com.sas.measures.Measureunit - the unit to convert to
java.lang.IllegalArgumentException - if the unit is not supportedpublic java.lang.Object getUnit()
getUnit in interface com.sas.measures.MeasureInterfacegetUnit in class com.sas.measures.Measurepublic java.lang.String getUnitName()
getUnitName in interface com.sas.measures.MeasureInterfacegetUnitName in class com.sas.measures.Measureprotected void initializeUnit(java.lang.Object unit)
initializeUnit in class com.sas.measures.Measureunit - 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 | |||||||||||||