Dimension getPreferredScrollableViewportSize() { return this.getPreferredSize(); // return new Dimension(width, 400); } /** * Gets the ScrollableUnitIncrement attribute of the Graph object. * * @return the ScrollableUnitIncrement value */ public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { return 5; } /** * Gets the ScrollableBlockIncrement attribute of the Graph object. * * @return the ScrollableBlockIncrement value */ public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { return (int) (visibleRect.width * .9); }
Dimension getPreferredScrollableViewportSize() { return this.getPreferredSize(); } /** * Gets the ScrollableUnitIncrement attribute of the Graph object. * * @return the ScrollableUnitIncrement value */ public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { return 5; } /** * Gets the ScrollableBlockIncrement attribute of the Graph object. * * @return the ScrollableBlockIncrement value */ public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { return (int) (visibleRect.width * .9); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/Graph.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/DistributionGraph.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Dimension getPreferredScrollableViewportSize() {
1
Dimension getPreferredScrollableViewportSize() {
2
		return this.getPreferredSize();
2
		return this.getPreferredSize();
3
		// return new Dimension(width, 400);
3
	
4
	}
4
}
5
	/**
5
	/**
6
	 * Gets the ScrollableUnitIncrement attribute of the Graph object.
6
	 * Gets the ScrollableUnitIncrement attribute of the Graph object.
7
	 * 
7
	 * 
8
	 * @return the ScrollableUnitIncrement value
8
	 * @return the ScrollableUnitIncrement value
9
	 */
9
	 */
10
	public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) {
10
	public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) {
11
		return 5;
11
		return 5;
12
	}
12
	}
13
	/**
13
	/**
14
	 * Gets the ScrollableBlockIncrement attribute of the Graph object.
14
	 * Gets the ScrollableBlockIncrement attribute of the Graph object.
15
	 * 
15
	 * 
16
	 * @return the ScrollableBlockIncrement value
16
	 * @return the ScrollableBlockIncrement value
17
	 */
17
	 */
18
	public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) {
18
	public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) {
19
		return (int) (visibleRect.width * .9);
19
		return (int) (visibleRect.width * .9);
20
	}
20
	}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0