Why no Polygon2d? Is GeneralPath the alternative?

In Java2D all the old shapes got new Shape versions with
double precision - except for Polygon.
Id like to have a Polygon that uses double precision.
Im thinking that maybe they didnt update Polygon because
GeneralPath should be its replacement in Java2D (it has
float precision)?
For graphics intensive operations - is one "faster" than the other?
Thanks!

this probably does not help you much, but, as the writer of a 225+ FPS game engine, I am proud to say that GeneralPaths seem to not hinder rendering at all (as every shape in my engine is stored as one). I do not think there is much of a loss at all when rendering a GeneralPath as opposed to a Polygon because (correct me if I'm wrong) the data is still stored in sequential order, so that in essence the drawing process does the same thing, just through a different object...
Hope that helps your last question a little
Alex

Similar Messages

  • Thread.stop() -- Why is it deprecated ? - What alternatives ?

    Hi,
    I'm creating an XMPP server in Java and I have a problem. I have a thread that run the SAX parser and is constantly blocking to recive data from my socket. Now the problem is that at some point (after the authentication) I need to stop the XML parsing.
    The only way I can do this, I think, is by using the Thread.stop() method, but it is deprecated :(
    I read the FAQ about this deprecation but the alternatives given can't work for me:
    - I can't close the eocket because I need to read another XML document right after on the socket
    - I can't call Thread.interrupt() because the thread is blocking on an IO
    - I can't use a shared variable because the thread is blocked inside the SAX parser that call from time to time a callback. I can't modify the SAX code :(
    Does anyone have an idea how to make my thread stop the parsing ?
    Thanks
    Mildred

    If you've read the "FAQ" on deprecation of stop etc then you already know why stop() is deprecated - it is inherently unsafe as you can't know for sure what your thread was doing when you tried to stop it. Further, what those documents don't tell you is that Thread.stop doesn't break you out of most blocking situations any way - so it wouldn't necessarily help even if it weren't deprecated.
    I don't know the I/O or threading architecture of what you are working with so the following may not be applicable, but hopefully something will help:
    One of the alternatives you didn't mention is setting the SO_TIMEOUT option on the socket so that your thread can periodically check if its actually been cancelled. I don't know if that is possible in this case it depends on how the use of sockets gets exposed by the library.
    Other possibilities for unblocking a thread are to give the thread what it is waiting for - some data on the socket in this case. If you can send something that can be interpreted as "stop looking for more data", or if you check for cancellation before trying to interpret the data at all, then you can unblock the thread by writing to the socket. Whether this is feasible depends on how the real data is written to the socket.
    Final possibility is to create a new thread to do the socket reading. Your parser thread can then read from a BlockingQueue, for example, that is populated with data from the socket thread. You can use interrupt() to cancel the parser thread and just ignore the socket thread - which presumably will unblock when the next real data arrives.

  • What's the alternative to losing everything?

    Guys I can't believe we lose all these features in iCloud, http://support.apple.com/kb/HT4898 – what is the alternative? Surely Mac would have one? I run 4 computers and need keychains, system preferences, signatures to all be in sync with each other MobileMe was perfect for this... if anyone has any ideas they would be very much appreciated!

    I can't believe that either, that's the only thing I've been using mobileMe for. IPersonally I can't see a single reason why I shoudl upgrade to iCloud.

  • Are there any relay modules available for Compact Fieldpoint, and if not, what are the alternatives?

    I'm speccing out a Fieldpoint system, and although Compact Fieldpoint has many features that make it superior to Fieldpoint for my application, I'm wondering why no relay modules seem to be available for it.
    The cFP-RLY-420 is referenced in the manual it shares with the FP-RLY-420, and a search in the product section comes up with several pages that aren't viewable, but it doesn't seem to be currently available.
    More importantly, if there are no relay modules available at this time, what would be the alternatives for switching? A small Opto22 backplane wired to a DO module perhaps?

    Mako,
    Several of the more specialized modules in FieldPoint have not yet been released in Compact FieldPoint. However, National Instruments is presently working on releasing most of these traditional FieldPoint module in the future.
    Depending on your application, either the cFP-DO-401 or cFP-DO-410 (which are both providing sourcing outputs) may be a possible alternative. The DO-401 module can sustain up to 2 A per channel, 8 A squared per module whereas the DO-410 can sustain up to 1 A per channel. Please note that these modules only handle low voltage DC.
    Regards,
    Cyril Bouton
    Applications Engineer
    National Instruments
    Cyril Bouton
    Active LabVIEW Developper

  • Why did my upgrade to Maverick result in my not being able to access my Documents in the previous format? Why did I not have the option to change my 'filing' system to use the new 'Tags'? Had reinstall 10.8.5 to access my Documents

    Why did Maverick not enable me to access my Documents in the previous format (Grid) and when using the alternative I could not 'clik' to open them. The same applied when I tried to open documents from within my back up disc (LaCie). I had to reinstall 10.8.5 and back up from my LaCie (thankfully) to gain access to all my critical Documents? To deal with this I spent 3 and hlafg hours on telephone to Apple Support ( very helpful - but unable to resolve issues - then 3 hours in Apple Store (again very helpful but only able to assist by clearinng Maverick from my HD and reinstalling 10.8.5. Fortunately LaCie came to the resuce and I was able to back up Mac HD with all my documents but lost about one week of work....!!
    Why did I not have the option when upgrading to Maverick to select the new 'Tag" system which I did not want?

    10.8.5 is the lates ML edition.  I use TM and also carbon copy cloner as my second backup.  If I were you and you have a TM backup prior to Mavericks I would try another restore at bootup.  You should erase your drive first in that process using disk utitlites and then use TM to put back you apps and files.  The other choice is to do an internet recovery and then use TM to restore your apps and files.  That should fix the permissions issue.  I did the same thing and all was OK including getting my original iPhoto progam (9.4.3), iphoto11 and photos back.

  • Firefox OS Simulator 4.0 not available on Firefox 17.0 What is the alternative?

    Why isn't the Firefox OS Simulator 4.0 available on Firefox 17.0? When will it be available? What are the alternatives?

    Hello CKemp, Firefox OS Simulator 4.0 is the latest and works only with Firefox 19.0 and later, for the 17.0 firefox version only the Version 2.0.1 (and 2.0) works.
    sorry but i think the alternatives is to update firefox to latest version, so to work with the latest Firefox OS Simulator 4.0.
    are you talking about 17.0.8esr ?
    thank you

  • HT5622 how do i delete the alternative e-mail?

    this *****!
    how do i delete or change the alternative e-mail
    i need the alternative e-mail as my appel-id and this can´t be done because its the alternative.... and there is NO help from the pop-up...

    support my but!
    I had to find the answer my self...
    i´ve never had so bad software, support page and guidence like with Appel products - sorry, but everything is far from logic...
    please do like this:
    reset your security password and questions by pressing the link inside your account - this is sending an e-mail to your self!
    in this email there is an link where you can reset the alternative e-mail adress - click it and make changes!
    Why was this not just written in the support-page???

  • How to deactivate the alternative Apple-ID?

    Hey boyz n girlz
    I just wonder if there is a way to deactivate or better delete the alternative Apple-ID.
    But somehow I think that the 2. thing is not possible. I can change my Apple-ID or can add/delete iCloud email alias address, but I am not able to delete the alternative Apple-ID. IF there is a way to do so, but I just don't know it, then please let me know.
    Apart from that: If it's not possible, is there a way to deactivate this alternative apple-ID for the email-service itself? I just used this email-address for quite a time and now I ended up with getting loads of spam to this address...of course i just can add other email alias to it, but then i still receive all that stuff to my alternative apple-id.
    So if you have an idea to my stuff, please let me know.
    Thanks in advance!
    Cheers

    Yes, I already had this idea myself. Of course I could set up a rule to let the mails I get to that alternative apple ID, which is yes, an iCloud/me one, move automatically to a certain folder or trash. But some people have that address and I don't want them anymore to have a chance to email to me...so that's why Id like to delete OR just deactivate it for email receiving.
    But yea, I thought that there might be no way to get this how I want it. Maybe an idea would be to get back on apple with this issue. Because let's say you are a huge business  costumer to apple and really need to have this address at least deactivated for emails, I'm sure apple would help you out then...but on me, they probably don't give a sh** what I want.
    Anyways, thanks roger for your answer and help so  far! :-)

  • Why i can not see the columns of "Tax Category" in transaction code FS00

    Dear Experts,
          Why i can not see the columns of "Tax Category" and "Posting without tax allowed" in tab of "Control Data"  transaction code FS00?
           How can i add the columns of "Tax Category" and "Posting without tax allowed"?
    Looking forward to your reply.
    Best Regards,
    Merry

    Hi,
    Go to transaction OBD4, and check whether the field "Tax category" is suppressed in group "Account control" for your GL account group.
    If not, then go to OB26 and check the field status for the same field for create, change activity.
    Regards,
    Gaurav

  • Why can I not disable the guest user in the 10.8.2 update? I have never enabled the guest user, but after the update, it was automatically enabled with a "managed" tag. It is not selectable even after entering my admin password to unlock the options.

    Why can I not disable the guest user in the 10.8.2 update? I have never enabled the guest user, but after the update, it was automatically enabled with a "managed" tag. It is not selectable even after entering my admin password to unlock the options. I was able to select the account under "parental controls", but again, could not delete it. Why Apple? Why?!!????

    SOLVED Ok. I actually was able to disable it. I had to actually log in as the guest user to make it accessible in the preference window. Then I disabled it and logged out. Apologies if this was obvious for some people, but I have had some sort of issue with something every update since Snow Leopard.

  • Why does iTunes not refresh the Music Library if files are updated?

    What if have already a nice library SYSTEM built for my music, and every time I add 30-50 files to 30-50 different locations, iTunes requires me to add the same song again... What if I am doing this updating for 3 hours and I can't remember anymore which songs I added to my Brazilian compilation folder? Why can't iTunes update the library with added files? I see this question popping up on a lot of forums. This is very cumbersome. I keep my international music collection organized by country of origin. If I let iTunes consolidate my music, it will put everything into one big folder organized by name of artist. I definitely don't want to let the program do that. I would lose all my work and all my system.
    Once I imported the folder system into iTunes though as a reference, it does not recognize if there was a change, music added, music deleted, music reogranized. It doesn't make sense to delete everything from the iTunes Music Library every time I update my music collection.
    Where is the solution? I want iTunes to find the changes and apply it to my Music Library automatically.
    I can live with my iPod only having the files in one big library, since I mostly use it for shuffle play anyway, but I want to keep my originals in an orderly manner based on style, country of origin, etc. I don't want to end up having all my files renamed and moved.
    So I need iTunes to refresh my Music Library by looking at the original folder I imported the list from, and make the necessary changes.

    I guess then this is a serious shortcoming of iTunes... Up till this point I owned an RCA Lyra MP3 player and it had no problems whatsoever doing these things. I guess, after seeing how iTunes and iPod works, I'd rather return to Lyra if it had an 80 G version. The only thing that still keeps me with iPod is the capacity.
    It seems like that iTunes is a very cumbersome program and it tries to be so much user friendly that it even tries to eliminate the human element. Sometimes, it makes sense to keep files organized in specific manner. Especially when there is work involved and productivity.
    I guess I will just delete everything from the play list and read in the main folder every once in a while, leaving the machine working on it during the night or something, then another night, it will refresh my iPod. That's the only solution I see right now.
    It is interesting that a huge program like iTunes cannot do what a small one like Lyra can. And I even read in user groups that some people created programs for this problem, but those programs don't work with iTunes 7 well yet, so I am stuck with the manual updating or the brutal deletion and re-reading.
    Thank you for the answer. At least I know what not to expect from the program. I just use it for only one purpose: load music onto iPod, then forget about it. It quite an unuseful program for me otherwise.
    G5   Mac OS X (10.4.8)  

  • After upgrading to IOS 5.1 I no longer can see Verizon at the top of my Iphone and under settings general Network says Not Available Why is this? Did the upgrade cause this?

    after upgrading to IOS 5.1 I no longer can see Verizon at the top of my Iphone and under settings>general>Network>says Not Available Why is this? Did the upgrade cause this?
    steve

    See this tip --> http://support.apple.com/kb/TS1559
    If this doesn't resolve it you most likely have a hardware failure. Fortunately, your phone is in warranty, so if you take it to an Apple store they will replace it.

  • I have upgrade ios 6 to ios7 on my iphone 5.  I do NOT like it.  I want to come back to the previosu version.  why is it so complicated.  Why can I not find the instruction strait from apple? This is the worst possible upgrade ever.

    I have upgrade ios 6 to ios7 on my iphone 5.  I do NOT like it at all.   I want to come back to the previous version.  why is it so complicated? Why can I not find the instruction strait from apple? This is the worst possible upgrade ever.  It make me think of when ericsson got sold to Sony....drastic PC change.
    I would like to have simple instruction on how to downgrade.
    It feel like a change that I did not ask for , ok I push the upgrade buttom, but really this is the worst update aver!
    HELP!

    iPhone User Guide (For iOS 7 Software)Sep 20, 2013 - 23 MB

  • How can i set the alternating colors for a table rows

    Dear All,
    Please any one help me how can i set the Alternating colors for Table Rows.
    i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.

    Hi,
    The design property in Table properties should work for your requirement. Select "alternating" value for design.
    Please see the API below:
    design
    Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
    alternating - The table rows are displayed alternately in a different color.
    standard - The table background has one color. The individual table rows are displayed with grid net lines.
    transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
    Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
    Regards,
    Jaya.
    Edited by: VJR on Jun 17, 2009 6:43 PM

  • Hi, why can't I use the iMessage on my iPhone? I've already had my apple id email on it but it keeps saying "waiting for activation" always like that. No progress. Could anybody help me on this? Cheers

    Hi, why can't I use the iMessage on my iPhone? I've already had my apple id email on it but it keeps saying "waiting for activation" always like that. No progress. Could anybody help me on this? Cheers

    I have an old iPod Touch with old software that can no longer be updated:
    iOS version 6.1.6
    I've been searching for a solution to my iMessage login problem for months and tried everything from those frustrating links and all the tips from other users.
    Here is what finally worked:
    1) Settings > Privacy > Location Services > On
    2) Settings > General > Date & Time > Set Automatically > On
    3) Reboot device until Apple logo appears
    4) Settings > Messages > Sign In

Maybe you are looking for