CloneSet150


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

// SHAPES 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 getItemShapeVisible(int series, int item) {
  Boolean flag = this.shapesVisible;
  if (flag == null) {
    flag = getSeriesShapesVisible(series);
  }
  if (flag != null) {
    return flag.booleanValue();
  }
  else {
    return this.baseShapesVisible;
  }
}

/**
 * Returns the flag that controls whether the shapes are visible for the
 * items in ALL series.
 *
 * @return The flag (possibly <code>null</code>).
 *
 * @see #setShapesVisible(Boolean)
 *
 * @deprecated As of 1.0.7 (the override facility is unnecessary, just
 *     use the per-series and base (default) settings).
 */
public Boolean getShapesVisible() {
  return this.shapesVisible;
}

/**
 * Sets the 'shapes visible' for ALL series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param visible  the flag (<code>null</code> permitted).
 *
 * @see #getShapesVisible()
 *
 * @deprecated As of 1.0.7 (the override facility is unnecessary, just
 *     use the per-series and base (default) settings).
 */
public void setShapesVisible(Boolean visible) {
  this.shapesVisible = visible;
  fireChangeEvent();
}

/**
 * Sets the 'shapes visible' for ALL series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param visible  the flag.
 *
 * @see #getShapesVisible()
 *
 * @deprecated As of 1.0.7 (the override facility is unnecessary, just
 *     use the per-series and base (default) settings).
 */
public void setShapesVisible(boolean visible) {
  setShapesVisible(BooleanUtilities.valueOf(visible));
}

/**
 * Returns the flag used to control whether or not the shapes for a series
 * are visible.
 *
 * @param series  the series index (zero-based).
 *
 * @return A boolean.
 *
 * @see #setSeriesShapesVisible(int, Boolean)
 */
public Boolean getSeriesShapesVisible(int series) {
  return this.seriesShapesVisible.getBoolean(series);
}

/**
 * Sets the 'shapes 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 #getSeriesShapesVisible(int)
 */
public void setSeriesShapesVisible(int series, boolean visible) {
  setSeriesShapesVisible(series, BooleanUtilities.valueOf(visible));
}

/**
 * Sets the 'shapes 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.
 *
 * @see #getSeriesShapesVisible(int)
 */
public void setSeriesShapesVisible(int series, Boolean flag) {
  this.seriesShapesVisible.setBoolean(series, flag);
  fireChangeEvent();
}

/**
 * Returns the base 'shape visible' attribute.
 *
 * @return The base flag.
 *
 * @see #setBaseShapesVisible(boolean)
 */
public boolean getBaseShapesVisible() {
  return this.baseShapesVisible;
}

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


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

// SHAPES VISIBLE
/**
 * Returns the flag used to control whether or not the shape for an item is
 * visible.
 * <p>
 * The default implementation passes control to the
 * <code>getSeriesShapesVisible</code> method. You can override this method
 * if you require different behaviour.
 *
 * @param series  the series index (zero-based).
 * @param item  the item index (zero-based).
 *
 * @return A boolean.
 */
public boolean getItemShapeVisible(int series, int item) {
  Boolean flag = this.shapesVisible;
  if (flag == null) {
    flag = getSeriesShapesVisible(series);
  }
  if (flag != null) {
    return flag.booleanValue();
  }
  else {
    return this.baseShapesVisible;
  }
}

/**
 * Returns the flag that controls whether the shapes are visible for the
 * items in ALL series.
 *
 * @return The flag (possibly <code>null</code>).
 *
 * @see #setShapesVisible(Boolean)
 *
 * @deprecated As of 1.0.7, use the per-series and base level settings.
 */
public Boolean getShapesVisible() {
  return this.shapesVisible;
}

/**
 * Sets the 'shapes visible' for ALL series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param visible  the flag (<code>null</code> permitted).
 *
 * @see #getShapesVisible()
 *
 * @deprecated As of 1.0.7, use the per-series and base level settings.
 */
public void setShapesVisible(Boolean visible) {
  this.shapesVisible = visible;
  fireChangeEvent();
}

/**
 * Sets the 'shapes visible' for ALL series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param visible  the flag.
 *
 * @see #getShapesVisible()
 *
 * @deprecated As of 1.0.7, use the per-series and base level settings.
 */
public void setShapesVisible(boolean visible) {
  setShapesVisible(BooleanUtilities.valueOf(visible));
}

/**
 * Returns the flag used to control whether or not the shapes for a series
 * are visible.
 *
 * @param series  the series index (zero-based).
 *
 * @return A boolean.
 *
 * @see #setSeriesShapesVisible(int, Boolean)
 */
public Boolean getSeriesShapesVisible(int series) {
  return this.seriesShapesVisible.getBoolean(series);
}

/**
 * Sets the 'shapes 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 #getSeriesShapesVisible(int)
 */
public void setSeriesShapesVisible(int series, boolean visible) {
  setSeriesShapesVisible(series, BooleanUtilities.valueOf(visible));
}

/**
 * Sets the 'shapes 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.
 *
 * @see #getSeriesShapesVisible(int)
 */
public void setSeriesShapesVisible(int series, Boolean flag) {
  this.seriesShapesVisible.setBoolean(series, flag);
  fireChangeEvent();
}

/**
 * Returns the base 'shape visible' attribute.
 *
 * @return The base flag.
 *
 * @see #setBaseShapesVisible(boolean)
 */
public boolean getBaseShapesVisible() {
  return this.baseShapesVisible;
}

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


Clone AbstractionParameter Count: 0Parameter Bindings

// SHAPES VISIBLE
/**
     * Returns the flag used to control whether or not the shape for an item is
     * visible.
     * <p>
     * The default implementation passes control to the
     * <code>getSeriesShapesVisible</code> method. You can override this method
     * if you require different behaviour.
     *
     * @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 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 getItemShapeVisible(int series, int item) {
  Boolean flag = this.shapesVisible;
  if (flag == null) {
    flag = getSeriesShapesVisible(series);
  }
  if (flag != null) {
    return flag.booleanValue();
  }
  else {
    return this.baseShapesVisible;
  }
}

/**
     * Returns the flag that controls whether the shapes are visible for the
     * items in ALL series.
     *
     * @return The flag (possibly <code>null</code>).
     *
     * @see #setShapesVisible(Boolean)
     *
     * @deprecated As of 1.0.7, use the per-series and base level settings.
     */
/**
     * Returns the flag that controls whether the shapes are visible for the
     * items in ALL series.
     *
     * @return The flag (possibly <code>null</code>).
     *
     * @see #setShapesVisible(Boolean)
     *
     * @deprecated As of 1.0.7 (the override facility is unnecessary, just
     *     use the per-series and base (default) settings).
     */
public Boolean getShapesVisible() {
  return this.shapesVisible;
}

/**
     * Sets the 'shapes visible' for ALL series and sends a
     * {@link RendererChangeEvent} to all registered listeners.
     *
     * @param visible  the flag (<code>null</code> permitted).
     *
     * @see #getShapesVisible()
     *
     * @deprecated As of 1.0.7, use the per-series and base level settings.
     */
/**
     * Sets the 'shapes visible' for ALL series and sends a
     * {@link RendererChangeEvent} to all registered listeners.
     *
     * @param visible  the flag (<code>null</code> permitted).
     *
     * @see #getShapesVisible()
     *
     * @deprecated As of 1.0.7 (the override facility is unnecessary, just
     *     use the per-series and base (default) settings).
     */
public void setShapesVisible(Boolean visible) {
  this.shapesVisible = visible;
  fireChangeEvent();
}

/**
     * Sets the 'shapes visible' for ALL series and sends a
     * {@link RendererChangeEvent} to all registered listeners.
     *
     * @param visible  the flag.
     *
     * @see #getShapesVisible()
     *
     * @deprecated As of 1.0.7, use the per-series and base level settings.
     */
/**
     * Sets the 'shapes visible' for ALL series and sends a
     * {@link RendererChangeEvent} to all registered listeners.
     *
     * @param visible  the flag.
     *
     * @see #getShapesVisible()
     *
     * @deprecated As of 1.0.7 (the override facility is unnecessary, just
     *     use the per-series and base (default) settings).
     */
public void setShapesVisible(boolean visible) {
  setShapesVisible(BooleanUtilities.valueOf(visible));
}

/**
     * Returns the flag used to control whether or not the shapes for a series
     * are visible.
     *
     * @param series  the series index (zero-based).
     *
     * @return A boolean.
     *
     * @see #setSeriesShapesVisible(int, Boolean)
     */
public Boolean getSeriesShapesVisible(int series) {
  return this.seriesShapesVisible.getBoolean(series);
}

/**
     * Sets the 'shapes 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 #getSeriesShapesVisible(int)
     */
public void setSeriesShapesVisible(int series, boolean visible) {
  setSeriesShapesVisible(series, BooleanUtilities.valueOf(visible));
}

/**
     * Sets the 'shapes 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.
     *
     * @see #getSeriesShapesVisible(int)
     */
public void setSeriesShapesVisible(int series, Boolean flag) {
  this.seriesShapesVisible.setBoolean(series, flag);
  fireChangeEvent();
}

/**
     * Returns the base 'shape visible' attribute.
     *
     * @return The base flag.
     *
     * @see #setBaseShapesVisible(boolean)
     */
public boolean getBaseShapesVisible() {
  return this.baseShapesVisible;
}

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

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None