CloneSet149


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
124201.000class_body_declarations[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1126249
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/LineAndShapeRenderer.java
2124267
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYLineAndShapeRenderer.java
Next
Last
Clone Instance
1
Line Count
126
Source Line
249
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/LineAndShapeRenderer.java

// LINES VISIBLE
/**
 * Returns the flag used to control whether or not the line for an item is
 * visible.
 *
 * @param series  the series index (zero-based).
 * @param item  the item index (zero-based).
 *
 * @return A boolean.
 */
public boolean getItemLineVisible(int series, int item) {
  Boolean flag = this.linesVisible;
  if (flag == null) {
    flag = getSeriesLinesVisible(series);
  }
  if (flag != null) {
    return flag.booleanValue();
  }
  else {
    return this.baseLinesVisible;
  }
}

/**
 * Returns a flag that controls whether or not lines are drawn for ALL
 * series.  If this flag is <code>null</code>, then the "per series"
 * settings will apply.
 *
 * @return A flag (possibly <code>null</code>).
 *
 * @see #setLinesVisible(Boolean)
 *
 * @deprecated As of 1.0.7 (the override facility is unnecessary, just
 *     use the per-series and base (default) settings).
 */
public Boolean getLinesVisible() {
  return this.linesVisible;
}

/**
 * Sets a flag that controls whether or not lines are drawn between the
 * items in ALL series, and sends a {@link RendererChangeEvent} to all
 * registered listeners.  You need to set this to <code>null</code> if you
 * want the "per series" settings to apply.
 *
 * @param visible  the flag (<code>null</code> permitted).
 *
 * @see #getLinesVisible()
 *
 * @deprecated As of 1.0.7 (the override facility is unnecessary, just
 *     use the per-series and base (default) settings).
 */
public void setLinesVisible(Boolean visible) {
  this.linesVisible = visible;
  fireChangeEvent();
}

/**
 * Sets a flag that controls whether or not lines are drawn between the
 * items in ALL series, and sends a {@link RendererChangeEvent} to all
 * registered listeners.
 *
 * @param visible  the flag.
 *
 * @see #getLinesVisible()
 *
 * @deprecated As of 1.0.7 (the override facility is unnecessary, just
 *     use the per-series and base (default) settings).
 */
public void setLinesVisible(boolean visible) {
  setLinesVisible(BooleanUtilities.valueOf(visible));
}

/**
 * Returns the flag used to control whether or not the lines for a series
 * are visible.
 *
 * @param series  the series index (zero-based).
 *
 * @return The flag (possibly <code>null</code>).
 *
 * @see #setSeriesLinesVisible(int, Boolean)
 */
public Boolean getSeriesLinesVisible(int series) {
  return this.seriesLinesVisible.getBoolean(series);
}

/**
 * Sets the 'lines visible' flag for a series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 * @param flag  the flag (<code>null</code> permitted).
 *
 * @see #getSeriesLinesVisible(int)
 */
public void setSeriesLinesVisible(int series, Boolean flag) {
  this.seriesLinesVisible.setBoolean(series, flag);
  fireChangeEvent();
}

/**
 * Sets the 'lines visible' flag for a series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 * @param visible  the flag.
 *
 * @see #getSeriesLinesVisible(int)
 */
public void setSeriesLinesVisible(int series, boolean visible) {
  setSeriesLinesVisible(series, BooleanUtilities.valueOf(visible));
}

/**
 * Returns the base 'lines visible' attribute.
 *
 * @return The base flag.
 *
 * @see #getBaseLinesVisible()
 */
public boolean getBaseLinesVisible() {
  return this.baseLinesVisible;
}

/**
 * Sets the base 'lines visible' flag and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param flag  the flag.
 *
 * @see #getBaseLinesVisible()
 */
public void setBaseLinesVisible(boolean flag) {
  this.baseLinesVisible = flag;
  fireChangeEvent();
}


First
Previous
Clone Instance
2
Line Count
124
Source Line
267
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYLineAndShapeRenderer.java

// LINES VISIBLE
/**
 * Returns the flag used to control whether or not the shape for an item is
 * visible.
 *
 * @param series  the series index (zero-based).
 * @param item  the item index (zero-based).
 *
 * @return A boolean.
 */
public boolean getItemLineVisible(int series, int item) {
  Boolean flag = this.linesVisible;
  if (flag == null) {
    flag = getSeriesLinesVisible(series);
  }
  if (flag != null) {
    return flag.booleanValue();
  }
  else {
    return this.baseLinesVisible;
  }
}

/**
 * Returns a flag that controls whether or not lines are drawn for ALL
 * series.  If this flag is <code>null</code>, then the "per series"
 * settings will apply.
 *
 * @return A flag (possibly <code>null</code>).
 *
 * @see #setLinesVisible(Boolean)
 *
 * @deprecated As of 1.0.7, use the per-series and base level settings.
 */
public Boolean getLinesVisible() {
  return this.linesVisible;
}

/**
 * Sets a flag that controls whether or not lines are drawn between the
 * items in ALL series, and sends a {@link RendererChangeEvent} to all
 * registered listeners.  You need to set this to <code>null</code> if you
 * want the "per series" settings to apply.
 *
 * @param visible  the flag (<code>null</code> permitted).
 *
 * @see #getLinesVisible()
 *
 * @deprecated As of 1.0.7, use the per-series and base level settings.
 */
public void setLinesVisible(Boolean visible) {
  this.linesVisible = visible;
  fireChangeEvent();
}

/**
 * Sets a flag that controls whether or not lines are drawn between the
 * items in ALL series, and sends a {@link RendererChangeEvent} to all
 * registered listeners.
 *
 * @param visible  the flag.
 *
 * @see #getLinesVisible()
 *
 * @deprecated As of 1.0.7, use the per-series and base level settings.
 */
public void setLinesVisible(boolean visible) {
  // we use BooleanUtilities here to preserve JRE 1.3.1 compatibility
  setLinesVisible(BooleanUtilities.valueOf(visible));
}

/**
 * Returns the flag used to control whether or not the lines for a series
 * are visible.
 *
 * @param series  the series index (zero-based).
 *
 * @return The flag (possibly <code>null</code>).
 *
 * @see #setSeriesLinesVisible(int, Boolean)
 */
public Boolean getSeriesLinesVisible(int series) {
  return this.seriesLinesVisible.getBoolean(series);
}

/**
 * Sets the 'lines visible' flag for a series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 * @param flag  the flag (<code>null</code> permitted).
 *
 * @see #getSeriesLinesVisible(int)
 */
public void setSeriesLinesVisible(int series, Boolean flag) {
  this.seriesLinesVisible.setBoolean(series, flag);
  fireChangeEvent();
}

/**
 * Sets the 'lines visible' flag for a series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 * @param visible  the flag.
 *
 * @see #getSeriesLinesVisible(int)
 */
public void setSeriesLinesVisible(int series, boolean visible) {
  setSeriesLinesVisible(series, BooleanUtilities.valueOf(visible));
}

/**
 * Returns the base 'lines visible' attribute.
 *
 * @return The base flag.
 *
 * @see #setBaseLinesVisible(boolean)
 */
public boolean getBaseLinesVisible() {
  return this.baseLinesVisible;
}

/**
 * Sets the base 'lines visible' flag and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param flag  the flag.
 *
 * @see #getBaseLinesVisible()
 */
public void setBaseLinesVisible(boolean flag) {
  this.baseLinesVisible = flag;
  fireChangeEvent();
}


Clone AbstractionParameter Count: 0Parameter Bindings

// LINES VISIBLE
/**
     * Returns the flag used to control whether or not the shape for an item is
     * visible.
     *
     * @param series  the series index (zero-based).
     * @param item  the item index (zero-based).
     *
     * @return A boolean.
     */
/**
     * Returns the flag used to control whether or not the line for an item is
     * visible.
     *
     * @param series  the series index (zero-based).
     * @param item  the item index (zero-based).
     *
     * @return A boolean.
     */
public boolean getItemLineVisible(int series, int item) {
  Boolean flag = this.linesVisible;
  if (flag == null) {
    flag = getSeriesLinesVisible(series);
  }
  if (flag != null) {
    return flag.booleanValue();
  }
  else {
    return this.baseLinesVisible;
  }
}

/**
     * Returns a flag that controls whether or not lines are drawn for ALL
     * series.  If this flag is <code>null</code>, then the "per series"
     * settings will apply.
     *
     * @return A flag (possibly <code>null</code>).
     *
     * @see #setLinesVisible(Boolean)
     *
     * @deprecated As of 1.0.7, use the per-series and base level settings.
     */
/**
     * Returns a flag that controls whether or not lines are drawn for ALL
     * series.  If this flag is <code>null</code>, then the "per series"
     * settings will apply.
     *
     * @return A flag (possibly <code>null</code>).
     *
     * @see #setLinesVisible(Boolean)
     *
     * @deprecated As of 1.0.7 (the override facility is unnecessary, just
     *     use the per-series and base (default) settings).
     */
public Boolean getLinesVisible() {
  return this.linesVisible;
}

/**
     * Sets a flag that controls whether or not lines are drawn between the
     * items in ALL series, and sends a {@link RendererChangeEvent} to all
     * registered listeners.  You need to set this to <code>null</code> if you
     * want the "per series" settings to apply.
     *
     * @param visible  the flag (<code>null</code> permitted).
     *
     * @see #getLinesVisible()
     *
     * @deprecated As of 1.0.7, use the per-series and base level settings.
     */
/**
     * Sets a flag that controls whether or not lines are drawn between the
     * items in ALL series, and sends a {@link RendererChangeEvent} to all
     * registered listeners.  You need to set this to <code>null</code> if you
     * want the "per series" settings to apply.
     *
     * @param visible  the flag (<code>null</code> permitted).
     *
     * @see #getLinesVisible()
     *
     * @deprecated As of 1.0.7 (the override facility is unnecessary, just
     *     use the per-series and base (default) settings).
     */
public void setLinesVisible(Boolean visible) {
  this.linesVisible = visible;
  fireChangeEvent();
}

/**
     * Sets a flag that controls whether or not lines are drawn between the
     * items in ALL series, and sends a {@link RendererChangeEvent} to all
     * registered listeners.
     *
     * @param visible  the flag.
     *
     * @see #getLinesVisible()
     *
     * @deprecated As of 1.0.7, use the per-series and base level settings.
     */
/**
     * Sets a flag that controls whether or not lines are drawn between the
     * items in ALL series, and sends a {@link RendererChangeEvent} to all
     * registered listeners.
     *
     * @param visible  the flag.
     *
     * @see #getLinesVisible()
     *
     * @deprecated As of 1.0.7 (the override facility is unnecessary, just
     *     use the per-series and base (default) settings).
     */
public void setLinesVisible(boolean visible) {
  // we use BooleanUtilities here to preserve JRE 1.3.1 compatibility
  setLinesVisible(BooleanUtilities.valueOf(visible));
}

/**
     * Returns the flag used to control whether or not the lines for a series
     * are visible.
     *
     * @param series  the series index (zero-based).
     *
     * @return The flag (possibly <code>null</code>).
     *
     * @see #setSeriesLinesVisible(int, Boolean)
     */
public Boolean getSeriesLinesVisible(int series) {
  return this.seriesLinesVisible.getBoolean(series);
}

/**
     * Sets the 'lines visible' flag for a series and sends a
     * {@link RendererChangeEvent} to all registered listeners.
     *
     * @param series  the series index (zero-based).
     * @param flag  the flag (<code>null</code> permitted).
     *
     * @see #getSeriesLinesVisible(int)
     */
public void setSeriesLinesVisible(int series, Boolean flag) {
  this.seriesLinesVisible.setBoolean(series, flag);
  fireChangeEvent();
}

/**
     * Sets the 'lines visible' flag for a series and sends a
     * {@link RendererChangeEvent} to all registered listeners.
     *
     * @param series  the series index (zero-based).
     * @param visible  the flag.
     *
     * @see #getSeriesLinesVisible(int)
     */
public void setSeriesLinesVisible(int series, boolean visible) {
  setSeriesLinesVisible(series, BooleanUtilities.valueOf(visible));
}

/**
     * Returns the base 'lines visible' attribute.
     *
     * @return The base flag.
     *
     * @see #setBaseLinesVisible(boolean)
     */
/**
     * Returns the base 'lines visible' attribute.
     *
     * @return The base flag.
     *
     * @see #getBaseLinesVisible()
     */
public boolean getBaseLinesVisible() {
  return this.baseLinesVisible;
}

/**
     * Sets the base 'lines visible' flag and sends a
     * {@link RendererChangeEvent} to all registered listeners.
     *
     * @param flag  the flag.
     *
     * @see #getBaseLinesVisible()
     */
public void setBaseLinesVisible(boolean flag) {
  this.baseLinesVisible = flag;
  fireChangeEvent();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None