CloneSet210


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
84220.985class_body_declarations[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17678
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/labels/BubbleXYItemLabelGenerator.java
28471
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/labels/StandardXYZToolTipGenerator.java
Next
Last
Clone Instance
1
Line Count
76
Source Line
78
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/labels/BubbleXYItemLabelGenerator.java

/**
 * 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.
 */
private DateFormat zDateFormat;

/**
 * Creates a new tool tip generator using default number formatters for the
 * x, y and z-values.
 */
public BubbleXYItemLabelGenerator() {
  this(DEFAULT_FORMAT_STRING, 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).
 */
public BubbleXYItemLabelGenerator(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 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 BubbleXYItemLabelGenerator(String formatString, DateFormat xFormat, DateFormat yFormat, DateFormat zFormat) {
  super(formatString, xFormat, yFormat);
  if (zFormat == null) {
    throw new IllegalArgumentException("Null \'zFormat\' argument.");
  }
  this.zDateFormat = zFormat;
}

/**
 * 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;
}


First
Previous
Clone Instance
2
Line Count
84
Source Line
71
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/labels/StandardXYZToolTipGenerator.java

/** 
 * A number formatter for the z value - if this is null, 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. 
 */
private DateFormat zDateFormat;

/**
 * Creates a new tool tip generator using default number formatters for the
 * x, y and z-values.
 */
public StandardXYZToolTipGenerator() {
  this(DEFAULT_TOOL_TIP_FORMAT, 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).
 */
public StandardXYZToolTipGenerator(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).
 */
public StandardXYZToolTipGenerator(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;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/** 
     * 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;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a836220]]
BubbleXYItemLabelGenerator 
12[[#1a836220]]
StandardXYZToolTipGenerator 
21[[#1a834560]]
DEFAULT_FORMAT_STRING 
22[[#1a834560]]
DEFAULT_TOOL_TIP_FORMAT