if ((type != HVGA_LANDSCAPE) && (type != HVGA_PORTRAIT)) { throw new IllegalArgumentException( "Bad layout type detected: " + type); } if (LOCAL_LOGV) { Log.v(TAG, "HVGALayoutParameters.<init>(" + type + ")."); } mType = type;
return mType == HVGA_LANDSCAPE ? HVGA_LANDSCAPE_HEIGHT : HVGA_PORTRAIT_HEIGHT;
return mType == HVGA_LANDSCAPE ? IMAGE_HEIGHT_LANDSCAPE : IMAGE_HEIGHT_PORTRAIT;
return mType == HVGA_LANDSCAPE ? TEXT_HEIGHT_LANDSCAPE : TEXT_HEIGHT_PORTRAIT;
return mType;
return mType == HVGA_LANDSCAPE ? "HVGA-L" : "HVGA-P";
return mType == HVGA_LANDSCAPE ? HVGA_LANDSCAPE_WIDTH : HVGA_PORTRAIT_WIDTH;