AffinTransform arrows are lost when overlapped on each other

I am drawing a polyline with arrow at both the ends using AffinTransform. When the one end arrow is overlapped with other end arrow, both arrows disappear. I have written the code on mouse dragged to draw the polyline with arrow.
I am also pasting sample code what I am using to draw arrow. Can you please suggest something on this.
Thanks
at2 = AffineTransform.getTranslateInstance((int)ePTx-horizontalScrollBarValue, (int)ePTy-verticalScrollBarValue);
               at2.rotate(angle);
               AffineTransform k2 = g2.getTransform();
               g2.setTransform(at2);
               Line2D.Double arrowTop2 = new Line2D.Double(length, 0, length - (al*xScale+newplWidth), -(wl+newplWidth));
               Line2D.Double arrowBack2= new Line2D.Double(length - (al*xScale+newplWidth), -(wl+newplWidth), length - (al*xScale+newplWidth), wl+newplWidth);
               Line2D.Double arrowBottom2 = new Line2D.Double(length - (al*xScale+newplWidth), wl+newplWidth, length, 0);
               int[] xPoints2 =  {(int)arrowBack2.x1,(int)arrowBack2.x2,(int)arrowTop2.x1,(int)arrowTop2.x2,(int)arrowBottom2.x1,(int)arrowBottom2.x2};
              int[] yPoints2 =  {(int)arrowBack2.y1,(int)arrowBack2.y2,(int)arrowTop2.y1,(int)arrowTop2.y2,(int)arrowBottom2.y1,(int)arrowBottom2.y2};
              g2.fillPolygon(xPoints2, yPoints2, 3);
              g2.setTransform(k2);

at2.rotate(angle);
AffineTransform k2 = g2.getTransform();
// use this only once, to reset the original transform
// just before leaving the method (as you have done)
//g2.setTransform(at2);
// here, try instead
g2.transform(at2);
...Read the Method Detail for both the setTransform and the transform methods in the Graphics2D class api for details.

Similar Messages

  • I gave my Mom new iPad - she's forgotten her pass code. She has now been locked out and told her "iPhone is disabled". How do I help her? We are 2 provinces away from each other!

    I gave my Mom an iPad. She has created an Apple ID (twice) and forgotten her pass code. She has now been locked out and told her "iPhone is disabled". How do I help her? We are 2 provinces away from each other!
    She is 75 and frustrated!  How do I walk her through this?
    Diane

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.

  • Is there a way that you can copy and paste blade effects from one clip to the other so that the cuts are an exact duplicate of each other?

    Is there a way that you can copy and paste blade effects from one clip to the other so that the cuts are an exact duplicate of each other?

    The same cuts that I have in this clip that i performed with the blade tool, I want to duplicate, copye, paste and apply to another clip. I want the cuts to mimic and be an exact same. I wish i could highlight the clip, click copy and then highlight the other clip and then click paste and the cuts apply.

  • I have the iPhone and my own Apple ID. I would like the iPad to have my husbands Apple ID so we are able to communicate with each other (he is deaf). How can FaceTime and iMessage be set up to do this?

    I have the iPhone and my own Apple ID. I would like the iPad to have my husbands Apple ID so we are able to communicate with each other (he is deaf). How can FaceTime and iMessage be set up to do this?

    Log into each device with your own Apple ID's in Settings > iCloud.
    Then, so you can share preiously purchased apps, log into both devices using the Apple ID used to make those purchases, but ONLY in Settings > iTunes and Apps Stores.
    Verify that each device uses your own Apple IDs in Settings > Facetime and Settings > Messages.

  • Was able to bluetooth one time to play scrabble on our two iPad 1's, but have not been able to do so again.  Both are searchable, but are not able to find each other.  Any help will be appreciated.  Thanks.

    Was able to bluetooth one time to play scrabble on our two iPad 1's, but have not been able to do so again.  Both are searchable, but are not able to find each other.  Any help will be appreciated.  Thanks.

    Both need to be in the lobby, and searchable at the same time.  Also, if either has been paired with a keyboard or headphone since you played, go into settings, and make sure those devices are unpaired, and not interfering with the process.

  • My Iphone updated today with new IOS 6.1 and while doing that it has sync my phone number with my wife number in the same cloud that we have hence we receive each others SMS when we message each other. Anyone have idea how can I fix this issue in settings

    My Iphone5 updated today with new iOS 6.1 and while doing that it has sync my phone number with my wife number in the same icloud due to which we receive each others SMS when we message each other. Anyone have idea how can I fix this issue in settings etc
    Thank you

    My Iphone5 updated today with new iOS 6.1 and while doing that it has sync my phone number with my wife number in the same icloud due to which we receive each others SMS when we message each other. Anyone have idea how can I fix this issue in settings etc
    Thank you

  • I recently did the 5.3 update to my Apple TV and now it is running sluggish and things keep freezing and then pictures are loading on top of each other. Then I did a hard reset today and now the WWDC app is gone. Anyone else having these issues?

    I recently did the 5.3 update to my Apple TV and now it is running sluggish and things keep freezing and then pictures are loading on top of each other. Then I did a hard reset today and now the WWDC app is gone. Anyone else having these issues?

    I have been having problems with my atv 3 not transmitting/receiving 5.1 surround. Whether I stream from my computer or watch movies, I am getting no 5.1 audio. The atv won't even show the option for surround. I tried to restore and reset the device but it didn't help.
    I haven't had any problems with missing apps or freezing or anything similar to what you are experiencing. This update has many bugs. Other threads have reported even more problems. Hopefully I can go back to the previous update.

  • Stack picks are lost when duplicating a book - any ideas?

    Hi everyone,
    I've noticed that when I duplicate a book in Aperture 2, my "picked" image settings/choices from each stack are lost and i have to go back and re-pick the images I want to use. With the 100 page books this becomes very time consuming and annoying - is there anyway around this so that duplicate book means exactly that (not duplicate-most-of-the-book-but-not-the-important-bits)
    The only workaround I've found so far is to extract the versions I want to use and then delete the old stacks - which works but is still a chunk of time to have to spend.

    I've discovered that the solution to this problem is to pull the "picked" image out of the stack, and then delete the stack (to keep the album tidy and straightforward). That way there are no options for Aperture to revert to when duplicating a book/light table.

  • Acrobat bookmarks are lost when resaving the file

    Hi,
    I am converting a docx to pdf using Save as --> PDF --> clicking on options and selecting create bookmarks using headings and publish.
    The conversion is done perfectly. However after encrypting, or changing a name of a bookmark and saving after that, the bookmark links are lost. When I right click on any bookmark and checking there link, there is nothing.
    I noticed that if I use Microsoft Word 2007 with SP2 this problem is resolved. However, I have various pdfs already converted (and don't have the original doc) which I need to encrypt. However this is not possible to do so as they lose their bookmarks.
    Is there a solution for this?

    I am seeing a similar bug in Acrobat, and I am seeing it in both Acrobat 7 and Acrobat 9.
    If I have an open PDF, and I choose File > Save As, then rename the PDF, all bookmarks are lost.
    Gone. Poof. Bye-bye.
    If I rename the file in Windows Explorer, the bookmarks are retained just fine.
    This happens without exception. Every PDF file.
    I simply cannot use the File > Save As command at all. Ever.
    First detected it in Acrobat 7, and I am still seeing this behavior in Acrobat 9.

  • The headers are lost when poped up in Chrome

    I set the authorization header and other self-defined header in URLRequest. It works work well in Chrome when I use URLLoader to load this request. However,when I use navigateToURL(request, "_parent");     to pop up a window, the headers are lost. And I don't know who is responsible for it.Anyone can give me an idea to work around.Thanks in advance

    See http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • What styles are lost when importing/converting PS text to editable text?

    In CS5.5, when I import a PSD file with one or more text layers (retaining layer styles and editable layer styles) some of the layer styles change upon import.
    In addition, after import, in the Comp panel, sometimes there are no visual differences between that display and the display in PS. But in individual style layers in the Timeline panel, things have changed. Most typically, strokes with gradients are changed either to a solid color (gray or red) or to a simple white-to-black gradient. How is it the display can show a gradient when the stroke layer shows a solid color?
    When the text layers are converted to editable text, those changed style properties kick in.
    I'm guessing some or all of this has to do with AE text not being able to have a gradient for the fill or stroke? That being the case, is there a work-around?
    If this goes beyond not being able to use a gradient for fill or stroke, what are the "rules"? What styles are lost/changed upon import and when converting to editable text?
    Jeff Sengstack

    > In addition, after import, in the Comp panel, sometimes there are no visual differences between that display and the display in PS. But in individual style layers in the Timeline panel, things have changed. Most typically, strokes with gradients are changed either to a solid color (gray or red) or to a simple white-to-black gradient. How is it the display can show a gradient when the stroke layer shows a solid color?
    After Effects includes the entire Photoshop rendering engine, so any PSD and its layer styles should render fine (i.e., just like in Photoshop). If it doesn't, please submit a bug report.
    But After Effects does not include the entire UI from Photoshop for creating and modifying layer styles.
    The layer styles feature in After Effects exists primarily to provide fidelity between what you see in Photoshop and what you see in After Effects---not so that you can add and modify layer styles in After Effects. The UI in the Timeline panel is therefore a barebones implementation that doesn't include many of the features of layer styles in Photoshop. As you observe, there are many cases in which the representation in the Timeline panel is much more simplistic than what is in the Composition panel.
    This separation between the UI and the ability to render with good fidelity is most apparent with pattern overlays. See this video for a good demonstration of how to use layer styles in After Effects by tapping into these features in Photoshop:
    http://library.creativecow.net/articles/harrington_richard/photoshop_layer_styles_with_ae. php
    > In CS5.5, when I import a PSD file with one or more text layers (retaining layer styles and editable layer styles) some of the layer styles change upon import.
    How, exactly, do they change? A screenshot would be useful.
    If it's what I'm suspecting, then the page that Mylenium points you to has the clue:
    "When a layer style is applied to a vector layer—such as a text layer, a shape layer, or a layer based on an Illustrator footage item—visual elements that apply to the edges of the contents of the layer apply to the outlines of the vector objects, such as text characters or shapes. When a layer style is applied to a layer based on a non-vector footage item, the layer style applies to the edges of the layer’s bounds or masks."
    When you convert between Photoshop text and editable text, you're changing the render order and also switching between raster images and vectors. This can affect appearance in many ways.

  • My backward and forward arrows are missing when I download Firefox 4.0

    My brother was at my home this past weekend and he downloaded Firefox 4.0 to his Windows Vista laptop and the download worked perfectly. When he downloaded Firefox 4.0 to my Windows Vista desktop, the download is missing the backward and forward arrows are missing and I find it very difficult to use the Firefox application. My brother removed the program and redownloaded the program at least 4 more times and every time the program downloaded with no backward or forward arrows. Both applications were downloaded from the same Firefox 4.0 website. How can this happen and what can be done to correct it?

    Try to reset the toolbar customization, see:
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Groupings are lost when saving between Illustrator CS5.1 and CS6

    A PDF that was created with Illustrator CS5.1 is opened in CS6 and then saved. When this said PDF is opened again in CS5.1 all groupings are lost. Any way of preserving this when saving?

    When you convert from .ai format to .pdf, that is where your groupings are changing. You could turn on preserve illustrator editing capability to preserve layers, but you want to look at your worklflow. You should be saving as .ai file whenever you can, and only to .pdf as a final copy for distribtuion to someone who does not illustrator.

  • Cmos settings are lost when unplugged

    Every time my computer is unplugged the cmos settings are gone when I restart. It's been like this since I got it 2 weeks ago. I thought flashing the bios with the latest version might help but it didn't. The battery voltage is 3.504V.

    A weak battery can still have the correct voltage and still be bad due to not supplying the correct amount of current. There is another possible solution. Remove your battery jumper and put it back on again. You may have a bad connection. The same holds true for the battery clip. If those don't solve it then you may want to pop for a new battery.

  • Contacs are lost when Synch to empty list in OUTLOOK !

    I have prepared my contacs list in the iPhone and wanted to back it up to OUTLOOK with the iTunes.
    My contacs list in OUTLOOK was empty and after Synch my contact list both in the iPhone and in OUTLOOK are LOST !!
    My previous backups of the iPhone did not include the Contacs, so I guess there is no way I can restore my lost contact list. Is that correct?
    What is the correct way to transfer my Contacts from the Iphone to the PC (one way).
    I have the 3G iPhone and use Itunes 8, OUTLOOK 2003
    Thanks.

    You probably can't recover your contacts. As the manual says, be sure you have at least one contact in Outlook before syncing. This will prevent what you encountered.

Maybe you are looking for

  • How to use a CSS file  in a jspx page..

    I'm using JDev 10.1.3.4. I would like to know how can i use a CSS file in a JSPX page.. there is this file: public_html\WEB-INF\temp\adf\styles\cache\oracle-desktop-10_1_3_4_0-en-ie-6-windows-s.css How do I make use of this is my jspx page? Also how

  • Web Server

    Any help would be appreciated. My question is as follows: Enabled server-side include in Web Server. When I put the following <!--#include file ="web-root directory/web/index.html" --> is working BUT when I put <!--#include file="index.html" --> is n

  • Problema con el instrument I/O assistant

    Disculpen espero me puedan ayudar, he querido utilizar el Instrument I/O Assistant, pero siempre que lo pongo en el diagrama de bloques me sale una ventana diciendo:  "Existe un problema con el Measurement & Automation Explorer ó el Instrument I/O As

  • Corrrect procedure to upgrade

    What is the correct procedure to upgrade from Forms30 to Forms60 ? Is it Forms30 to Form4.5 to Forms60 ? Is there any direct method ? I tried using f60genm, but it only generates the .fmx file not the .fmb file. what I am missing ??

  • Usb devices cash mac book pro?

    hi i recently did a system update on my mac. after doing so when i try to plug the usb cabel to my printer or a flash drive into my computer a dark veil comes down telling me to restart my computer. However if i plug in my ipod it works perfectly fin