當前位置: 首頁>>代碼示例>>Java>>正文


Java MediaSizeName.ISO_A4屬性代碼示例

本文整理匯總了Java中javax.print.attribute.standard.MediaSizeName.ISO_A4屬性的典型用法代碼示例。如果您正苦於以下問題:Java MediaSizeName.ISO_A4屬性的具體用法?Java MediaSizeName.ISO_A4怎麽用?Java MediaSizeName.ISO_A4使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在javax.print.attribute.standard.MediaSizeName的用法示例。


在下文中一共展示了MediaSizeName.ISO_A4屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getMediaSizeName

/**
 * 	Get Media Size
 * 	@return media size
 */
public MediaSizeName getMediaSizeName()
{
	//AA Goodwill: Custom Paper Support
	if(m_mediaSize == null)
		return MediaSizeName.ISO_A4;
	//End Of AA Goodwill
	return m_mediaSize.getMediaSizeName();
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:12,代碼來源:CPaper.java

示例2: getSupportedAttributeValues

@Override
public Object getSupportedAttributeValues(Class<? extends Attribute> category, DocFlavor flavor, AttributeSet attributes) {
	if (category == Media.class) {
		return new Media[] { MediaSizeName.NA_LETTER, MediaSizeName.NA_LEGAL, MediaSizeName.ISO_A4 };
	}
	if (category == OrientationRequested.class) {
		return new OrientationRequested[] { OrientationRequested.PORTRAIT, OrientationRequested.LANDSCAPE };
	}
	return null;
}
 
開發者ID:Ayutac,項目名稱:toolkit,代碼行數:10,代碼來源:DummyPrintService.java

示例3: selectMediaSizeNameISO

public MediaSizeName selectMediaSizeNameISO(String size) {         
    if (size.equalsIgnoreCase("iso_a0")) {
        mediaSizeName = MediaSizeName.ISO_A0;
    } else if (size.equalsIgnoreCase("iso_a1")) {
        mediaSizeName = MediaSizeName.ISO_A1;
    } else if (size.equalsIgnoreCase("iso_a2")) {
        mediaSizeName = MediaSizeName.ISO_A2;
    } else if (size.equalsIgnoreCase("iso_a3")) {
        mediaSizeName = MediaSizeName.ISO_A3;
    } else if (size.equalsIgnoreCase("iso_a4")) {
        mediaSizeName = MediaSizeName.ISO_A4;
    } else if (size.equalsIgnoreCase("iso_a5")) {
        mediaSizeName = MediaSizeName.ISO_A5;
    } else if (size.equalsIgnoreCase("iso_a6")) {
        mediaSizeName = MediaSizeName.ISO_A6;
    } else if (size.equalsIgnoreCase("iso_a7")) {
        mediaSizeName = MediaSizeName.ISO_A7;
    } else if (size.equalsIgnoreCase("iso_a8")) {
        mediaSizeName = MediaSizeName.ISO_A8;
    } else if (size.equalsIgnoreCase("iso_a9")) {
        mediaSizeName = MediaSizeName.ISO_A9;
    } else if (size.equalsIgnoreCase("iso_a10")) {
        mediaSizeName = MediaSizeName.ISO_A10;
    } else if (size.equalsIgnoreCase("iso_b0")) {
        mediaSizeName = MediaSizeName.ISO_B0;
    } else if (size.equalsIgnoreCase("iso_b1")) {
        mediaSizeName = MediaSizeName.ISO_B1;
    } else if (size.equalsIgnoreCase("iso_b2")) {
        mediaSizeName = MediaSizeName.ISO_B2;
    } else if (size.equalsIgnoreCase("iso_b3")) {
        mediaSizeName = MediaSizeName.ISO_B3;
    } else if (size.equalsIgnoreCase("iso_b4")) {
        mediaSizeName = MediaSizeName.ISO_B4;
    } else if (size.equalsIgnoreCase("iso_b5")) {
        mediaSizeName = MediaSizeName.ISO_B5;
    } else if (size.equalsIgnoreCase("iso_b6")) {
        mediaSizeName = MediaSizeName.ISO_B6;
    } else if (size.equalsIgnoreCase("iso_b7")) {
        mediaSizeName = MediaSizeName.ISO_B7;
    } else if (size.equalsIgnoreCase("iso_b8")) {
        mediaSizeName = MediaSizeName.ISO_B8;
    } else if (size.equalsIgnoreCase("iso_b9")) {
        mediaSizeName = MediaSizeName.ISO_B9;
    } else if (size.equalsIgnoreCase("iso_b10")) {
        mediaSizeName = MediaSizeName.ISO_B10;
    } else if (size.equalsIgnoreCase("iso_c0")) {
        mediaSizeName = MediaSizeName.ISO_C0;
    } else if (size.equalsIgnoreCase("iso_c1")) {
        mediaSizeName = MediaSizeName.ISO_C1;
    } else if (size.equalsIgnoreCase("iso_c2")) {
        mediaSizeName = MediaSizeName.ISO_C2;
    } else if (size.equalsIgnoreCase("iso_c3")) {
        mediaSizeName = MediaSizeName.ISO_C3;
    } else if (size.equalsIgnoreCase("iso_c4")) {
        mediaSizeName = MediaSizeName.ISO_C4;
    } else if (size.equalsIgnoreCase("iso_c5")) {
        mediaSizeName = MediaSizeName.ISO_C5;
    } else if (size.equalsIgnoreCase("iso_c6")) {
        mediaSizeName = MediaSizeName.ISO_C6;
    }
    return mediaSizeName;
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:62,代碼來源:MediaSizeAssigner.java


注:本文中的javax.print.attribute.standard.MediaSizeName.ISO_A4屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。