/**
* A number formatter for the z value - if this is null, then zDateFormat
* must be non-null.
*/
/**
* A number formatter for the z value - if this is <code>null</code>, then
* zDateFormat must be non-null.
*/
private NumberFormat zFormat;
/**
* A date formatter for the z-value - if this is null, then zFormat must be
* non-null.
*/
/**
* A date formatter for the z-value - if this is null, then zFormat must be
* non-null.
*/
private DateFormat zDateFormat;
/**
* Creates a new tool tip generator using default number formatters for the
* x, y and z-values.
*/
public [[#variable1a836220]]() {
this( [[#variable1a834560]], NumberFormat.getNumberInstance(), NumberFormat.getNumberInstance(), NumberFormat.getNumberInstance());
}
/**
* Constructs a new tool tip generator using the specified number
* formatters.
*
* @param formatString the format string.
* @param xFormat the format object for the x values (<code>null</code>
* not permitted).
* @param yFormat the format object for the y values (<code>null</code>
* not permitted).
* @param zFormat the format object for the z values (<code>null</code>
* not permitted).
*/
/**
* Constructs a new tool tip generator using the specified number
* formatters.
*
* @param formatString the format string.
* @param xFormat the format object for the x values (<code>null</code>
* not permitted).
* @param yFormat the format object for the y values (<code>null</code>
* not permitted).
* @param zFormat the format object for the z values (<code>null</code>
* not permitted).
*/
public [[#variable1a836220]](String formatString, NumberFormat xFormat, NumberFormat yFormat, NumberFormat zFormat) {
super(formatString, xFormat, yFormat);
if (zFormat == null) {
throw new IllegalArgumentException("Null \'zFormat\' argument.");
}
this.zFormat = zFormat;
}
/**
* Constructs a new tool tip generator using the specified date formatters.
*
* @param formatString the format string.
* @param xFormat the format object for the x values (<code>null</code>
* not permitted).
* @param yFormat the format object for the y values (<code>null</code>
* not permitted).
* @param zFormat the format object for the z values (<code>null</code>
* not permitted).
*/
/**
* Constructs a new item label generator using the specified date
* formatters.
*
* @param formatString the format string.
* @param xFormat the format object for the x values (<code>null</code>
* not permitted).
* @param yFormat the format object for the y values (<code>null</code>
* not permitted).
* @param zFormat the format object for the z values (<code>null</code>
* not permitted).
*/
public [[#variable1a836220]](String formatString, DateFormat xFormat, DateFormat yFormat, DateFormat zFormat) {
super(formatString, xFormat, yFormat);
if (zFormat == null) {
throw new IllegalArgumentException("Null \'zFormat\' argument.");
}
this.zDateFormat = zFormat;
}
// TODO: add constructors for combinations of number and date formatters.
/**
* Returns the number formatter for the z-values.
*
* @return The number formatter (possibly <code>null</code>).
*/
public NumberFormat getZFormat() {
return this.zFormat;
}
/**
* Returns the date formatter for the z-values.
*
* @return The date formatter (possibly <code>null</code>).
*/
public DateFormat getZDateFormat() {
return this.zDateFormat;
}
|