FileDocCategorySizeDatePackage
FocusFinderHelper.javaAPI DocAndroid 1.5 API1990Wed May 06 22:41:56 BST 2009android.view

FocusFinderHelper

public class FocusFinderHelper extends Object
A helper class that allows unit tests to access FocusFinder methods.
hide

Fields Summary
private FocusFinder
mFocusFinder
Constructors Summary
public FocusFinderHelper(FocusFinder focusFinder)
Wrap the FocusFinder object

        mFocusFinder = focusFinder;
    
Methods Summary
public booleanbeamBeats(int direction, android.graphics.Rect source, android.graphics.Rect rect1, android.graphics.Rect rect2)

        return mFocusFinder.beamBeats(direction, source, rect1, rect2);
    
public booleanbeamsOverlap(int direction, android.graphics.Rect rect1, android.graphics.Rect rect2)

        return mFocusFinder.beamsOverlap(direction, rect1, rect2);
    
public booleanisBetterCandidate(int direction, android.graphics.Rect source, android.graphics.Rect rect1, android.graphics.Rect rect2)

        return mFocusFinder.isBetterCandidate(direction, source, rect1, rect2);
    
public booleanisCandidate(android.graphics.Rect srcRect, android.graphics.Rect destRect, int direction)

        return mFocusFinder.isCandidate(srcRect, destRect, direction);
    
public static intmajorAxisDistance(int direction, android.graphics.Rect source, android.graphics.Rect dest)

        return FocusFinder.majorAxisDistance(direction, source, dest);
    
public static intmajorAxisDistanceToFarEdge(int direction, android.graphics.Rect source, android.graphics.Rect dest)

        return FocusFinder.majorAxisDistanceToFarEdge(direction, source, dest);