Transparent area of lighweight components transparent for events?

Hello,
I'm making lightweight components by extending JComponent. These contain a CubicCurve2D line which I want to be sensitive to mouseevents.
My question is: How do I make the transparent areas within the component bounds transparent for mouse events?
I want the events only to apply to the CubicCurve2D not the whole rectangle. So I want components that can overlap and only painted parts of the component to respond to mouse events and those showing through transparent areas to also respond.
Any help would be much appreciated as I'm really stumped on this!

I previously implemented the project like this but was concerned that it required excessive searching for intersections on Mouse events... using up lots of processing power and generally being clunky.
I am creating many of these curves (100's) and was hoping to optimize performance by allowing each one to repaint itself (avoiding repainting the whole lot) in response to mouse overs, clicks etc.
Is there anyway to define the bounds of a component to match it's painted area?
For example if I created a round button that partially overlapped a square button; how could you avoid activating the round button when clicking outside of the circle but inside it's rectangular bounds while still activating the square button underneath this transparent area?

Similar Messages

  • CRM ISA Software Components required for Netweaver CE 7.1

    Hi Experts
    We are planning to migrate CRM ISA Application to Netweaver CE 7.1 environment. Currently we are in Netweaver 7.0 portal in which our CRM ISA 5.0 component is running.
    What are the Software components required for CRM ISA to be compatable for Netweaver CE 7.1 environment.
    Basically we need to know the SCA versions for CRM ISA compatable for Netweaver CE 7.1
    Any kind of documentation which describes SCA's and installation steps are very much helpful
    Thanks,
    cnu

    Hi cnu,
    Information about CRM Java component should be described in master guide, for example CRM 7.0 , these components are
    SAP Shared Java Applications 7.0
    SAP Java Data Dictionary 7.0
    SAP CRM Java Applications 7.0
    SAP Shared Java Components 7.0
    SAP Shared Web Components 7.0
    SAP CRM Java Components 7.0
    SAP CRM Web Components 7.0
    SAP IPC Mobile 7.0
    TeaLeaf 4.5
    you should be able to find the SCA files in service market place using these component name.
    Interesting to know why would you migrate from 7.0 to 7.1? or you just want to PoC? I don't think SAP will you support you unless you have made a very good deal with them.
    I also heard the version of web channel will bring some really good feature though it's still based on NW 7.0 with ehp, are you going to "migrate" it once again?
    good luck,
    Denny

  • Click through swf transparent areas

    Hi all !
    I have added at the top layer of my Flex application a swf picture that covers all the scene but with transparent areas. I needed actually to make a complex frame around the app that could not have been done with a simple square frame.
    The problem is that I can any longer click or rollover the underlying items.
    Is there a way to fix that or a possible turn around without splitting my picture into 4 narrow strips to place on each border ?
    Thanks in advance.

    Well,
    I figured it out, and it wasn't too bad. I figured I'd post
    to let anyone else searching this board find the answer that I
    used. I load in pngs, and instead of just dropping the item on the
    stage, I now also save the bitmapData from the graphic. When the
    sprite that this graphic was added to is clicked on, it checks the
    alpha value to the alpha value in the stored bitmapData. If it's 0,
    then it starts to pass the event along to the other children below
    it. There may be a better way than this, but it seems to work for
    me...

  • Importing Images w/ Transparent Areas

    Hi Folks,
    I'm working on creating a form and I am creating graphics for layout.  I am using Illustrator CS3 to create them, but when I try the various formats of files, I cannot get them to display properly in Designer ES2.
    EPS - The CMYK color in ES2 is much different than my Illustrator colour
    TIFF - According to the help doesn't support CMYK?
    "Designer ES2 supports Monochrome (1 color component 1-bit depth), Greyscale (1 color component 8-bit depth), RGB (3 color components 8-bit depth), and Palette (1 color component 1,2,4,8-bit depths) TIF images. "
    PNG - It is not including my transparent areas
    JPG - Does not support transparency
    BMP - Does not support CMYK and transparency
    GIF - Does not support CMYK
    Anyone been able to find a good format that supports CMYK and transparency?
    Scott

    Hi Scott,
    I have used PNG, but you need to save them for 'web & devices' in Photoshop. Illustrator CS4 also has a 'save for web& devices' as well. Not sure about CS3.
    This is the only way I know of getting CMYK (or RGB) images with transparencies into LC designer.
    Good luck,
    Niall

  • Why do I get a colored shadow behind shadow and feather transparency areas when printing?

    Hello,
    I've been pulling my hair out over this and finally went to my printer to ask if they had insight as to why this is happening. I'll include his reply here but would like to hear your expert opinions too!
    When laying out a file in InDesign, I do a lot of overlapping, feather and some drop shadow and always get a colored shadow behind the transparency area when printing out from a pdf. These files are being designed for print, which is what I thought InDesign was created for - as an updated alternative to Quark and Pagemaker? Here is what the printer says:
    "Ive taken a look at the file in question and the issues this lady is experiencing can not be resolved in InDesign. What she needs to do is build the background image with color overlays all in Photoshop as a Layered PSD. Then flatten it and pull it in to InDesign as a Tiff. Then she can place her text over the top of it. She needs to use image masks on the color overlays - for the areas she does not what the color to violate.
    What it comes down to is these fancy design effects out of InDesign and Illustrator should never be used for printing. They can be used for web design. Reason is, they cause RIP problems. Things fall off the file and transparent areas go away just to name a few. This happens all the time."
    I would appreciate any other viewpoints here. Can I really NOT use the shadow and feather functions in InDesign for print? Are there any other ways to approach this problem other than what is being advised here. It is SO much easier to produce the entire file in InDesign.
    Here is a link to the pdf. If someone would like to see the original indd file, I can post it somewhere.
    http://displaysunlimitedinc.com/test/panel_3_text.pdf
    There is a 1 inch blur drop shadow on the black and white temple image; a 1 inch feather on the black and white screened back image behind the main text box; and no drop shadow or feather on the map at top right, yet I get a colored shadow behind all 3 of these areas when I export the indd file to pdf and print that out. The fact that I get a shadow behind the map puzzles me.
    Thank you very much in advance.

    Horgycat,
    The CMYK/RGB question is actually pretty complex, and depends to a great extent on how the final output is going to be produced.
    If the files are destined for a printing press, all RGB elements must be converted to CMYK prior to printing. You have the option of doing that before placing in ID, or during export to PDF, and there are pros and cons to both methods, but if you don't know until the last minute what the print conditions will be, the convert on export path is more flexible.
    Spot colors are a different matter. As far as I'm concerned, you should NEVER specify a spot color unless you are actually using spot ink on a press. A lot of inkjet and laser devices claim to be Pantone certified, but the reality is that even with expanded gamuts available using more than four inks, I'd estimate that better than half the Pantone solids are not reproducible as simulations that would satisfy me or my clients. The convert spot to process route should only be used, in my opinion, when you've designed a job properly to be printed using spot colors, and suddenly you have an output change or an added image that forces you to move to a process output. The last time I tried it, by the way, I had issues at the printer (the regular prepress guy was out of town, so I'm not sure what went wrong) and I ended up re-building the file with real process colors to get the transparency to work.
    But you mentioned that you are doing exhibition panels, which implies to me that they are probably NOT going on a press -- you need to do hundreds, or sometimes even thousands, of copies to make a press cost-effective compared to digital printing. I used to work in a large-format output bureau doing just this kind of work, and we used large inkjet plotters. In this case, mixed RGB and CMYK files are less of an issue since most plotters will handle either, and depending on if they have an internal or external RIP or none at all, you may actually get better color fidelity using RGB as CMYK colors may get converted in the RIP to the RGB values that the plotter understands, and then get converted back a second time to CMYK (CMYKOG or whatever ink combination is used) internally before the ink is sprayed. Only the print provider would be in a position to tell you the correct color space for the equipment.
    Which of course puts you at a bit of a disadvantage working with a client out of state who isn't supplying you with such necessary information as the correct output profiles for the job. It will be a miracle if the color is close.
    A final word about looking funky on screen. Just as many spot colors can't be well simulated in CMYK, many also cannot be displayed adequately on a monitor. The ONLY way to choose spot colors is with a swatch book, and that's what the press operator will be using to verify his work. Clients need to be educated about the differences in technology and the limitations of soft proofs.

  • Photos app no longer displays transparent areas of photo properly. How to fix?

    Hi whenever I download images to my ipad with transparent backgrounds (for use with Photoshop for example), the ipad used to display the transparent area properly as white. Then when you tapped, it would display them as black. For some reason, it now just defaults to displaying them as black. Which is fine if you have something white in color, but anything black disappears and there is no way to view it. Is this a bug? Any way I can fix this?

    Let's assume you are in your camera roll. Now do the following:
    1. Click on the home button once to get out of the camera roll
    2. Double click on the home button. (Now you should see a number of icons on the bottom of the screen. These are the applications that are currently open).
    3. Scroll sideways until you see the "Photo" app.
    4. Tap and hold the Photo icon until it jiggles and there is a red "close" button on it.
    5. Tap that red button and you'll see the icon disappear.
    6. Click the home button once to get back to your desktop.
    Now you have successfully closed the app and opening it anew will get rid of your problem.

  • RE: Transparent areas on images used inPictureButton

    I have never had any success in getting Forte to recognize the transparent
    areas of GIF images on PictureButtons. I use two different techniques to
    achieve this "transparent" look:
    (1) Monochrome bitmaps DO behave as truly transparent images, both on
    PictureButtons and in OutlineFields, under all Forte's supported
    windowing systems and no matter what you use for the FillColor of
    the button or outline. (But then of course you can't use colours
    in your image.)
    (2) If the PictureButton's FillColor is Inherit or White, you will see
    that any white pixels in your image appear grey. You can make use
    of this by making the background of the image some colour which is
    not used in the picture itself, and setting the FillColor of the
    PictureButton to that colour. You have to choose this colour carefully.
    Even if you pick a colour from the standard Windows 16-colour palette,
    say red, you will find that it doesn't match the Forte colour Bright Red
    under all possible Control Panel colour depth settings. The only
    colours which work all the time are white, black and light grey (Forte's
    Gray 2) but of course these are all colours you normally want to use
    in the picture itself! If you are developing exclusively for Windows
    clients, you can always use Gray 2, since the PictureButtons are going
    to look this colour anyway, regardless of the FillColor you assign or
    the button colour the user has chosen in the Control Panel Display
    settings. (At least, this is so for V2 - I don't know about V3 but
    from what you've said it sounds like it is the same.)
    I would love to know if there are any other ways to do this because I
    nearly went mad trying to make images on PictureButtons and OutlineFields
    transparent under all 3 windowing systems!
    Fiona Symon,
    Babylon Software Pty Ltd.

    I tried expanding the canvas (using Photoshop) to a 16 x 9 width-to-height ratio with Black fill. Worked perfectly in iPhoto.
    Thanks for the tip about the wrong aspect ratio.

  • Error: Blurb / The transparent areas will show as opaque in your book.

    I get this message when uploading my book from Lightroom to Blurb.
    "Some photos in the book have transparency. The transparent areas will show as opaque in your book."
    What does it mean?
    If I ignore it and upload anyway, the book looks ok in blurb.
    Blurb customers service cannot answer.
    Thanks

    Hi kdd!
    What happened? Did you send the book, ignoring the warning? How did it turn out?
    I get the same message – both when producing a pdf or trying to send to Blurb – still I can't find transparency anywhere in the document. The pdf looks fine, but I worry about what will happen after sending to Blurb.
    Thanks for your kind answer!

  • Export Layers to Files; transparent areas something other than white?

    I have a .PSD with 43 layers that I want to export to separate files. Works just fine using Scripts > Export to Layers...
    ...except that there are some transparent areas in each of the layers that I want to have a specific background color (the same for all 43 layers). PS keeps making those areas white.
    Setting the background color in the toolbar seems to have no effect.
    Thanks...
    DB

    It is too bad that it works like that. All I can suggest is that you make an action: New>Background from Layer, export to psd and then and run it with the Script.

  • How to exclude transparent areas in Image Trace

    I have a logo file, saved as PNG, that is black on transparent.  Very simple file, just stylized black lettering on a transparent background. In Illustrator CS5, I can place that file, do a "Live Trace" in "Lettering" mode, and Illustrator will correctly ignore the transparent areas when I expand the trace.  After expanding, I'm left with scalable paths and an easy way to change the fill color to have the logo work with my background.
    Fast forward to Illustrator CS6.  I try to do the same thing but a) there is no "lettering" preset for Image Trace and b) there is no setting I have yet found to cause Illustrator to ignore the transparent areas when I expand.  If I then fill, everything inside the bounds of the placed image (the square containing the logo) is filled with that color.  The only way I've found to get similar results is to go through the layers panel after the Expand and deselect each piece of the image that should not be filled.  I have a hard time believing this is the desired approach.
    I freely admit that I'm an Illustrator novice and I suspect that there is something one of you Illustrator experts thinks is obvious that I'm missing.  I'd sure appreciate some guidance in the right direction.

    I doubt that the Trace feature in CS 6 is a big improvement to CS 5
    Here look what might help you with this you might even be able to do a better job in Photoshop.
    I'm using your screen shot so the trace is not a good one but shows you the steps you can take to make this work better.
    Even though it is an image you can edit the colors some what here I went to Edit>Edit Colors>Adjust Color Balance ad turn the Cyan down to "0" and move the black slide a bit higher as well.
    The I did my trace and remove the clipping paths there are 2 clipping paths the way you remove the path and compund path for the square is to select one edge of the psth with the direct select tool, you need smark guides turned on to see the paths.
    the hit delete and the hit delete again and repeat for the second compound path as such path willpreven the sqaure to becoming a background filled path.
    It should be noproblem filling this without a Live Paint Group it is just that you are not familiar with what is happening to the art.

  • Modifying transparent areas in TIF files

    Hallo LR experts and community,
    in LR 3.6 I worked with panoramas imported as 16bit TIFs from PTGui which, at their margin, are transparent. These transparent areas were initially marked white in LR 3.6. and, most importantly, it was readily possible to modify these areas with the brush or repair tools in LR. After updating to LR5 and importing my LR 3.6 libraries I realised that all of the retouche and modified transparent areas are white again and all the retouche I did is gone, wherby e.g. the circles indicating where I used the repair tool are still in place.
    How can I retreive and retain the modifications I made in LR 3.6?
    How can I turn transparent areas in TIFs within LR into areas I can modify?

    while this makes perfect sense, is there nevertheless a way to retain all the modifications, i.e. the retouche I did in the transparent areas which were not treated as transparent in LR 3.6? Export + reimport as TIF does not solve the problem. Flattening the TIF in PS works but means that I loose all the image modifications which I could copy from the original to the reimported TIF - however, for 1000+ images that would be a mega hazzle. Hence:
    How can I retreive and retain the modifications I made in transparent areas of TIFs in LR 3.6 after importing the libraries in LR 5?
    Or in other words, how can I flatten TIFs with a transparency within LR without loosing the protocoll of previous modifications?

  • RE: Transparent areas on images used inPictureButtons

    Thanks all for the responses.
    I have talked with Forte Tech Support and there is a way to get this to
    work. To get transparent areas in an image on a PictureButton, you
    simply manipulate the FillColor of the PictureButton widget itself.
    Apparently, Forte takes the fill color of the button and makes it the
    transparent color for the image. For instance, if you set the fill color
    for the PictureButton to white, then any white areas on the image become
    transparent.
    A Tech Note should appear shortly explaining this issue.
    >
    I have a GIF image with transparent areas that I'd like to use in a
    PictureButton. Will Forte recognize the transparent areas in the GIF
    format and color those areas with the system settings for buttons? I've
    tried everything I could think of, but the transparent areas are still
    being painted gray.
    I am running Forte 3.0d on Windows 95.
    Van Vuong
    Lead Technical Analyst
    Office: 972.985.5289
    VoiceNow: 972.330.0822
    Internet: [email protected]
    PAGE NET

    I tried expanding the canvas (using Photoshop) to a 16 x 9 width-to-height ratio with Black fill. Worked perfectly in iPhoto.
    Thanks for the tip about the wrong aspect ratio.

  • Wow! CS6 let's you click through transparent areas in placed psd's!

    I just noticed this, this is great!
    If you cut out the background of a photo in PS and then place that in AI, you can now select things behind it as long as you click on a transparent area. Knowhattamean? Before, in CS5, if you clicked there you would still select the PSD.
    Is there a list somewhere of all the improvements in AI CS6? You know the "little things"?

    Actually, no. I thought that for a moment too. If I had Select Object by Path Only selected then I would be able to select a psd only by clicking on the outer border of it.
    At some point when I first installed AI CS6, I was able to select the psd by clicking anywhere on the psd that wasn't transparent. And clicking in the transparent areas had no effect.
    I thought that was great. And that's what I lost and am trying to get back again.

  • "outside stage content" of swf shown as transparent area in flipbook

    Hi
    I have a flipbook on stage it loads external swf.
    The problem is that after loading the external swf's into the
    flipbook,
    it shows transparent area in lowerside and to the right.
    This transparent space is actually in the offstage area of my
    external.swf.
    I have used a mask to show only stage content in external.swf
    But filpbook shows offstage content as transparent content.
    The extra trasparent portion is shown as black area in flip
    book pages.
    the paths of the book is as follows
    ============================
    http://www2.classicinformatics.com/jabir/index.html
    the paths of source code is
    =====================
    http://www2.classicinformatics.com/jabir/source.zip
    Thanks
    Jabir

    Your template contains an IE Conditional Comment that is adding 30px of top padding to  #sidebar1.  This padding may required in older versions of IE but not IE9.
    <!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixRtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixRtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    &lt;![endif]-->
    To fix it, change [if IE]  to [if lt IE 9]
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Bug and workaround: Transparent areas in After Effects are opaque in Premiere Pro using Dynamic Link

    There's a bug that causes transparent areas in dynamically linked After Effects CS5.5 compositions to be opaque in Premiere Pro in some circumstances. See this for details and a workaround:
    http://forums.adobe.com/message/3682118#3682118

    Thanx for that Todd
    I had experienced the issue just  yesterday and was wondering why ...and then what,  was I  going to do about it.

Maybe you are looking for

  • How to pass username/password through WebService proxy client to E-BS.

    Hi We are using ADF Webservice proxy client to integrate E-Business suite with ADF. It asks for username/password to access details from E-BS. In the generated webservice XSD file, a method is available with 2 parameters. 1) SOAP header( Contains Use

  • Lost iphoto

    I had the HD changed in my ibook G3 and lost iphoto that was on it. I cant figure out where or how to put it back on the computer. Is it on the original disk that came with the machine. I sure dont want to screw things up, it took me a year to get th

  • Trinidad error -- Could not load type properties in jdev11

    Hi, i am trying to run sample application "Build an End-to-End Web Application with ADF Faces and Oracle TopLink" at this url-- http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_adftoplink/master-detail-edit_page_adf_toplink.htm when i try

  • Purchase transfer issues for Garageband or other inapp purchase

    Can I purchase Garage band inapp collection from one account and sync it to a different apple account after downloading the app to my ipad?

  • Software Upgrade !!! Backlight comes on when docked to Power Supply

    Hi I am after your opinion, regarding getting apple to upgrade their software to fix the previously mentioned bugs and to also include the following feature. I am Sure everyone will agree it would be extremely useful. When the ipod is docked to a *ex