Package javax.print.attribute.standard

Examples of javax.print.attribute.standard.MediaSizeName


        if( category == Media.class ){
          PaperSizeCollection sizes = settings.get_PaperSizes();
          List<Media> medias = new ArrayList<Media>();
          for( int i = 0; i < sizes.get_Count(); i++ ){
            PaperSize media = sizes.get_Item(i);       
            MediaSizeName mediaName = findMatchingMedia( sizes.get_Item(i) );
          if( mediaName != null
              && !medias.contains( mediaName )){ // slow but better than creating a HashSet here
            medias.add( mediaName);
            }
          }
View Full Code Here


      System.out.print("x"); //$NON-NLS-1$
      System.out.print(width * 25.4);
      System.out.println(" mm"); //$NON-NLS-1$
    }

    MediaSizeName bestMedia = null;
    float bestFit = Float.MAX_VALUE;
    for (MediaSizeName media : getSplitMedia()) {
      MediaSize mediaSize = MediaSize.getMediaSizeForName(media);
      if( mediaSize!=null ){
        if( DEBUGMODE ){
View Full Code Here

TOP

Related Classes of javax.print.attribute.standard.MediaSizeName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.