1f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy/* 2f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * Copyright (C) 2011 The Android Open Source Project 3f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * 4f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * Licensed under the Apache License, Version 2.0 (the "License"); 5f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * you may not use this file except in compliance with the License. 6f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * You may obtain a copy of the License at 7f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * 8f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * http://www.apache.org/licenses/LICENSE-2.0 9f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * 10f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * Unless required by applicable law or agreed to in writing, software 11f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * distributed under the License is distributed on an "AS IS" BASIS, 12f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * See the License for the specific language governing permissions and 14f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * limitations under the License. 15f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy */ 16f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy 17f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedypackage com.android.ex.chips.recipientchip; 18f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy 19f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedyimport android.graphics.Canvas; 20f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedyimport android.graphics.Rect; 21f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy 22f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy/** 23f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * RecipientChip defines a drawable object that contains information relevant to a 24f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * particular recipient. 25f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy */ 26f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedypublic interface DrawableRecipientChip extends BaseRecipientChip { 27f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy /** 28f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * Get the bounds of the chip; may be 0,0 if it is not visibly rendered. 29f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy */ 30f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy Rect getBounds(); 31f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy 32f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy /** 33f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy * Draw the chip. 34f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy */ 35f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy void draw(Canvas canvas); 36f1d0416bad440e015c8f09c3827acc19d939d71aScott Kennedy} 37