CloneSet119


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
101201.000class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1992104
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java
21012232
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
Next
Last
Clone Instance
1
Line Count
99
Source Line
2104
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java

/**
 * Removes a marker for the domain axis and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param marker  the marker.
 *
 * @return A boolean indicating whether or not the marker was actually
 *         removed.
 *
 * @since 1.0.7
 */
public boolean removeDomainMarker(Marker marker) {
  return removeDomainMarker(marker, Layer.FOREGROUND);
}

/**
 * Removes a marker for the domain axis in the specified layer and sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param marker the marker (<code>null</code> not permitted).
 * @param layer the layer (foreground or background).
 *
 * @return A boolean indicating whether or not the marker was actually
 *         removed.
 *
 * @since 1.0.7
 */
public boolean removeDomainMarker(Marker marker, Layer layer) {
  return removeDomainMarker(0, marker, layer);
}

/**
 * Removes a marker for a specific dataset/renderer and sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param index the dataset/renderer index.
 * @param marker the marker.
 * @param layer the layer (foreground or background).
 *
 * @return A boolean indicating whether or not the marker was actually
 *         removed.
 *
 * @since 1.0.7
 */
public boolean removeDomainMarker(int index, Marker marker, Layer layer) {
  return removeDomainMarker(index, marker, layer, true);
}

/**
 * Removes a marker for a specific dataset/renderer and, if requested,
 * sends a {@link PlotChangeEvent} to all registered listeners.
 *
 * @param index the dataset/renderer index.
 * @param marker the marker.
 * @param layer the layer (foreground or background).
 *
 * @return A boolean indicating whether or not the marker was actually
 *         removed.
 *
 * @since 1.0.10
 */
public boolean removeDomainMarker(int index, Marker marker, Layer layer, boolean notify) {
  ArrayList markers;
  if (layer == Layer.FOREGROUND) {
    markers = (ArrayList) this.foregroundDomainMarkers.get(new Integer(index));
  }
  else {
    markers = (ArrayList) this.backgroundDomainMarkers.get(new Integer(index));
  }
  if (markers == null) {
    return false;
  }
  boolean removed = markers.remove(marker);
  if (removed && notify) {
    fireChangeEvent();
  }
  return removed;
}

/**
 * Adds a marker for display (in the foreground) against the range axis and
 * sends a {@link PlotChangeEvent} to all registered listeners. Typically a
 * marker will be drawn by the renderer as a line perpendicular to the
 * range axis, however this is entirely up to the renderer.
 *
 * @param marker  the marker (<code>null</code> not permitted).
 *
 * @see #removeRangeMarker(Marker)
 */
public void addRangeMarker(Marker marker) {
  addRangeMarker(marker, Layer.FOREGROUND);
}

/**
 * Adds a marker for display against the range axis and sends a
 * {@link PlotChangeEvent} to all registered listeners.  Typically a marker
 * will be drawn by the renderer as a line perpendicular to the range axis,
 * however this is entirely up to the renderer.
 *
 * @param marker  the marker (<code>null</code> not permitted).
 * @param layer  the layer (foreground or background) (<code>null</code>
 *               not permitted).
 *
 * @see #removeRangeMarker(Marker, Layer)
 */
public void addRangeMarker(Marker marker, Layer layer) {
  addRangeMarker(0, marker, layer);
}


First
Previous
Clone Instance
2
Line Count
101
Source Line
2232
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java

/**
 * Removes a marker for the domain axis and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param marker  the marker.
 *
 * @return A boolean indicating whether or not the marker was actually
 *         removed.
 *
 * @since 1.0.7
 */
public boolean removeDomainMarker(Marker marker) {
  return removeDomainMarker(marker, Layer.FOREGROUND);
}

/**
 * Removes a marker for the domain axis in the specified layer and sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param marker the marker (<code>null</code> not permitted).
 * @param layer the layer (foreground or background).
 *
 * @return A boolean indicating whether or not the marker was actually
 *         removed.
 *
 * @since 1.0.7
 */
public boolean removeDomainMarker(Marker marker, Layer layer) {
  return removeDomainMarker(0, marker, layer);
}

/**
 * Removes a marker for a specific dataset/renderer and sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param index the dataset/renderer index.
 * @param marker the marker.
 * @param layer the layer (foreground or background).
 *
 * @return A boolean indicating whether or not the marker was actually
 *         removed.
 *
 * @since 1.0.7
 */
public boolean removeDomainMarker(int index, Marker marker, Layer layer) {
  return removeDomainMarker(index, marker, layer, true);
}

/**
 * Removes a marker for a specific dataset/renderer and, if requested,
 * sends a {@link PlotChangeEvent} to all registered listeners.
 *
 * @param index  the dataset/renderer index.
 * @param marker  the marker.
 * @param layer  the layer (foreground or background).
 * @param notify  notify listeners?
 *
 * @return A boolean indicating whether or not the marker was actually
 *         removed.
 *
 * @since 1.0.10
 */
public boolean removeDomainMarker(int index, Marker marker, Layer layer, boolean notify) {
  ArrayList markers;
  if (layer == Layer.FOREGROUND) {
    markers = (ArrayList) this.foregroundDomainMarkers.get(new Integer(index));
  }
  else {
    markers = (ArrayList) this.backgroundDomainMarkers.get(new Integer(index));
  }
  if (markers == null) {
    return false;
  }
  boolean removed = markers.remove(marker);
  if (removed && notify) {
    fireChangeEvent();
  }
  return removed;
}

/**
 * Adds a marker for the range axis and sends a {@link PlotChangeEvent} to
 * all registered listeners.
 * <P>
 * Typically a marker will be drawn by the renderer as a line perpendicular
 * to the range axis, however this is entirely up to the renderer.
 *
 * @param marker  the marker (<code>null</code> not permitted).
 *
 * @see #addRangeMarker(Marker, Layer)
 */
public void addRangeMarker(Marker marker) {
  addRangeMarker(marker, Layer.FOREGROUND);
}

/**
 * Adds a marker for the range axis in the specified layer and sends a
 * {@link PlotChangeEvent} to all registered listeners.
 * <P>
 * Typically a marker will be drawn by the renderer as a line perpendicular
 * to the range axis, however this is entirely up to the renderer.
 *
 * @param marker  the marker (<code>null</code> not permitted).
 * @param layer  the layer (foreground or background).
 *
 * @see #addRangeMarker(int, Marker, Layer)
 */
public void addRangeMarker(Marker marker, Layer layer) {
  addRangeMarker(0, marker, layer);
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * Removes a marker for the domain axis and sends a {@link PlotChangeEvent}
     * to all registered listeners.
     *
     * @param marker  the marker.
     *
     * @return A boolean indicating whether or not the marker was actually
     *         removed.
     *
     * @since 1.0.7
     */
public boolean removeDomainMarker(Marker marker) {
  return removeDomainMarker(marker, Layer.FOREGROUND);
}

/**
     * Removes a marker for the domain axis in the specified layer and sends a
     * {@link PlotChangeEvent} to all registered listeners.
     *
     * @param marker the marker (<code>null</code> not permitted).
     * @param layer the layer (foreground or background).
     *
     * @return A boolean indicating whether or not the marker was actually
     *         removed.
     *
     * @since 1.0.7
     */
public boolean removeDomainMarker(Marker marker, Layer layer) {
  return removeDomainMarker(0, marker, layer);
}

/**
     * Removes a marker for a specific dataset/renderer and sends a
     * {@link PlotChangeEvent} to all registered listeners.
     *
     * @param index the dataset/renderer index.
     * @param marker the marker.
     * @param layer the layer (foreground or background).
     *
     * @return A boolean indicating whether or not the marker was actually
     *         removed.
     *
     * @since 1.0.7
     */
public boolean removeDomainMarker(int index, Marker marker, Layer layer) {
  return removeDomainMarker(index, marker, layer, true);
}

/**
     * Removes a marker for a specific dataset/renderer and, if requested,
     * sends a {@link PlotChangeEvent} to all registered listeners.
     *
     * @param index  the dataset/renderer index.
     * @param marker  the marker.
     * @param layer  the layer (foreground or background).
     * @param notify  notify listeners?
     *
     * @return A boolean indicating whether or not the marker was actually
     *         removed.
     *
     * @since 1.0.10
     */
/**
     * Removes a marker for a specific dataset/renderer and, if requested,
     * sends a {@link PlotChangeEvent} to all registered listeners.
     *
     * @param index the dataset/renderer index.
     * @param marker the marker.
     * @param layer the layer (foreground or background).
     *
     * @return A boolean indicating whether or not the marker was actually
     *         removed.
     *
     * @since 1.0.10
     */
public boolean removeDomainMarker(int index, Marker marker, Layer layer, boolean notify) {
  ArrayList markers;
  if (layer == Layer.FOREGROUND) {
    markers = (ArrayList) this.foregroundDomainMarkers.get(new Integer(index));
  }
  else {
    markers = (ArrayList) this.backgroundDomainMarkers.get(new Integer(index));
  }
  if (markers == null) {
    return false;
  }
  boolean removed = markers.remove(marker);
  if (removed && notify) {
    fireChangeEvent();
  }
  return removed;
}

/**
     * Adds a marker for the range axis and sends a {@link PlotChangeEvent} to
     * all registered listeners.
     * <P>
     * Typically a marker will be drawn by the renderer as a line perpendicular
     * to the range axis, however this is entirely up to the renderer.
     *
     * @param marker  the marker (<code>null</code> not permitted).
     *
     * @see #addRangeMarker(Marker, Layer)
     */
/**
     * Adds a marker for display (in the foreground) against the range axis and
     * sends a {@link PlotChangeEvent} to all registered listeners. Typically a
     * marker will be drawn by the renderer as a line perpendicular to the
     * range axis, however this is entirely up to the renderer.
     *
     * @param marker  the marker (<code>null</code> not permitted).
     *
     * @see #removeRangeMarker(Marker)
     */
public void addRangeMarker(Marker marker) {
  addRangeMarker(marker, Layer.FOREGROUND);
}

/**
     * Adds a marker for the range axis in the specified layer and sends a
     * {@link PlotChangeEvent} to all registered listeners.
     * <P>
     * Typically a marker will be drawn by the renderer as a line perpendicular
     * to the range axis, however this is entirely up to the renderer.
     *
     * @param marker  the marker (<code>null</code> not permitted).
     * @param layer  the layer (foreground or background).
     *
     * @see #addRangeMarker(int, Marker, Layer)
     */
/**
     * Adds a marker for display against the range axis and sends a
     * {@link PlotChangeEvent} to all registered listeners.  Typically a marker
     * will be drawn by the renderer as a line perpendicular to the range axis,
     * however this is entirely up to the renderer.
     *
     * @param marker  the marker (<code>null</code> not permitted).
     * @param layer  the layer (foreground or background) (<code>null</code>
     *               not permitted).
     *
     * @see #removeRangeMarker(Marker, Layer)
     */
public void addRangeMarker(Marker marker, Layer layer) {
  addRangeMarker(0, marker, layer);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None