1 /* 2 * Copyright (C) 2008 Esmertec AG. 3 * Copyright (C) 2008 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 package com.android.mms.layout; 19 20 public interface LayoutParameters { 21 /* Layouts type definition */ 22 public static final int UNKNOWN = -1; 23 public static final int HVGA_LANDSCAPE = 10; 24 public static final int HVGA_PORTRAIT = 11; 25 26 /* Parameters for known layouts */ 27 public static final int HVGA_LANDSCAPE_WIDTH = 480; 28 public static final int HVGA_LANDSCAPE_HEIGHT = 320; 29 public static final int HVGA_PORTRAIT_WIDTH = 320; 30 public static final int HVGA_PORTRAIT_HEIGHT = 480; 31 32 /** 33 * Get the width of current layout. 34 */ getWidth()35 int getWidth(); 36 /** 37 * Get the height of current layout. 38 */ getHeight()39 int getHeight(); 40 /** 41 * Get the width of the image region of current layout. 42 */ getImageHeight()43 int getImageHeight(); 44 /** 45 * Get the height of the text region of current layout. 46 */ getTextHeight()47 int getTextHeight(); 48 /** 49 * Get the type of current layout. 50 */ getType()51 int getType(); 52 /** 53 * Get the type description of current layout. 54 */ getTypeDescription()55 String getTypeDescription(); 56 } 57