Printing of the image display area is to small 2 read large displays

Printing of the image display area is to small to read on some large displays
Need to restrict the image resizing in generating the print output to a minimum size (to allow it to be readable) and allow the printed output to flow into a multiple pages wide by multiple pages in length if necessary. Currently it is restricted to one page.
below is the code
*public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException {*
if (pageIndex != 0)
return NO_SUCH_PAGE;
Graphics2D g2d = (Graphics2D) g;
Rectangle2D.Double printBounds = new Rectangle2D.Double(
pageFormat.getImageableX(),
pageFormat.getImageableY(),
pageFormat.getImageableWidth(),
pageFormat.getImageableHeight()
*// Print the header and reduce the height for printing*
float headerHeight = printHeader(printBounds, g2d);
printBounds.y += headerHeight;
printBounds.height -= headerHeight;
*// Carve off the amount of space needed for the footer*
printBounds.height -= getFooterHeight(g2d);
*// Print the nodes and edges*
printDisplay( printBounds, g2d, 0 );
*if (footer != null) {*
printBounds.y += (printBounds.height + 15);
printFooter(printBounds, g2d);
return PAGE_EXISTS;
=================================
*protected void printDisplay( Rectangle2D.Double printBounds, Graphics2D g2d, double margin ) {*
*// Get a rectangle that represents the bounds of all of the DisplayEntities*
Rectangle r = null;
*for (Enumeration e=displayManager.getEntitySet().getEntityEnumerati on();e.hasMoreElements();) {*
DisplayEntity de = (DisplayEntity)e.nextElement();
if (r == null)
r = de.getBounds();
else
r = r.union(de.getBounds());
*// Get that as doubles, rather than ints, and expand by half the margin*
*// height in all directions*
Rectangle2D.Double entityBounds = new Rectangle2D.Double(r.x,r.y,r.width,r.height);
entityBounds.x -= margin/2;
entityBounds.y -= margin/2;
entityBounds.width += margin;
entityBounds.height += margin;
*// See if height and/or width was specified*
Unit specifiedSize = configuration.getHeight();
double printHeight = (specifiedSize != null) ?
specifiedSize.getValueAsPixels((int)printBounds.he ight) :
printBounds.height;
specifiedSize = configuration.getWidth();
double printWidth = (specifiedSize != null) ?
specifiedSize.getValueAsPixels((int)printBounds.wi dth) :
printBounds.width;
*// Figure out the ratio of print-bounds to the entities' bounds*
double scaleX = 1;
double scaleY = 1;
*// See if we need to scale*
boolean canExpand = configuration.expandToFit();
boolean canShrink = configuration.shrinkToFit();
*if (canExpand == false && canShrink == false) {*
scaleX = scaleY = configuration.getScale();
*else {*
if ((canShrink && canExpand) ||
*(canShrink &&*
*(entityBounds.width > printWidth ||*
entityBounds.height > printHeight)) ||
*(canExpand &&*
*(entityBounds.width < printWidth ||*
*entityBounds.height < printHeight))) {*
scaleX = printWidth / entityBounds.width;
scaleY = printHeight / entityBounds.height;
*if (configuration.maintainAspectRatio()) { // Scale the same*
if (scaleX > scaleY)
scaleX = scaleY;
else
scaleY = scaleX;
above methods am using for printing image. but in large display i cant able to read letters.
Thanks in advance
Srini

1. You didn't bother to reply to the three responses on [url https://forums.oracle.com/forums/message.jspa?messageID=10061953#10061953]your earlier thread
2. You didn't bother to read the announcements at the top of each forum listing to learn how to post code.
Why should anyone bother to try to help you?
db

Similar Messages

  • TS3276 the images (attachments) are automatically resized (smaller) when I send them to a customer. My email screen does not show a drop down menu box where you can leave as actual size. Is there a setting elsewhere that can be set.

    Any suggestions on problem I have. I receive images, say a file that is 3 mgs through email on Safari mail and when I try to resend it or forward it or any other larger file, when it sends the file is reduced by about 1/3. My screen does not show and drop down menu with a feature to keep actual size or reduce that is suggested when I looked up solutions to the problem.  I can't find a setting anywhere in mail that I can change to make sure my files are kept at actual size. I figure a setting got changed -don't know how - but it happened about a month ago. Caused problems as I work in graphics can't send files to clients as they come out too small. Any suggestions on how to fix.
    Thanks

    What email program are you using? And what do you mean by "Safari mail"?

  • How to solve the image display problem in the iTunes Store

    Hi guys!
    I just want to give a work-around for all of you having the image display problem in the iTunes Store. In my case only the square images in the slider sections won't load:
    I had this in my last W7-installation and got it again in W8 after the first few weeks.
    There are a lot of reports about this problem out there and adhoc solutions like 'clear the cache' or 'reinstall and drink ice tea' that do not work. It is obviously a file request error. It is all about finding out which server addresses get blocked by your computer.
    Solution: Go to your firewall and your Anti-virus-program. There must be a whitelist option. In Kaspersky, check the web-options, the banner-options and the firewall-options, because the all have whitelists. The following addresses have to be whitelisted:
    *.apple
    *.mzstatic.apple.com.akadns.net
    *.mzstatic.com.edgesuite.net
    *.da1.akamai.net
    *.itunes.apple.com
    se.itunes.apple.com
    upp.itunes.apple.com
    ax.init.itunes.apple.com
    xp.apple.com
    *.mzstatic.com
    client-api.itunes.apple.com
    www.apple.com.edgekey.net
    www.isg-apple.com.akadns.net
    Press Ctrl + R in the iTunes Shop then and browse throught the music sections. All images should be displayed correctly now.
    If not, there might be more Apple servers involved in your case. You can find them by running a DNS sniffing tool like the DNS query sniffer by Nirsoft or Wireshark.

    Phone restarting randomly could be loose battery. Tighten by putting a small strip of electrical tape on the back edge.
    THE BITTERNESS OF POOR QUALITY, LINGERS LONG AFTER THE CHEAPNESS OF PRICE, IS SOON FORGOTTEN.

  • How to programmatically control the Image display size

    I wonder if
    it is possible to let the Vi adapt the size of the VISION image display if the
    user zooms in the displayed picture (as can be done in other graphical software
    like Photoshop or ImageI). Is there something prepared?

    If you are using LV 7.1, there is a property node that let you define the size of the image display.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Image size.vi ‏64 KB

  • What I'm trying to do is when I scroll down the page have the images that are on the page stay the same look as I scroll

    What I'm trying to do is when I scroll down the page have the images that are on the page stay the same look as I scroll

    Use the scroll motion tools and set the settings all to 0

  • Why won't the images display in this flash widget?

    why won't the images display in this flash widget?
    http://www.coffeeandcandles.com/Wholesale_s/41.htm

    more info would help. If you're using actionscript and
    loading images from a folder maybe your path to that location is
    wrong. It's possible that your images aren't in the right layer or
    level but noticed that when initially published.

  • Show the line after draw with IMAQ selectline.vi in the image display

    hi..
    may i know how to show the line on the image display after i draw the line by using the IMAQ select line.vi??
    i use the the IMAQ select line.vi for drawing few couples of lines...but i don know how to show it all on the image display...
    because i will forget the location of the lines after i draw it by IMAQ select line.vi...
    thanks for help..

    Hey,
    Just use IMAQ Draw.vi
    Christian

  • When i browse with firefox the search results come up too small to read and I can't find any menu buttons (ie, can't find anywhere to zoom in or the view menu)

    Have just got a new computer. Downloaded firefox as it has always been better than explorer and I've never had trouble on previous computers. It seemed to download okay. I set google as my home page. When I type a search phrase into it, the results page comes up too small to read. It's like it's normal but miniature. You know how google has google images, googlevideos, google maps across the top of it, if I click on the minature 'images' word, it comes up with the google images page but also very tiny. But if I click the mini 'videos' word, the videos search page is normal sized and so is the maps page.
    It's driving me crazy because the initial page seems okay but there's no normal google stuff on that either, and then when I try to search for something, it goes tiny.

    Hello Ashley.
    You may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    On the other hand, you may have Firefox configured to display fonts like that. Check Tools > Options > Content > Fonts & Colors and see that the font size is not too small. In my experience, sizes bellow 16 will be way to small to read.

  • Printing from a applet toolbar the image displayed in the applet

    Hi ,
    I have a JApplet which displays a tiff image. The applet uses JAI API and Java 2D for printing. I can zoom in . zoom out , invert the image and I am printing the displayed image also .
    In the action handler class for the print button , I have made an inner class implementing printable and executing the print function.
    I am doing printing via a separate thread as i don't want my action handler class to keep waiting till the image gets printed . The user should be able to manipulate the image after it has clicked on the "ok" of the print dialog, while the image is being printed. This is the reason for printing the image in a separate thread
    and the actual printing process is a synchronized method called by the run method of the thread .
    If I click on print button twice , one after another , the second image gets printed only after I get a response from the printer that image has been printed as expected (as the print method is synchronized ).
    In the action handler class of print , I do not call join on the thread as I do not want it to wait for printing to get over ( printing of a tiff image actually takes a long time ?? )
    Is there anyway to make the threads independent of the main applet . Like after firing the print command , if I close the applet and I haven't got a confirmation from the printer, I get a blank page or nothing but i get a response message from printer that printing is done .
    Is it essential for a thread to wait till the printer sends a response that printing is over ?
    Similarly , If after firing the printing command and without waiting for the confirmation from the printer , I refresh the applet , proper printing does not occur but I get a message from the printer that printing is done .
    If i use synchronized method for printing and wait till the printer response from the printer comes without closing or refreshing the applet , printing occurs fine .
    Can anyone please tell me what is actually happening and is there a better way to print and that printing occurs after the print command has been fired irrespective of the applet ?
    Regards , Navneet

    Hey can you send me the code for the same. I know its been a long while, but I am new to JAI and need the same stuff u coded. u can mail it to me on [email protected]
    Thanks in advance.

  • Can I change the order of the images that are displayed in apple tv?

    Hello,
    I have manually arranged the images in an event (let's call it "myEvent") in iPhoto'11 v9.4.2. When turn on my apple TV and go to computers -> myMac -> Photos -> myEvent the order of the images is not the same. Does anybody know how I can force Apple TV to show the images in the same oder?
    Thank you,
    Christian

    HSNQTR wrote:
    Good Day;
    Thank you for your reply, Ithink Apple should add Arabic Keyboard to the customization options, same as Spinachand Japanese or whatever language they have in apple.com.
    I am student and living in US,and I need A KB, so I can communicate and use it to chat with my family and friendin my country.
    Please,  I hope Apple willtake this, and improve it.
    Thank you,
    I understand your problem, call apple customer care to ask how to place your order and having in shipped here in the US with Arabic keyboard.
    Let us know what happens.

  • I am using Aperture 3 to edit RAW and JPEG photo images on my Macbook.  I am having color printing issues with my Canon MP640 Pixma color printer.  The image I see on my macbook is not reciprocated in printing from my printer?

    My issue is that I am not getting print quality compared to the image I see on my screen.  Just recently it has been very wishie washie.  My printer is supposed to be excellent for producing color prints
    I have contacted Canon support but they told me that the signals that are sent to the printer originate from an Apple product, therefore, it is an Apple mac problem not there's.  I am wondering if my on screen proofing and/or printing profiles are correctly set.  I notice that in 'print profiles' there are nine different options for printing from my particular printer.  How confusing is that? 
    I have also found that when I choose a high standard print option my photo print comes out very red. 
    Can some kind person please help me?  I don't seem to be getting any help from anyone else!  Thanks in anticipation.

    You didn't mention any color calibration being done on your monitor.  This is an essential part of any color-correct workflow.  What are you using to calibrate your monitor (and your printer)?
    Print profiles (for soft-proofing as well as printing) are for specific combinations of paper & printer.  The nine you have are each, most likely, for a common paper (perhaps mfr'd by Canon) to be used with your printer.
    I don't know what you mean when you say "I choose a high standard print option".
    Have you read the User Manual chapter on printing?
    Printing Your Images
    There is also a good appendix on calibration:
    Calibrating Your Aperture System

  • Problems with the images displaying incorrectly

    I have done a couple of installs before this of the new Apex 4 deployed on weblogic 10.3.3 with no problems but this one has "stuck a spanner in the works". I have also looked through the forums and was unable to find a solution to the problem I am seeing. I am about to start an SR if no one is able to help on the forums.
    This is my problem;
    I am able to view the individual images in the images directory via the http for e.g. http://hostname.domain:7001/apex/i/date.gif and this displays correctly.
    I am not able to view the http://hostname.domain:7001/apex/f?p=4550:1:2874725903020187 images as they are not displaying.
    In the troubleshooting section of the install guide it mentions;
    A.4 Images Displaying Incorrectly in Oracle Application Express
    If images in Oracle Application Express do not display correctly, you may have more than one definition of the /i/ alias. To address this issue:
    If possible, rename the first instance of /i/ to a different alias name.
    Alternatively, copy the images from the ORACLE_HOME\apex\images directory to the directory defined by the first /i/ alias.
    ** Firstly how do I "rename the first instance of /i/" (how do I find this out?)
    ** How do I "Alternatively, copy the images from the ORACLE_HOME\apex\images directory to the directory defined by the first /i/ alias".
    Thanks to all that reply.
    If any more detail is required please just ask.

    Hi,
    Url where you see image should be
    "http://hostname.domain:7001/i/date.gif"So /i/ should be in server root.
    Sorry , I'm not familiar Apex Listener and those servers you can use with it.
    It might good idea to post question to Apex Listener forum and give all details about server, database and Apex version
    ORDS, SODA & JSON in the Database
    Regards,
    Jari

  • When I print my photoshop images white areas print grey

    Using my Epson Photo1500W images created in photoshop print grey in areas that should be White. There is no problem when I print images I have created in Illustrator or when I when I transfer the photoshop image into Illustrator. Any clues ? thanks Mikki

    Did this problem recently start, or has it always been this way? Maybe a Preferences reset would fix it.
    Windows - CTRL-SHIFT-ALT immediately after you double-click the PS icon.
    Macintosh - CMD-SHIFT-OPTION immediately after you double-click the PS icon.
    Look for the "Delete Photoshop Settings File" dialog and click "Yes".
    If that is not the case:
    Check your Printer settings, they are independent of Illustrator.
    Look at the Print Dialog, see what Color management section looks like.
    You  have a choice to let the Printer or Photoshop manage colors. See what works best.

  • Control the order that the images display in Lightbox

    I have a Lightbox with a selection of images. The images are all numbered in a specific order. The thumbnails when selected display the final image correctly and I have discovered that their sequential numbering is affected by whether they are sent to front or back. So I have them displaying their correct automatic sequential numbers in Muse lets say 1-3, 2-3 and 3-3 whereby 1-3 is sent to back and 3-3 is sent to front. However when it is viewed in either the preview or a browser the first image displayed is 3-3 then the order is 1-3 then 2-3. Is there a right way to ensure that the image 1-3 is the first image shown?

    Thanks for your reply, but I intentionally didn't give you a complete description of what I am doing as I didn't want to pose a confusing question.
    Your solution is right for anyone using the lightbox in a standard way.
    However, I am either trying to be too clever or making something simple very complicated.
    I am using lightbox as the trigger but not the thumbnails as I only want one thumbnail to show and it is cropped in such a way that it only shows a small aspect of one of the final images. So I have a box with an image that is visible, a fake thumbnail, and then on top I have my lightbox thumbnails that are all set in all states to 0% opacity and placed directly over the fake thumbnail therefore not visible. So the issue I have created is that the image I want displayed first is at the bottom of the pile and numbered 1-3 as required. However, the image on top that is acting as the trigger is image 3-3 and that is why it is appearing first. If I bring the required thumbnail to the top then it is automatically renumbered 3-3 and this may be the solution that I have to live with and pay the price for either being a smart arse or a creative idiot!!!
    Hope this makes sense. If you have any suggestions of how to resolve my madness then they will be much appreciated.

  • Suddenly, one of my iPhoto Libraries will not open, or rather iPhoto opens, but says there are no photos in the file.  However, when I backed it up and looked into it otherwise, the images 86gigs are still there in the file. What to do??

    Suddenly, one of my iPhone libraries will not open with 86 gigs of images: it opens and says there are no photos, yet by other looking, all the images are there and when backing up, it takes an hour.
    Somehow iPhoto application will not recognize the images (over 13,000) in the file.
    Any suggestions as to how to fix the matter<
    Dr. Harris, Bermuda

    To move from iPhoto 08 (which is v7) to iPhoto 11 (which is v9) requires that you purchase iPhoto 11. Your software update is running just fine. V7.1.5 is last version of iPhoto 08.
    Never import one Library to another. Every version and thumbnail is imported like a distinct photo, you lose all your Albums, Keywords etc., the link between Original and Previews is destroyed, the non-destructive editing feature is ruined and so on. In summary: it's mess.
    As to the problematic library:
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download <a href="http://www.fatcatsoftware.com/iplm/"><b><u>iPhoto Library Manager</b></u></a> and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

Maybe you are looking for

  • New iPhone 4 not working

    Hi. I have very upset situation here. I'm from Russia, i was in Spain so i bought simfree iPhone 4. When i got back i opened iphone 4. turned it on, connected it to iTunes on my mac, then screen goes black and nothing appeared on the screen then it s

  • Using AS3 to play a set of frames I want and then stop

    Hi everyone: I am helping a friend with a project. I have a button that when clicked on, it enlarges and shows content inside the button. Now, there is more content inside this button that when clicked on, enlarges and shows more content. I have all

  • Exclamation mark in clips from iPhoto library

    Bump

  • Cookies

    i want to know how to use cookies in my jsp coding - as in mailing concept. pls explain me with a coding thank you

  • Netui form and textBox

    I would like to use the Calendar taglib (http://www.servletsuite.com/servlets/caltag.htm) in my jsp page into bea web project. I modified my web.xml: <taglib> <taglib-uri>caltag.tld</taglib-uri> <taglib-location>/WEB-INF/taglib61.tld</taglib-location