[svn] 3580: MXMLG-243 - Path does not draw in the correct location when width and height are set

Revision: 3580
Author: [email protected]
Date: 2008-10-10 16:24:50 -0700 (Fri, 10 Oct 2008)
Log Message:
MXMLG-243 - Path does not draw in the correct location when width and height are set
Fixed MatrixUtil.transformBounds to offset the four bound points by the origin
Bug: MXMLG-243
QA: Yes
Doc: No
Review: Evtim
Ticket Links:
http://bugs.adobe.com/jira/browse/MXMLG-243
http://bugs.adobe.com/jira/browse/MXMLG-243
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/MatrixUtil.as

Hi,
For web application problem, please post your thread in
ASP.NET forum.
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and
makes it easier for other visitors to find the resolution later.

Similar Messages

  • Line not drawing at the correct location.

    I have a JPanel inside a JScrollPane I am drawing on and drawing is going good except for one problem. At the very end of my paint method, I want to draw a vertical line on the panel that is exactly in the middle of the current visible rectangle. From what I can tell, it should be repainting in the dead center every time repaint is called, but for some reason it isn't.
    Here is my paintComponent method:
        public void paintComponent(Graphics g)
            int wordWidth = 0;
            int wordHeight = 0;
            int duration = 0;       
            super.paintComponent(g);       
            g2d = (Graphics2D) g;
            g2d.setFont(font);
            /* draw a gradient background */
            g2d.setPaint(new GradientPaint(0, 0, new Color(100, 100, 100), 0, this.getSize().height, new Color(255, 255, 255)));
            g2d.fillRect(0, 0, this.getSize().width, this.getSize().height);
            /* draw lines for each note */
            g2d.setColor(Color.BLACK);
            for (int i = 0; i < GuiConstants.notes.values().length; i++)
                g2d.drawLine(0, (int) (GuiConstants.SONG_DISPLAY_HEIGHT - ((GuiConstants.SONG_DISPLAY_HEIGHT / 24) * (i))), this.getSize().width, (int) (GuiConstants.SONG_DISPLAY_HEIGHT - ((GuiConstants.SONG_DISPLAY_HEIGHT / 24) * (i))));
            synchronized (words)
                for (int i = 0; i < words.size(); i++)
                    /* get the width and height of the text so we can draw a box around it */
                    wordWidth = g.getFontMetrics().stringWidth(words.get(i).getLyric());
                    wordHeight = g.getFontMetrics().getHeight();
                    /* get the duration of the word */
                    duration = ((words.get(i).getEndSample() / 200) - (words.get(i).getStartSample() / 200));
                    /* draw the main box that the text sits in */
                    g2d.setColor(Color.DARK_GRAY);
                    g2d.fillRoundRect(words.get(i).getPoint().x, words.get(i).getPoint().y, wordWidth, wordHeight, 3, 3);
                    /* draw a box that will be a duration */
                    if ((i % 2) == 0)
                        g2d.setColor(Color.BLUE);
                    else
                        g2d.setColor(Color.ORANGE);
                    g2d.fillRoundRect(words.get(i).getPoint().x, words.get(i).getPoint().y, duration, wordHeight, 3, 3);
                    /* draw the text in the box */
                    g2d.setColor(Color.WHITE);
                    g2d.drawString(words.get(i).getLyric(), words.get(i).getPoint().x, words.get(i).getPoint().y + 16);
            /* draw vertical line in the middle of the panel */
            int x = ((int) this.getVisibleRect().getX()) + ((int) this.getVisibleRect().getWidth() / 2);
            System.out.println("Drawing line at " + x);
            g2d.setColor(Color.RED);
            g2d.drawLine(x, 0, x, GuiConstants.SONG_DISPLAY_HEIGHT);
        }This section is the other part I am having problems with.
    /* draw vertical line in the middle of the panel */
            int x = ((int) this.getVisibleRect().getX()) + ((int) this.getVisibleRect().getWidth() / 2);
            System.out.println("Drawing line at " + x);
            g2d.setColor(Color.RED);
            g2d.drawLine(x, 0, x, GuiConstants.SONG_DISPLAY_HEIGHT);When the panel displays for the first time, the line is painted directly in the center. When I click the right arrow on my JScrollPane, the output to the console says that is it drawing at the correct point, but actually the is never repainted and it moves with the panel as I scroll across. Now, if I click in the middle off the scrollbar to force the scrollbar indicator to scroll to where my mouse is pressed, it actually repaints correctly.
    I am just confused on how I can be printing to the console the correct location where it "says" it's painting, but it doesn't actually repaint. Any ideas?

    so wouldn't putting a panel in front of it prevent me from being able to main panel I am painting to?wouldn't it be easier to whip up a simple app, to test?
    (take only 5 minutes)
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      int xPos, yPos;
      public void buildGUI()
        JPanel overlayPanel = new JPanel();
        OverlayLayout overlay = new OverlayLayout(overlayPanel);
        overlayPanel.setLayout(overlay);
        JPanel draggingPanel = new JPanel(null);
        final JLabel label = new JLabel("Drag me");
        label.setBorder(BorderFactory.createLineBorder(Color.BLACK));
        Dimension dim = label.getPreferredSize();
        label.setBounds(50,50,dim.width,dim.height);
        draggingPanel.add(label);
        final JPanel linePanel = new JPanel(){
          public void paintComponent(Graphics g){
            super.paintComponent(g);
            g.drawLine(getWidth()/2,0,getWidth()/2,getHeight());
        linePanel.setOpaque(false);
        overlayPanel.add(linePanel);
        overlayPanel.add(draggingPanel);
        JFrame f = new JFrame();
        f.getContentPane().add(overlayPanel);
        f.setSize(400,300);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
         label.addMouseListener(new MouseAdapter(){
          public void mousePressed(MouseEvent me){
            xPos = me.getX();
            yPos = me.getY();
        label.addMouseMotionListener(new MouseMotionAdapter(){
          public void mouseDragged(MouseEvent me){
            Point me_p = me.getPoint();
            Point l_p = label.getLocation();
            label.setLocation(l_p.x + me_p.x - xPos,l_p.y + me_p.y - yPos);
            linePanel.repaint();
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • Negative (to inline a letter or to thin it) offset path does not work in Illus-CC 2014 (when preview is on- nothing happens). How can I get this to work like in previous versions.

    Negative (to inline a letter or to thin it) offset path does not work in Illus-CC 2014 (when preview is on- nothing happens). How can I get this to work like in previous versions.

    Thanks for your quick reply. I tried a number of different values. Usually when I do a negative offset they're very small values, like -.25 or -.5.
    An Update- I took the art work into Ai CS 6 and It still did not work, which is really strange. And I've used it hundreds of times with success in the past. Also I tried it with live type and outlines, ungrouped, un-compounded still could not get it to negative offset.
    Thanks for the help.

  • HT1849 when I download album works from itunes it does not associate with the correct artist

    when I download album works from itunes it does not associate with the correct artist

    Where are you looking to download them from ? You might be able to redownload them via the Purchased link under Quicklinks on the right-hand side of the iTunes store homepage on your Mac's iTunes. If that album shows there but doesn't have the cloud symbol against it for redownloading then that implies that it's still in your iTunes library

  • I am having trouble printing I have a connection to my printer wirelessly but does not print out the correct page I want.When I do print I get a bunch of pages more than is needed and also get a code and symbols please help I am jammed at work

    I am having trouble printing I have a connection to my printer wirelessly but does not print out the correct page I want.When I do print I get a bunch of pages more than is needed and also get a code and symbols please help I am jammed at work

    This can be the result of selecting the wrong driver. An older, unsupported laser printer will sometimes work with the generic Postscript driver.

  • Ipod touch does not turn on the screen shows USB cable and ask to connect to the itune, itune message pops up can not connect because it is locked with pass code how can i turn on this device?

    My son's ipod touch 3 screen shows a USB cable image and ask to connect to the itune. Itune does not connect with the message shows: this device is locked and can not be connected to the itune before you unlock it" I have no idea how to turn on this device and how to connect this to the itune, any help is highly appreciated.

    Try to get it to recognize it by using DFU Mode. Then restore.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • "A valid repository does not exist at the specified connection" when connecting

    Hi all,
    I'm using ODI 11g and Oracle Database 11g EE.
    I've installed ODI without any errors, and chose to skip repository configuration during installation.
    I created the Master and Work Repositories with the RCU that was provided in the same media pack as the ODI installation files.
    After starting ODI, clicking "Connect To Repository..." and inputting the correct credentials I get the following error:
    A valid repository does not exist at the specified connection...
    http://pastie.org/pastes/8081847/text?key=grna09suyra4w0vgitbxiw
    Has anyone had this error before, can anyone help?
    Thanks!
    Josh.

    Josh,
    Looks like the RCU did not create the repository in the intended schema for some reason. you can check the schema for the ODI tables (SNP_*) presence.

  • Listening to audiobooks does not resume in the correct spot

    I bought a brand new Ipod Shuffle 4th gen.  When I play audio books it resumes 30 minutes behind where I left off last.  Is there any way to stop this?

    P,S.  I have already checked "Get Info" and "Remember Playback Position" is check.  This is an audible.com audio book that I was listening to on my old shuffle which no longer works.  I bought a new one and the same audio book does not resume correctly.  It does not resume at the beginning of the book but about 30 minutes behind.

  • Flash Builder 4.5 + AIR 3.0 RC1 does not output modules to correct location

    Hello
    I'm having some trouble with Flash Builder 4.5 and Flex SDK 4.5.1.21328 with AIR 3.0 RC1. Flash Builder does not appear to compile modules into the location set in the "Edit module" dialog.
    The screenshots below show that the output path of a module is set to a specific folder, yet Flash Builder compiles the module into the default sub-folder.
    #1. Project properties showing application modules
    #2. Dialog showing the path to the module. Not the "Output SWF" location. The default location is the same as the package namespaces, eg: "d6/v3/banners/Banners.swf". After removing the path the module should compile into the output folder (set to bin/debug), however as the next screenshot shows, the module still compiles into the default sub-folder.
    #3. The module is compiled into a sub-folder of the output folder, instead of into the "root" of the output folder.
    #4. The output folder contains only the main application, with a sub-folder for the module.
    #5. Project pproperties showing the output folder.
    There is a workaround - move the module source file into the "Default package" in the package explorer.

    I experienced this problem today, and kind of "solved" it. There may be an underlying bug, though.
    My project compiled fine last Thursday, but I opened it up on Monday (unchanged) and this error showed up in several files. I tried quitting and restarting Flash Builder to no avail. I could not replicate the problem in a new project.
    For me, each occurence of the error was at a private function definition, so I thought I would try changing "private" to "public" on one of the functions. The error immediately went away in all 3 locations (not just the one I edited). I then changed it back to "private" with no error.
    I hope that will help the Adobe team track down the problem.

  • Scale does not work for the target movie when using a poster movie

    Hello,
    I have various size video files that I want to scale to a certain display area on a website. I'm using the scale="tofit" attribute. It works fine for the poster movie but when the target movie is loaded it does not scale! Is this a QT bug or by design? Is there a workaround to this or am I doing things wrong? All help is greatly appreciated.
    <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="489" height="280" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="autoplay" value="false">
    <param name="controller" value="true">
    <param name="href" value="heaven.mov">
    <param name="pluginspage" value="http://www.apple.com/quicktime/download/indext.html">
    <param name="target" value="myself">
    <param name="type" value="video/quicktime">
    <param name="src" value="movies/PosterTest.mov">
    <param name="scale" value="tofit" >
    <embed src="movies/PosterTest.mov" href="heaven.mov" width="489" height="280" autoplay="false" controller="true" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html" target="myself" type="video/quicktime" scale="tofit">
    </object>
    Dell inspiron 8200   Windows XP Pro  

    After quite a lot of Googling I found what I was looking for. This solution was quite hard to find. I found it on http://blog.deconcept.com/2005/01/26/web-standards-compliant-javascript-quicktim e-detect-and-embed (I'm using Geoff Stearns's script to embed my movies, it works great!)
    Anyway here is a url to the final solution:
    http://developer.apple.com/documentation/QuickTime/WhatsNewQT5/QT5NewChapt1/chap ter1_section32.html

  • I have an iMac and play games on facebook. When I need to request parts from "my neighbors" the list does not appear in the box. When I use my daughters pc it works fine. Recently I had a pop up for an upgrade but don't remember what it was for. How can I

    I have an iMAC  and when I am on Facebook my list of friends does not show up in the box for me to request gifts. I know this is a problem with my Mac because my daughter's PC shows it. I recently did the automatic upgrade thing but didn't pay attention what it was. When I did that it changed my desktop picture back to factory. Could this have something to do with it and more importantly what do I do about it?

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Firefox > Preferences > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    See also:
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *https://support.mozilla.org/kb/Images+or+animations+do+not+show

  • Unable to sync new iPhone 4s. I have iTunes version 10.6.1. Using Windows 7. My device appears on iTunes but I am not able to select the sync option and it does not automatically start the sync option when plugged in. Ive tried reseting the device.

    I am unable to sync my new iPhone 4s OR my iPod Touch 4 to iTunes.(this is the first time I am plugging them into iTunes) I have version 10.6.1. Both devices are up to date with the latest software version. Once I plug the device in, it is recognized on iTunes.The synce process does not start automatically. I am unable to select the sync option. I've tried reseting the device and restarting iTunes and the same problem happens. I have plugged in my husbands iPhone 3gs and the sync process starts automatically. I have also added my computer as an authorized computer for the new devices. What now?

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • I-Pad Mini and Wi-Fi Connection-I-Pad Mini does not connect to the Wi-Fi while IPad and IPhone 5 works in the same location.  Then when I go to another location the Ipad Mini works.  How can I get Wi-Fi to work all the time like Ipad and Iphone 5?

    I-Pad Mini and Wi-Fi Connection.  At one location the I-Pad Mini will not connect to wi-fi, while I-Pad and I-Phone 5 works just fine.
    Then at another location the I-Pad Mini works just fine.  Are there any suggestions anyone can give me to get I-Pad Mini to work everywhere just like I-Pad and I-Phone 5?

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • I am using FF 5.0.1. The English spellchecker add on does not work.It will underline the misspelled word but does not give you the correct spelling choice.

    I did not upgrade to 4.0 because I did not like it.I thought I was upgrading finally to 4.0 assuming at this date they had fixed all the bugs and updated the add ons.
    I downloaded the latest version and love it, love it except the one add on that I use more than anything does not work properly.:-(
    Please notify the developer of this issue.

    "SafeBrowser'',
    No it does NOT show up as I said before the ONLY option is "paste" there are NO suggestions showing up.
    As I said before,I have used this same add on for many years and earlier versions and have had no problems until version FF5.01.
    ''cor-el'',
    I have already done all that prior to posting here.
    Even as I type this response the spell check add on puts a red squigly line under your screen names but does not give me any suggestions.
    I am frustrated beyond belief because I am a faithful and dedicated user of this browser and I am going to just roll back to a older version until this silly issue is resolved.
    I appreciate all your help but I suppose until the person who developed this add on does something to make it compatible with FF5.01 I will not be using it.
    I apologize for any misspelled words but my spell check extension is not working properly. :-(

  • Firefox does not display MobileMe pages correctly. Is this something you are working on fixing?

    Mac OS 10.5.8 Mac Book Pro,
    Side bar in mail scroll bars are missing and bar will not expand fully. Clicking on an email does not display it on the same page, it requires double clicking and opens in a new page.
    Side bar in Gallery also not expanding. Other problems with diplay in Contacts, Calender, etc.

    Did you use the same [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] for the test with 3.6.x and 4.0 ?
    Looks like a problem with JavaScript (Ajax).
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    If you the Firefox 4 beta version with the same profile then you should create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

Maybe you are looking for

  • How to use "Start synchronous Call" to run a subVi and keep timeout event in Main vi still running?

    Hi, All I have a application need periodically check an instrument status and I put it in the "Timeout Event" in main vi. I also need call some subVis for configuration etc. Somehow when I called those subvi, the Timeout event in my main vi was not r

  • Processing of multiple messages Using BPM

    Hello everybody, I am pretty much a newbie to this XI technology. I am currently testing a File to File scenario Concerning BPM. The source file contains multiple messages in an XML structure. How can each of these XML messages be posted as individua

  • HT2666 Why won't my rented movie play?

    I'm  trying to play my rented movie for a second time within the 48 hour period in Australian, but when I click play, nothing happens, over and over.  Tried turning it off and on etc.  Anyone have any fixes for this?

  • JBO-25014: Another user has changed the row with primary key...

    Hello, could you help me please with resolving this error "JBO-25014: Another user has changed the row with primary key..." - I am just getting a row from a view by bind "filter" variable, then I am assigning new values for some of the attributes - a

  • Mac Pro Raid 0 (no Raid card) wake from sleep problem

    I have a early 2009 Mac Pro with 5 hard drives. One Primary and the other four in the drive bays set up in a RAID 0 array. I don't have a raid card in the computer so software raid I guess. My computer goes to sleep and sometimes (1 out of every 3 ti