Code example for Rect

Methods: isEmpty

0
    } 
 
    @Override 
    public int getIntrinsicHeight() { 
        //Return the vertical bounds measured, or -1 if none 
        if (mTextBounds.isEmpty()) {
            return -1; 
        } else { 
            return (mTextBounds.bottom - mTextBounds.top);
        } 
    } 
 
    @Override 
    public int getIntrinsicWidth() { 
        //Return the horizontal bounds measured, or -1 if none 
        if (mTextBounds.isEmpty()) {
            return -1; 
        } else { 
            return (mTextBounds.right - mTextBounds.left);
        } 
Stop searching for code, let great code find you!  Add Codota to your java IDE