Setting changed viewport

I have a JScrollPane with a JPanel inside. I zoom in on the panel by scaling the painted parts by 1/zoom and scale the size of the panel by zoom (zoom is 1, 2, 4, 8, 16). The actual zooming works fine. The problem comes when trying to zoom in on the correct part of the panel. At the moment I have,
     public void ZoomIn() {
         // set zoom
         currentPaintZoom /= 2.0;
         currentPanelZoom *= 2.0;
         if(currentPanelZoom > maxZoom){
             currentPaintZoom = startZoom/maxZoom;
          currentPanelZoom = maxZoom;
         mainPanel.SetScale(currentPaintZoom);
         // resize panel
         mainPanel.setPreferredSize(
         new Dimension((int)(startSize*currentPanelZoom), panelHeight));
         // set view
         if(currentPaintZoom < maxZoom){          
           tempX = (int)(currView.getX() * 2);
           tempY = (int)currView.getY();        
           currView = new Point(tempX, tempY);
           v = graphScroll.getViewport();
           v.setViewPosition(currView);
           graphScroll.setViewport(v);
         else{
           graphScroll.setViewport(graphScroll.getViewport());
         // make changes
         mainPanel.revalidate();
     public void ZoomOut() {
         // set zoom
         currentPaintZoom *= 2.0;
         currentPanelZoom /= 2.0;
         if(currentPanelZoom < 1.0){
          currentPaintZoom = startZoom;
          currentPanelZoom = 1.0;
         mainPanel.SetScale(currentPaintZoom);
         // resize panel
         mainPanel.setPreferredSize(
         new Dimension((int)(startSize*currentPanelZoom), panelHeight));
         // set view
         if(currentPaintZoom > 1.0){         
           tempX = (int)(currView.getX() / 2);
           tempY = (int)currView.getY();        
           currView = new Point(tempX, tempY);
           v = graphScroll.getViewport();
           v.setViewPosition(currView);
           graphScroll.setViewport(v);
         else{
            graphScroll.setViewport(graphScroll.getViewport());
         // make changes
         mainPanel.revalidate();
     /*---------------------------------------------------------*/Can anyone see why the setting of the scollPane view is incorrect.
Thanks,
Richard.

Thanks for taking the time to answer this question. Knowing this isn't possible at least narrows my options down. It would be helpful to provide some kind of list of what comp settings carry over into AME from After Effects. Is it essentially everything that is enabled in the Timeline? (I know that motion blur settings do.)
I'll put this in a feature request, but yes, we need the other half of After Effects Render Queue in AME in order for AME to be a good replacement for rendering from AE. I'll give you my thoughts on why Render Settings are essential before you would actually want to render with AME instead of doing so because you have to (either because you want to render in the background, or need a codec that has been removed from AE.)
1. Speed: Simply applying a Render Settings preset is much faster than manually setting motion blur, frame blending, work area, etc.
2. Reliability: Not being able to apply a Render Settings preset at the time of render is a recipe for missing a crucial setting buried in a comp, then having to redo a render and wasting time.
3. Features: As noted above, there is no way to approximate Render Queue's ability to change resolutions at render, which results in a lot of wasted time when that feature is needed.
Render Settings I think are crucial to making AME rendering worthwhile for AE users:
1. Rendering resolution
2. Work Area/Entire Composition toggle
3. Field Rendering (wait, does this mean AME can't currently render to fields?)
4. And PRESET ability these settings, so I'm not doing them manually every time.
I realize that your team clearly doesn't spend the same amount of time I do making low res H264 previews and sending final files out in H264 format, so you don't appreciate the impact of the changes you made. Moving to AME for that stuff is a real inconvenience, but implementing the settings above could help soften the blow.
Thanks,
Jerry

Similar Messages

  • Is there a way to set meta viewport in Edge ?

    Is there a way to set meta viewport in Edge ?

    I want to set the viewport because I create website that most of the time doesn't fit with default safari's viewport setting (width of 980px or something like that). Isn't it the purpose of the viewport ? to display the most optimized way an html page ?
    I was asking because when I change the html, most of the time edge doesn't like it and I get error messages.

  • Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Did you check the Zoom setting?
    Have you tried a reset (reboot)? Hold HOME and SLEEP until an Apple logo appears.
    If it isn't Zoom and a reboot doesn't help try Settings/General/Reset - Reset all settings

  • How do I Find/Set/Change a Bluetooth passkey on a T61 laptop with the Lenovo US/Eng Vista OS image?

    I purchased a T61 two years ago. It came with the Lenovo Vista Ultimate OS, US/English.  The T61 has Bluetooth, which I never used until now.
    I try to pair a cell phone and a PDA (both Palm devices) with the T61, and the devices ask for the T61's Bluetooth Passkey. I don't know what the passkey value is, nor do I see anywhere to set, change or enter it.
    This is how I know the the Bluetooth device driver is working on the T61: 1- The BT icon shows in the taskbar, the BT controt panels open, and even in Control Panel > Hardware and Sound > Bluetooth Devices, the phone name shows up. And strangely enough, at the bottom of the control panel, when the phone is listed (is discoverable), it shows "Paired: Yes", "Authenticated: No", attached image shows these values.
    I'm stumped. Where do I lookup, set or change the T61's Bluetooth passkey?

    Unfortunately that is not working. I've tried 0000, 000000, 00000000, 1234, and 123456 as the keys.  No popups, no response whatsoever on the T61. 
    The devices seem to wait some timeout period and then a message "cannot connect to T61...". I don't have the exact message here in front of me, but can get it if need be.

  • I woke up this morning and my Bookmarks is working different.  Has a setting changed, or did Apple change it for me and how do I get it back?????????

    I woke up this morning and my bookmarks are functioning different, and the tool bar has changed.  Instead of opening the bookmarks in a page on Safari, I get a menu on the side of the page.  Then I have to go click on the bookmark icon again to get rid of the menu.  Has a setting changed or did Apple change it for me and how do I get it BAAAAAAACK????????????

    The first G4 models were basically a repackaged/upgraded G3 & came in 350 & 400MHz models. This design was called PCI version. The next G4 models were AGPs. This link http://www.everymac.com/systems/apple/powermac_g4/index-powermac-g4.html has the specs/pictures of all the G4 models.
    Power Mac G4: How to Differentiate Between Models
    http://docs.info.apple.com/article.html?artnum=58418
    Power Mac G4: How to Differentiate Between Models (Part 2)
    http://docs.info.apple.com/article.html?artnum=42739
    Using these links, you should be able to determine which model you have.
    Removing the battery causes all settings in the internal memory to be reset, just like resetting the PMU/CUDA. See Mac PRAM, NVRAM, CUDA/PMU & Battery Tutorial
     Cheers, Tom

  • Simple/silly question: how do I set/change default font/color for outgoing mail messages?

    Simple/silly question: how do I set/change default font/color for outgoing mail messages?

    Just a suggestion..........
    Download Thunderbird.  Easier to use when it comes to what you want to do w/your emails. 

  • I have jumped from 5.1 to CC. When I open a file originated in illustrator 5.1 in CC it changes the CMYK breakdown. Have tried colour setting changes in Bridge but still have differences. Help!

    I have jumped from 5.1 to CC. When I open a file originated in illustrator 5.1 in CC it changes the CMYK breakdown. Have tried colour setting changes in Bridge but still have differences. Help!

    Any warnings when opening the file?
    You might need to reset all warnings in preferences.
    Apart from that itlooks like your color management settings are set to convert into profile. This is absolutely not advisable.

  • What setting changes are to be made??

    I am adding some .c files to my MAC application(cocoa), I am getting a lot of errors while compiling those files.
    What setting changes are to be made before adding C files to MAC OS project???
    If so can anyone point out that...??
    1.     I am getting errors with the #include statements in my files...
    2.     expected '=', ',', ';', 'asm' or '__attribute__' before 'asn_DEF_Payload'
    How can I get around these list of errors??
    Thanks in advance.

    Sun Java Enterprise System Support Forum and the Directory Server's "Release Notes" &#91;See docs.sun.com&#93; is a good place to find this information. Also upgrade to the latest DS5.2 Patch 4.
    One probable cause could be that either the BindDN or the SearchBase used by your application no longer exists in the upgraded server's setup. Please check the access log on the Directory server to pinpoint the culprit. The corresponding entry will have "err=32".
    Examples:
    SRCH base="dc=abc,dc=example,dc=com" ....
    RESULT err=32 tag=101 nentries=0 etime=0
    &#91;Note: Tag 101 means the search base does not exist&#93;
    BIND dn="cn=user,dc=abc,dc=example,dc=com" ....
    RESULT err=32 tag=97 nentries=0 etime=0
    &#91;Note: Tag 97 means BindDN does not exist&#93;
    Based on your requirements, you will either have to add the missing entry or upgrade your applications' configuration to use an alternative entry.
    For more on Access Log contents see
    http://docs.sun.com/source/817-7616/fileref.html#wp20452

  • International setting changes to US

    I have set my international preferences to Australia and the Australian flag shows in the menu bar. Once in a while the setting changes to US and the US flag is displayed. I have been unable track down when or why this is happening.

    Go to system prefs/international/input menu and make sure the box for US is not checked.

  • Best Way to Set Change Bars on Right Margin

    I'm an InDesign newbie and need to set change bars on the right margin. I have a two-part question.
    First: from looking around at relevant blogs/tutorials that I've found, I've come to the conclusion that my best approach is to:
    1. Creat an (rectangle) object
    2. Draw a line with the desired change bar properties
    3. Cut and paste the line into the object
    4. Cut the object
    5. Use Object > Anchored Object > Insert to set the size and location of the object
         5a. X = aligned to page margin at negative width of containing frame (e.g., -45p0)
         5b. Y = alingned at baseline
    Does this sound right? Are there alternative/better ways?
    Second: I need a way to automate the above so that it can be applied to many instances of change. I have character style that marks every change which comes into InDesign from InCopy. From what I've seen, it doesn't look like it will be too hard to write a (javascript) script that does the above for every occurrence of the character style, thus automatically inserting my change bar/anchored object in every location where it's needed.
    Does this sound right? Any suggestions or references to existing scripts that do something like this?
    Thanks

    I think they need a visual in the layout - not just Story Mode.
    There's this script here
    http://www.kerntiff.co.uk/free-stuff/editmarksviewer
    http://www.kerntiff.co.uk/products-4-indesign/editmarks
    http://www.kerntiff.co.uk/products-4-indesign/editmarks/editmarks-navigator

  • How to set change number is prerequisite when change BOM?

    Dear SAP Experts,
    I have actived EC management  in BOM control data in IMG. But when i changed
    BOM ( the code  CS02 )  with change number blank, system had not given an error message. SO,how to set change number is prerequisite when change BOMs?
    Thanks...
    Regards,
    Joey.

    Just a guess: Transaction os27 and change the number range to external.
    Matthias

  • IPhone 5  time setting change automatically

    i have iPhone 5 my time setting change all the time and the network cut and back gain what the problem ? how i can repair it

    Vzw does not control the voice mail system for iPhones, apple does . Voice your complaint to them

  • Acrobat Distiller Adobe PDF default setting changes mysteriously

    I am using Adobe Acrobat 6.0 Professional on a Windows XP PC. On numerous occasions, my Acrobat Distiller Adobe PDF default setting changes mysteriously from "High Quality" to "PDFX1a". I do not know what is causing the default setting to change automatically. Would you know some possible causes? Thanks for your help.

    Hi Led2,
    Have you tried repairing the Acrobat installation and checked?
    I would also recommend updating to version 9.5.5 and check.
    Regards,
    Ravi

  • Setting Change Tracking Group Programmatically

    Is there any sample code C# or TSQL for programmatically setting Change Tracking Group and Enable Change Tracking for Attributes?

    Stephen,
    So you still need assistance with this?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Customize HTML Editor in "online edit", set/change colors

    Hello Everyone,
    is it possible to set/change new colors for text in oline editing in HTML Editor in KM-Content? if the answer will be "yes"..so how to do it?
    Thank You for answers,
    Karol

    Hi Shiva,
    The first SAP note applies to other browsers and works well for IE6. The problem we face is with IE6. We are already on SPS 21 so according to the note the issue should not appear.
    Are there any other solutions for this ?
    Regards,
    Melwyn

Maybe you are looking for

  • PL/SQL vs C++ ?

    I have developed an inventory control application in MS Access & VBA that has been instrumental in saving my company $6 million so far, with at least another 4 to 5 million over the next 18 months. We are a processing plant and part of a global group

  • How do you set the size / bounds of a waveform chart at run time?

    I have a plot area that I would like to fill with as many waveform charts as the user specifies (at run time). The "bounds" property is read only and I haven't noticed an additional "size" property for a waveform chart as there is for a button. Is th

  • I would like to implement UIuserB

    ase Messages in the Execution Display.vi that ships with TestStand. The Main Message loop polls for meassage types(string names). If I post a user message from a .seq file, I do not see a message type string at the selector input. What am I missing?

  • Will iPhone 5c come out only in black (the front) ???

    I was hoping you would also be able to choose white as the front color but it doesn't look like it. Does anyone know?

  • TOC bullet before leader dots (with pix)

    Can someone help me make this bullet go away? For some reason, my TOC style is inserting a bullet in front of my leader dots. There is no bullet in the heading style that it is pulling from - and there is only a paragraph break after the header in th