CloneSet207


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

/**
 * Draws a domain crosshair.
 *
 * @param g2  the graphics target.
 * @param dataArea  the data area.
 * @param orientation  the plot orientation.
 * @param value  the crosshair value.
 * @param axis  the axis against which the value is measured.
 * @param stroke  the stroke used to draw the crosshair line.
 * @param paint  the paint used to draw the crosshair line.
 *
 * @since 1.0.4
 */
protected void drawDomainCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint) {
  if (axis.getRange().contains(value)) {
    Line2D line = null;
    if (orientation == PlotOrientation.VERTICAL) {
      double xx = axis.valueToJava2D(value, dataArea, RectangleEdge.BOTTOM);
      line = new Line2D.Double(xx, dataArea.getMinY(), xx, dataArea.getMaxY());
    }
    else {
      double yy = axis.valueToJava2D(value, dataArea, RectangleEdge.LEFT);
      line = new Line2D.Double(dataArea.getMinX(), yy, dataArea.getMaxX(), yy);
    }
    g2.setStroke(stroke);
    g2.setPaint(paint);
    g2.draw(line);
  }
}


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

/**
 * Draws a range crosshair.
 *
 * @param g2  the graphics target.
 * @param dataArea  the data area.
 * @param orientation  the plot orientation.
 * @param value  the crosshair value.
 * @param axis  the axis against which the value is measured.
 * @param stroke  the stroke used to draw the crosshair line.
 * @param paint  the paint used to draw the crosshair line.
 *
 * @since 1.0.4
 */
protected void drawRangeCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint) {
  if (axis.getRange().contains(value)) {
    Line2D line = null;
    if (orientation == PlotOrientation.HORIZONTAL) {
      double xx = axis.valueToJava2D(value, dataArea, RectangleEdge.BOTTOM);
      line = new Line2D.Double(xx, dataArea.getMinY(), xx, dataArea.getMaxY());
    }
    else {
      double yy = axis.valueToJava2D(value, dataArea, RectangleEdge.LEFT);
      line = new Line2D.Double(dataArea.getMinX(), yy, dataArea.getMaxX(), yy);
    }
    g2.setStroke(stroke);
    g2.setPaint(paint);
    g2.draw(line);
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Draws a range crosshair.
     *
     * @param g2  the graphics target.
     * @param dataArea  the data area.
     * @param orientation  the plot orientation.
     * @param value  the crosshair value.
     * @param axis  the axis against which the value is measured.
     * @param stroke  the stroke used to draw the crosshair line.
     * @param paint  the paint used to draw the crosshair line.
     *
     * @since 1.0.4
     */
/**
     * Draws a domain crosshair.
     *
     * @param g2  the graphics target.
     * @param dataArea  the data area.
     * @param orientation  the plot orientation.
     * @param value  the crosshair value.
     * @param axis  the axis against which the value is measured.
     * @param stroke  the stroke used to draw the crosshair line.
     * @param paint  the paint used to draw the crosshair line.
     *
     * @since 1.0.4
     */
protected void [[#variable1a824020]](Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint) {
  if (axis.getRange().contains(value)) {
    Line2D line = null;
    if (orientation == PlotOrientation. [[#variable1a81ffc0]]) {
      double xx = axis.valueToJava2D(value, dataArea, RectangleEdge.BOTTOM);
      line = new Line2D.Double(xx, dataArea.getMinY(), xx, dataArea.getMaxY());
    }
    else {
      double yy = axis.valueToJava2D(value, dataArea, RectangleEdge.LEFT);
      line = new Line2D.Double(dataArea.getMinX(), yy, dataArea.getMaxX(), yy);
    }
    g2.setStroke(stroke);
    g2.setPaint(paint);
    g2.draw(line);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a824020]]
drawDomainCrosshair 
12[[#1a824020]]
drawRangeCrosshair 
21[[#1a81ffc0]]
VERTICAL 
22[[#1a81ffc0]]
HORIZONTAL