[svn] 2622: TextBox and TextGraphic now call applyDisplayObjectProperties() at the end of their draw() method, like all other GraphicElements.

Revision: 2622
Author: [email protected]
Date: 2008-07-24 16:13:32 -0700 (Thu, 24 Jul 2008)
Log Message:
TextBox and TextGraphic now call applyDisplayObjectProperties() at the end of their draw() method, like all other GraphicElements. This method handles setting the visibiliy of the GraphicElement's DisplayObject, among other things.
Note: We should make it unnecessary for each GraphicElement subclass to have to call applyDisplayObjectProperties() at the end of draw(). The GraphicElement base class should ensure that this gets called at the appropriate time.
Group now calls draw() on graphic elements even if they are invisible, because otherwise applyDisplayObjectProperties() never gets called and the TextLines stay visible. Group was assuming that the only visible stuff in a GraphicElement is drawn with Graphics calls, which isn't the case.
This change is OK for now because every GraphicElement currently has its own DisplayObject, but it will need to be rethought when GraphicElements share DisplayObjects.
Reviewer: Chet
Bug: MXMLG-206 ("Setting visible property on TextGraphic does nothing")
QA: Peter, please add a Mustella test case for the 'visible property of TextBox and TextGraphic
Doc: No
Ticket Links:
http://bugs.adobe.com/jira/browse/MXMLG-206
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as
flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as
flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as

Changes for spine–aligned head:
public class StickManTool extends JPanel
    public StickManTool ()
        limbs [16] = new Limb (lankle, lfoot, 1);
        head = new Head2D (limbs[0]);
    protected void paintComponent (Graphics g)
        head.draw(graphics);
    private void updateLimbs (Point start, Point end)
        head.setPosition();
class Head2D extends Ellipse2D.Double
    public static double width = 30;   // width of head
    public static double height = 40;  //height of head
    Point atlas;
    Point pelvis;
    private AffineTransform xform = new AffineTransform();
    public Head2D(Limb spine)
        super ();
        atlas = spine.movingJoint;
        pelvis = spine.fixedJoint;
        setPosition();
    public void setPosition()
        // Find angle of spine.
        double dy = atlas.y - pelvis.y;
        double dx = atlas.x - pelvis.x;
        double theta = Math.atan2(dy, dx);
        //System.out.printf("theta = %.1f%n", Math.toDegrees(theta));
        // Find center of head as extension along spine from atlas.
        double cx = atlas.x + (height/2)*Math.cos(theta);
        double cy = atlas.y + (height/2)*Math.sin(theta);
        // Move to origin of head.
        xform.setToTranslation(cx-width/2, cy-height/2);
        // Rotate head about its center.
        xform.rotate(theta+Math.PI/2, width/2, height/2);
    public void draw(Graphics2D g2)
        g2.draw(xform.createTransformedShape(this));
    public double getWidth () { return width; }
    public double getHeight () { return height; }
    public void setWidth (double widthIn) { width = widthIn; }
    public void setHeight (double heightIn) { height = heightIn; }
}

Similar Messages

  • [svn] 4059: The measure() and updateDisplayList() methods of TextBox and TextGraphic now return early if the inheritingStyles and nonInheritingStyles proto chains haven 't been initialized, to avoid RTEs in the compose() method from invalid styles values.

    Revision: 4059
    Author: [email protected]
    Date: 2008-11-10 11:56:38 -0800 (Mon, 10 Nov 2008)
    Log Message:
    The measure() and updateDisplayList() methods of TextBox and TextGraphic now return early if the inheritingStyles and nonInheritingStyles proto chains haven't been initialized, to avoid RTEs in the compose() method from invalid styles values.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17975
    Reviewer: Jason
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17975
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicEleme nt.as

    FYI - This regression has been filed here: http://bugs.adobe.com/jira/browse/SDK-31989

  • I have songs that have been purchased and they show up in my I tunes but the are not showing up bold like all other songs in my library, they will not let me download from the cloud and will not load onto my ipod.

    I have a handfull of songs in my library that are not showing up bold like the other songs. When I click the icon to download from the cloud nothing happens and they will not load onto my ipod. When I look for them in the purchased area they show up as purchased and downloaded.

    Welcome to the Apple Community.
    So far as I am aware, books haven't been available for 6 years, so I'm wondering if you mean audiobooks.
    Audiobooks are not currently part of the content that can be re-downloaded.

  • [svn] 4631: Changed clipping in TextBox and TextGraphic.as

    Revision: 4631
    Author: [email protected]
    Date: 2009-01-22 17:00:39 -0800 (Thu, 22 Jan 2009)
    Log Message:
    Changed clipping in TextBox and TextGraphic.as
    TextFlowComposer no longer relies on TextLineFactory.createTextLinesFromTextFlow() returning an 'overset' flag, because TLF will be removing this. Instead, it determines whether any TextLines are overset by looking at whether the getBounds() of the container parenting the TextLines is contained inside the composition bounds.
    TextBlockComposer now uses identical logic to do this.
    TextBox and TextGraphic now call a new method, clip(), in their TextGraphicElement base class to set or clear the scrollRect based on the overset flag. This logic has been further optimized to avoid creating a new Rectangle instance if the scrollRect has already been set.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Deepa
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockCompose r.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer .as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicEleme nt.as

    Both good points I did not consider! (That's why I love these forums I have been bouncing offline. I'll give bouncing online a shot and see if that helps. Thank you for the advice! Any more ideas from anyone else out there, please do share.

  • [svn] 4699: Changed clipping in TextBox and TextGraphic.as

    Revision: 4699
    Author: [email protected]
    Date: 2009-01-27 15:57:02 -0800 (Tue, 27 Jan 2009)
    Log Message:
    Changed clipping in TextBox and TextGraphic.as
    TextFlowComposer no longer relies on TextLineFactory.createTextLinesFromTextFlow() returning an 'overset' flag, because TLF will be removing this. Instead, it determines whether any TextLines are overset by looking at whether the getBounds() of the container parenting the TextLines is contained inside the composition bounds.
    TextBlockComposer now uses identical logic to do this.
    TextBox and TextGraphic now call a new method, clip(), in their TextGraphicElement base class to set or clear the scrollRect based on the overset flag. This logic has been further optimized to avoid creating a new Rectangle instance if the scrollRect has already been set.
    NOTE: This change was previously committed as revision 4631 and then reverted as revision 4635.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Deepa
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockCompose r.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer .as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicEleme nt.as

    Both good points I did not consider! (That's why I love these forums I have been bouncing offline. I'll give bouncing online a shot and see if that helps. Thank you for the advice! Any more ideas from anyone else out there, please do share.

  • I have just sought  to update my lightroom and am now unable to access the develop function and get a note stating that I have reduced functionality what it this about and how do I get my product back

    I have just sought  to update my lightroom and am now unable to access the develop function and get a note stating that I have reduced functionality what it this about and how do I get my product back

    Hi there
    I have version 5.7 and every time I opened it I was told that updates are available and to click on the icon to access these.  Instead it just took me to the
    adobe page with nowhere visible to update.  I then  sought to download lightroom cc and this is when I could not access the 'develop' section due to reduced
    functionality  It was apparent that my photos had been put in cc but no way to access them unless I wanted to subscribe. 
    I have since remedied the problem as  my original lightroom 5.7 icon is still available on the desktop and have gone back to that.  I do feel that this is a bit
    of a rip off and an unnecessary waste of my time though.
    Thank you for your prompt reply by the way.
    Carlo
    Message Received: May 04 2015, 04:52 PM
    From: "dj_paige" <[email protected]>
    To: "Carlo Bragagnolo" <[email protected]>
    Cc:
    Subject:  I have just sought  to update my lightroom and am now unable to access the develop function and get a note stating that I have
    reduced functionality what it this about and how do I get my product back
    dj_paige  created the discussion
    "I have just sought  to update my lightroom and am now unable to access the develop function and get a note stating that I have reduced functionality what it
    this about and how do I get my product back"
    To view the discussion, visit: https://forums.adobe.com/message/7510559#7510559
    >

  • I have CS4 and was using a Canon 5D Mark II with raw photos. I just got the Canon 5D Mark III and CS4 now can not read the raw photos. It has raw version 5.7.0.213 and CS4 version 11.0.2. Can anyone help?

    I have CS4 and was using a Canon 5D Mark II with raw photos. I just got the Canon 5D Mark III and CS4 now can not read the raw photos. It has raw version 5.7.0.213 and CS4 version 11.0.2. Can anyone help?

    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications
    EOS 5D Mark II
    CR2
    5.2
    2.2
    EOS 5D Mark III
    CR2
    6.7, 7.1
    4.1
    Photoshop CS6
    7.0
    8.3
    Photoshop CS5
    6.0
    6.7
    Photoshop CS4
    5.0
    5.7
    The 5D Mark II was first supported by Camera Raw 5.2 which is compatible with CS4+.
    The 5D Mark III was first supported by Camera Raw 6.7 and 7.1 which is only compatible with CS5 and CS6.
    So the CS4 will never be able to open Raw 5D Mark III files.
    Why doesn’t my version of Photoshop or Lightroom support my camera?
    Choices:
    Purchase CS6 full version (CS4 is too old to qualify for an upgrade)
    Join the Cloud
    Free option: download the free Adobe DNG converter, convert all 5D Mark III Raw files to DNG format then edit the DNGs in CS4
    Photoshop Help | Digital Negative (DNG)

  • Hi there I have a iPhone 3G and it was with O2 but needed to go onto 3 network so someone on my local market unlocked it and the phone was working fine until I tried to update it through iTunes and it always now stops loading towards the end with an erro

    Hi there
    I ha
    Hi there I have a iPhone 3G and it was with O2 but needed to go onto 3 network so someone on my local market unlocked it and the phone was working fine until I tried to update it through iTunes and it always now stops loading towards the end with an error is there a way to get the phone working again please.

    Shame you had the iPhone hacked as  O2 usually unlock their customers iPhones happily.
    We cannot discuss your problem as it is in breach of the Ts&Cs you agreed to on registering
    However hint ....you have probably trashed it

  • I recently upgraded to Mavericks and I now cannot find under the file menu the option to "Save As" in my Numbers application. Where did it go?

    I recently upgraded to Mavericks and I now cannot find under the file menu the option to "Save As" in my Numbers application. Where did it go?

    In many, many apps Apple has now created a confusing array of "save as..", "export", and "duplicate" all doing essentially the same thing - saving a new copy elsewhere possibly with format changes.  Drives me nuts.
    But its always there.
    Grant

  • If I purchase a tv show on apple tv can i download it from itunes to my ipad for free. I ask because when i look in itunes on the ipad, a price and buy now appears next to the tv show.

    If I purchase a tv show on apple tv can i download it from itunes to my ipad for free. I ask because when i look in itunes on the ipad, a price and buy now appears next to the tv show.

    Welcome to the Apple Community.
    In the store (iTunes App) go to the purchased section at the bottom (photo from iPhone but it's the same on the iPad)

  • I bought a new iMac preloaded without a backup disc and I now want to reconfigure the administrator

    I bought a new iMac preloaded without a backup disc and I now want to reconfigure the administrator as I've forgotten the details I entered initially?

    Welcome to Apple Support Communities
    New Macs do not come with DVDs to reinstall Mac OS X. Instead, you have got OS X Recovery > http://support.apple.com/kb/HT4718
    If you have forgotten your user account password, you can still reset it through OS X Recovery by following these steps > http://discussions.apple.com/docs/DOC-4101 You may need to do some work with the keychain after resetting your password > http://support.apple.com/kb/HT1631?viewlocale=en_US&locale=en_US

  • My iPhone 3GS has just frozen.  My iPhone 3GS has just frozen.  It was going slow all day and has now completely frozen on the turning off screen.  Help!

    My iPhone 3GS has frozen.  It was going slow all day, and has now completely frozen on the turning off screen.  Anyone any ideas?  Thanks.

    The iOs 5.1 is a huge file that needs to be dowloaded when updating/restoring, your phone hasnt completed the update so its now in recovery mode. Look on the left of itunes, it should say downloads under the store section with a spinning wheel, click that and youll see the update file with a time remaining, wait for that download to finish then try the restore again  and it should work

  • I am using Windows 7 Home Premium 64-bit OS.  I've never had this problem before... today I opened iTunes and it prompted me to download the newest version.  I use iTunes all the time and have updated it multiple times with no issues.  During the installa

    I am using Windows 7 Home Premium 64-bit OS.I've never had this problem before... today I opened iTunes and it prompted me to download the newest version.  I use iTunes all the time and have updated it multiple times with no issues.  During the installation process it gave me an error message that said: 
    Runtime error! 
    Program C:\Program Files\iTunes.exe
    R0634
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
    I quit the installation, uninstalled iTunes and rebooted my computer.  I now receive a similar message with a slight difference:
    Runtime error! 
    Program C:\Program Files (x86)...
    R0634
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
    I did not leave anything out from the error message.  It doesn't point to a specific file, it just ends with "(x86)..."  Every time I boot up my computer, this error message pops up on my desktop.
    How do I repair this issue?  I have found multiple suggested solutions but am unsure which one is the best, and I don't want to try a bunch of different things for fear I may make the problem worse.  I would like to try and fix this myself if possible but I need to know if that is really possible or if I need to take my computer to someone for repairs.  Any suggestions will be greatly appreciated!!

    Hi lustyln,
    I'm having a little trouble understanding all of what you are trying to explain. From what I can tell, it sounds like your PC has a lot of software problems and you want to know what is supposed to be there and what isn't.
    For reference, here are your product specifications:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01893242&lc=en&product=4043282
    To get your PC software back to how it was when it was first purchased, run a system recovery:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01867418&lc=en&product=4043282
    I hope this helps.
    ...an HP employee just trying to help where I can, but not speaking on behalf of HP.

  • Trying to burn a playlist in itunes and i get this message at the end 'The attempt to burn a disc failed. An nknown error occurred (4450)'.  This is with a new Dell laptop running windows 8. The playlist was 17 songs from cd's and itunes.  Any ideas?

    Trying to burn a playlist in itunes and i get this message at the end 'The attempt to burn a disc failed. An nknown error occurred (4450)'.  This is with a new Dell laptop running windows 8. The playlist was 17 songs from cd's and itunes.  Any ideas?

    try this...
    This is how I managed to fix the problem...and I hope this helps others in the similar situation.
    I tried with another program..latest version of Nero, and this was also stopping at the 'initialising' stage. I was now lost! I thought the last resort is to give Evesham (My PC manufacturer) a buzz. They were very helpfull. Basically go into 'Control Panel', 'System', and click on the Hardware tab, then 'Device Manager'. Uninstall everything in the DVD/CDRom Drives. Then uninstall everything under the catagory IDE ATA/Atapi disk controllers. This is where my problem was, as I only had one IDE channel here. You should have 4 or 5! Reboot your machine, and everything will automatically re-load. I tried burning using Nero and it worked. Then the big test was iTunes. It worked 1st time!
    I asked why the IDE channels have dissappearred, and he said sometimes uninstalling Programmes occasionally removes them.
    I hope this will help others who are having problems to burn stuff on iTunes.

  • FF 29 totally hosed the display of Care2, now just one long line, none of the normal UI appears, but does in all other browsers. Why?

    The site now appears as one huge list, instead of the graphical interface that still works in all other browsers. I've had to revert to FF 28 where everything works fine. If there's a way to let me know when this is fixed, that would be nice. Else I'm staying with FF28 - even though it is so Chrome-like now, and I really don't like Chrome. I did miss the addon bar on the bottom with my Forecast Fox and other things handy.

    Clear the Cache<BR>
    '''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''<BR><BR>
    and<BR><BR>
    Remove Cookies<BR>'''''Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"'''''<BR><BR>
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    <BR>While you are in safe mode;<BR>
    '''''Firefox Options > Advanced > General'''''.<BR>
    Look for and turn off '''Use Hardware Acceleration'''. Then restart.

Maybe you are looking for