ChoiceFormat.setChoices

ChoiceFormat.setChoices

Class Overview | Class Members | This Package | All Packages

Syntax
public void setChoices( double limits[], String formats[] )
Parameters
limits
contains the top value that you want parsed with that format,and should be in ascending sorted order. When formatting X, the choice will be the i, where limit[i] <= X < limit[i+1].
formats
are the formats you want to use for each limit. They can be either Format objects or Strings. When formatting with object Y, if the object is a NumberFormat, then ((NumberFormat) Y).format(X) is called. Otherwise Y.toString() is called.
Description
Set the choices to be used in formatting.