CloneSet182


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

/**
 * Returns the axis offset.
 *
 * @return The axis offset (never <code>null</code>).
 *
 * @see #setAxisOffset(RectangleInsets)
 */
public RectangleInsets getAxisOffset() {
  return this.axisOffset;
}

/**
 * Sets the axis offsets (gap between the data area and the axes) and
 * sends a {@link PlotChangeEvent} to all registered listeners.
 *
 * @param offset  the offset (<code>null</code> not permitted).
 *
 * @see #getAxisOffset()
 */
public void setAxisOffset(RectangleInsets offset) {
  if (offset == null) {
    throw new IllegalArgumentException("Null \'offset\' argument.");
  }
  this.axisOffset = offset;
  fireChangeEvent();
}

/**
 * Returns the domain axis for the plot.  If the domain axis for this plot
 * is <code>null</code>, then the method will return the parent plot's
 * domain axis (if there is a parent plot).
 *
 * @return The domain axis (<code>null</code> permitted).
 *
 * @see #setDomainAxis(CategoryAxis)
 */
public CategoryAxis getDomainAxis() {
  return getDomainAxis(0);
}

/**
 * Returns a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The axis (<code>null</code> possible).
 *
 * @see #setDomainAxis(int, CategoryAxis)
 */
public CategoryAxis getDomainAxis(int index) {
  CategoryAxis result = null;
  if (index < this.domainAxes.size()) {
    result = (CategoryAxis) this.domainAxes.get(index);
  }
  if (result == null) {
    Plot parent = getParent();
    if (parent instanceof CategoryPlot) {
      CategoryPlot cp = (CategoryPlot) parent;
      result = cp.getDomainAxis(index);
    }
  }
  return result;
}

/**
 * Sets the domain axis for the plot and sends a {@link PlotChangeEvent} to
 * all registered listeners.
 *
 * @param axis  the axis (<code>null</code> permitted).
 *
 * @see #getDomainAxis()
 */
public void setDomainAxis(CategoryAxis axis) {
  setDomainAxis(0, axis);
}

/**
 * Sets a domain axis and sends a {@link PlotChangeEvent} to all
 * registered listeners.
 *
 * @param index  the axis index.
 * @param axis  the axis (<code>null</code> permitted).
 *
 * @see #getDomainAxis(int)
 */
public void setDomainAxis(int index, CategoryAxis axis) {
  setDomainAxis(index, axis, true);
}


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

/**
 * Returns the axis offset.
 *
 * @return The axis offset (never <code>null</code>).
 *
 * @see #setAxisOffset(RectangleInsets)
 */
public RectangleInsets getAxisOffset() {
  return this.axisOffset;
}

/**
 * Sets the axis offsets (gap between the data area and the axes) and sends
 * a {@link PlotChangeEvent} to all registered listeners.
 *
 * @param offset  the offset (<code>null</code> not permitted).
 *
 * @see #getAxisOffset()
 */
public void setAxisOffset(RectangleInsets offset) {
  if (offset == null) {
    throw new IllegalArgumentException("Null \'offset\' argument.");
  }
  this.axisOffset = offset;
  fireChangeEvent();
}

/**
 * Returns the domain axis with index 0.  If the domain axis for this plot
 * is <code>null</code>, then the method will return the parent plot's
 * domain axis (if there is a parent plot).
 *
 * @return The domain axis (possibly <code>null</code>).
 *
 * @see #getDomainAxis(int)
 * @see #setDomainAxis(ValueAxis)
 */
public ValueAxis getDomainAxis() {
  return getDomainAxis(0);
}

/**
 * Returns the domain axis with the specified index, or <code>null</code>.
 *
 * @param index  the axis index.
 *
 * @return The axis (<code>null</code> possible).
 *
 * @see #setDomainAxis(int, ValueAxis)
 */
public ValueAxis getDomainAxis(int index) {
  ValueAxis result = null;
  if (index < this.domainAxes.size()) {
    result = (ValueAxis) this.domainAxes.get(index);
  }
  if (result == null) {
    Plot parent = getParent();
    if (parent instanceof XYPlot) {
      XYPlot xy = (XYPlot) parent;
      result = xy.getDomainAxis(index);
    }
  }
  return result;
}

/**
 * Sets the domain axis for the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param axis  the new axis (<code>null</code> permitted).
 *
 * @see #getDomainAxis()
 * @see #setDomainAxis(int, ValueAxis)
 */
public void setDomainAxis(ValueAxis axis) {
  setDomainAxis(0, axis);
}

/**
 * Sets a domain axis and sends a {@link PlotChangeEvent} to all
 * registered listeners.
 *
 * @param index  the axis index.
 * @param axis  the axis (<code>null</code> permitted).
 *
 * @see #getDomainAxis(int)
 * @see #setRangeAxis(int, ValueAxis)
 */
public void setDomainAxis(int index, ValueAxis axis) {
  setDomainAxis(index, axis, true);
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Returns the axis offset.
     *
     * @return The axis offset (never <code>null</code>).
     *
     * @see #setAxisOffset(RectangleInsets)
     */
public RectangleInsets getAxisOffset() {
  return this.axisOffset;
}

/**
     * Sets the axis offsets (gap between the data area and the axes) and sends
     * a {@link PlotChangeEvent} to all registered listeners.
     *
     * @param offset  the offset (<code>null</code> not permitted).
     *
     * @see #getAxisOffset()
     */
/**
     * Sets the axis offsets (gap between the data area and the axes) and
     * sends a {@link PlotChangeEvent} to all registered listeners.
     *
     * @param offset  the offset (<code>null</code> not permitted).
     *
     * @see #getAxisOffset()
     */
public void setAxisOffset(RectangleInsets offset) {
  if (offset == null) {
    throw new IllegalArgumentException("Null \'offset\' argument.");
  }
  this.axisOffset = offset;
  fireChangeEvent();
}

/**
     * Returns the domain axis with index 0.  If the domain axis for this plot
     * is <code>null</code>, then the method will return the parent plot's
     * domain axis (if there is a parent plot).
     *
     * @return The domain axis (possibly <code>null</code>).
     *
     * @see #getDomainAxis(int)
     * @see #setDomainAxis(ValueAxis)
     */
/**
     * Returns the domain axis for the plot.  If the domain axis for this plot
     * is <code>null</code>, then the method will return the parent plot's
     * domain axis (if there is a parent plot).
     *
     * @return The domain axis (<code>null</code> permitted).
     *
     * @see #setDomainAxis(CategoryAxis)
     */
public [[#variable1aae9780]] getDomainAxis() {
  return getDomainAxis(0);
}

/**
     * Returns the domain axis with the specified index, or <code>null</code>.
     *
     * @param index  the axis index.
     *
     * @return The axis (<code>null</code> possible).
     *
     * @see #setDomainAxis(int, ValueAxis)
     */
/**
     * Returns a domain axis.
     *
     * @param index  the axis index.
     *
     * @return The axis (<code>null</code> possible).
     *
     * @see #setDomainAxis(int, CategoryAxis)
     */
public [[#variable1aae9780]] getDomainAxis(int index) {
   [[#variable1aae9780]] result = null;
  if (index < this.domainAxes.size()) {
    result = ( [[#variable1aae9780]]) this.domainAxes.get(index);
  }
  if (result == null) {
    Plot parent = getParent();
    if (parent instanceof [[#variable1aada560]]) {
       [[#variable1aada560]]  [[#variable1aae97a0]]= ( [[#variable1aada560]]) parent;
      result = [[#variable1aae97a0]].getDomainAxis(index);
    }
  }
  return result;
}

/**
     * Sets the domain axis for the plot and sends a {@link PlotChangeEvent}
     * to all registered listeners.
     *
     * @param axis  the new axis (<code>null</code> permitted).
     *
     * @see #getDomainAxis()
     * @see #setDomainAxis(int, ValueAxis)
     */
/**
     * Sets the domain axis for the plot and sends a {@link PlotChangeEvent} to
     * all registered listeners.
     *
     * @param axis  the axis (<code>null</code> permitted).
     *
     * @see #getDomainAxis()
     */
public void setDomainAxis( [[#variable1aae9780]] axis) {
  setDomainAxis(0, axis);
}

/**
     * Sets a domain axis and sends a {@link PlotChangeEvent} to all
     * registered listeners.
     *
     * @param index  the axis index.
     * @param axis  the axis (<code>null</code> permitted).
     *
     * @see #getDomainAxis(int)
     * @see #setRangeAxis(int, ValueAxis)
     */
/**
     * Sets a domain axis and sends a {@link PlotChangeEvent} to all
     * registered listeners.
     *
     * @param index  the axis index.
     * @param axis  the axis (<code>null</code> permitted).
     *
     * @see #getDomainAxis(int)
     */
public void setDomainAxis(int index, [[#variable1aae9780]] axis) {
  setDomainAxis(index, axis, true);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1aae9780]]
CategoryAxis 
12[[#1aae9780]]
ValueAxis 
21[[#1aada560]]
CategoryPlot 
22[[#1aada560]]
XYPlot 
31[[#1aae97a0]]
cp 
32[[#1aae97a0]]
xy