CloneSet280


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

/**
 * Returns the location for a domain axis.  If this hasn't been set
 * explicitly, the method returns the location that is opposite to the
 * primary domain axis location.
 *
 * @param index  the axis index.
 *
 * @return The location (never <code>null</code>).
 *
 * @see #setDomainAxisLocation(int, AxisLocation)
 */
public AxisLocation getDomainAxisLocation(int index) {
  AxisLocation result = null;
  if (index < this.domainAxisLocations.size()) {
    result = (AxisLocation) this.domainAxisLocations.get(index);
  }
  if (result == null) {
    result = AxisLocation.getOpposite(getDomainAxisLocation());
  }
  return result;
}

/**
 * Sets the location for a domain axis and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param index  the axis index.
 * @param location  the location (<code>null</code> not permitted for index
 *     0).
 *
 * @see #getDomainAxisLocation(int)
 */
public void setDomainAxisLocation(int index, AxisLocation location) {
  // delegate...
  setDomainAxisLocation(index, location, true);
}

/**
 * Sets the axis location for a domain axis and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param index  the axis index.
 * @param location  the location (<code>null</code> not permitted for
 *     index 0).
 * @param notify  notify listeners?
 *
 * @since 1.0.5
 *
 * @see #getDomainAxisLocation(int)
 * @see #setRangeAxisLocation(int, AxisLocation, boolean)
 */
public void setDomainAxisLocation(int index, AxisLocation location, boolean notify) {
  if (index == 0 && location == null) {
    throw new IllegalArgumentException("Null \'location\' for index 0 not permitted.");
  }
  this.domainAxisLocations.set(index, location);
  if (notify) {
    fireChangeEvent();
  }
}


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

/**
 * Returns the location for a range axis.  If this hasn't been set
 * explicitly, the method returns the location that is opposite to the
 * primary range axis location.
 *
 * @param index  the axis index.
 *
 * @return The location (never <code>null</code>).
 *
 * @see #setRangeAxisLocation(int, AxisLocation)
 */
public AxisLocation getRangeAxisLocation(int index) {
  AxisLocation result = null;
  if (index < this.rangeAxisLocations.size()) {
    result = (AxisLocation) this.rangeAxisLocations.get(index);
  }
  if (result == null) {
    result = AxisLocation.getOpposite(getRangeAxisLocation());
  }
  return result;
}

/**
 * Sets the location for a range axis and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param index  the axis index.
 * @param location  the location (<code>null</code> permitted).
 *
 * @see #getRangeAxisLocation(int)
 */
public void setRangeAxisLocation(int index, AxisLocation location) {
  // delegate...
  setRangeAxisLocation(index, location, true);
}

/**
 * Sets the axis location for a domain axis and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param index  the axis index.
 * @param location  the location (<code>null</code> not permitted for
 *     index 0).
 * @param notify  notify listeners?
 *
 * @since 1.0.5
 *
 * @see #getRangeAxisLocation(int)
 * @see #setDomainAxisLocation(int, AxisLocation, boolean)
 */
public void setRangeAxisLocation(int index, AxisLocation location, boolean notify) {
  if (index == 0 && location == null) {
    throw new IllegalArgumentException("Null \'location\' for index 0 not permitted.");
  }
  this.rangeAxisLocations.set(index, location);
  if (notify) {
    fireChangeEvent();
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Returns the location for a domain axis.  If this hasn't been set
     * explicitly, the method returns the location that is opposite to the
     * primary domain axis location.
     *
     * @param index  the axis index.
     *
     * @return The location (never <code>null</code>).
     *
     * @see #setDomainAxisLocation(int, AxisLocation)
     */
/**
     * Returns the location for a range axis.  If this hasn't been set
     * explicitly, the method returns the location that is opposite to the
     * primary range axis location.
     *
     * @param index  the axis index.
     *
     * @return The location (never <code>null</code>).
     *
     * @see #setRangeAxisLocation(int, AxisLocation)
     */
public AxisLocation  [[#variable1a89e3e0]](int index) {
  AxisLocation result = null;
  if (index < this. [[#variable1a89e340]].size()) {
    result = (AxisLocation) this. [[#variable1a89e340]].get(index);
  }
  if (result == null) {
    result = AxisLocation.getOpposite( [[#variable1a89e3e0]]());
  }
  return result;
}

/**
     * Sets the location for a domain axis and sends a {@link PlotChangeEvent}
     * to all registered listeners.
     *
     * @param index  the axis index.
     * @param location  the location (<code>null</code> not permitted for index
     *     0).
     *
     * @see #getDomainAxisLocation(int)
     */
/**
     * Sets the location for a range axis and sends a {@link PlotChangeEvent}
     * to all registered listeners.
     *
     * @param index  the axis index.
     * @param location  the location (<code>null</code> permitted).
     *
     * @see #getRangeAxisLocation(int)
     */
public void [[#variable1a89e2c0]](int index, AxisLocation location) {
   [[#variable1a89e2c0]](index, location, true);
}

/**
     * Sets the axis location for a domain axis and, if requested, sends a
     * {@link PlotChangeEvent} to all registered listeners.
     *
     * @param index  the axis index.
     * @param location  the location (<code>null</code> not permitted for
     *     index 0).
     * @param notify  notify listeners?
     *
     * @since 1.0.5
     *
     * @see #getDomainAxisLocation(int)
     * @see #setRangeAxisLocation(int, AxisLocation, boolean)
     */
/**
     * Sets the axis location for a domain axis and, if requested, sends a
     * {@link PlotChangeEvent} to all registered listeners.
     *
     * @param index  the axis index.
     * @param location  the location (<code>null</code> not permitted for
     *     index 0).
     * @param notify  notify listeners?
     *
     * @since 1.0.5
     *
     * @see #getRangeAxisLocation(int)
     * @see #setDomainAxisLocation(int, AxisLocation, boolean)
     */
public void [[#variable1a89e2c0]](int index, AxisLocation location, boolean notify) {
  if (index == 0 && location == null) {
    throw new IllegalArgumentException("Null \'location\' for index 0 not permitted.");
  }
  this. [[#variable1a89e340]].set(index, location);
  if (notify) {
    fireChangeEvent();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a89e3e0]]
getDomainAxisLocation 
12[[#1a89e3e0]]
getRangeAxisLocation 
21[[#1a89e340]]
domainAxisLocations 
22[[#1a89e340]]
rangeAxisLocations 
31[[#1a89e2c0]]
setDomainAxisLocation 
32[[#1a89e2c0]]
setRangeAxisLocation