Problems with .chart-field-background and event managers

Hello. I am trying to add event handlers to my chart, so that the user can be allowed, click in the chart itself to perform certain actions such as moving, zooming, etc.. To avoid having to deal with the manipulation of mouse clicks that are not the card itself (for example on the axes), I found that:

. Chart-field-background

is the area which gives me all of the graphic and nothing else. However, when I move the mouse listeners in this region, the event is recorded only on half of the cells in the table. If you've seen the lack of available JavaFX graphic of background, you know that it contains lines in alternation of cells with a slightly different color. I found that only lines with lighter gray coloring record actually a mouse click on them, which makes me believe that dark grey cells do not form part of the background-field-.chart, but something else on top.

For me, this is is a failure in the way the map regions are defined. Why can't I get a listener to work in the graphical overview and nothing else? Currently, the only solution seems to be to take the region:

. Chart-content

instead and calculate the difference between this region and the .chart field bottom to manually remove mouse clicks that are outside .chart-field-background.

Someone at - it suggestions? This is true on the JavaFX Jira issue?

Hello

I'm not an expert on controls, but here is my suggestion based on your description: when you register an event handler on a node of "substance", it is called only when the mouse points to the context node - I assume that light gray is the transparent and gray with light gray cells background dark cells to fill. So the behavior seems OK - you can't wait for the events to be delivered at bottom when it is covered by the other nodes. I think you should really register Manager on all of the graph and filter events that you do not want to manage. However, this should not require a large part of the calculation of the difference between the regions, it should be possible to do just something like

if (!background.contains(event.getX(), event.getY())) {
    return;
}

I hope that does not reach the bottom under the axes as well. Note that if there is the various transformations between the background and the node with the Manager on it, you may need to regenerate the coordinates of

background.sceneToLocal(event.getSceneX(), event.getSceneY());

And use the method that contains it.

Tags: Java

Similar Questions

  • Problem with the PrintJob background and default

    Hello, I have a problem with PrintJob - print in pdf format.

    I want to print bitmaps with transparency and vectors.

    I checked all the options and still have a gray background under the bitmaps and vectors. This is the background color from scene.

    It seems to me that flash is printing in bitmap mode no matter what I do.
    Anyone know how to print MovieClip/Bitmap without default background. I send to print bitmap/movieclip with transparency, but the output is always packed bitmap.

    var pj:PrintJob = new PrintJob();
    var sheets:MovieClip;// = new Sprite();
    var options:PrintJobOptions = new PrintJobOptions();
    options.printAsBitmap = false;
    var dodd:MovieClip = new MovieClip();
    stage.addChild(dodd);
    var pagesToPrint:uint = 0;
    if (pj.start()) {
        for (var i:int = 0; i < pages.length; i++)
        {
            sheets = new MovieClip();
            //sheets.graphics.beginFill(0xFF0000, 0);
            //sheets.graphics.beginBitmapFill(pages[i].getChildAt(0).bitmapData, null, false, true);
            /*sheets.graphics.lineStyle(0,0,0);
            sheets.graphics.drawRect(0, 0, pj.pageWidth, pj.pageHeight);
            sheets.graphics.endFill();*/
            sheets.addChild(pages[i]);
            dodd.addChild(sheets);
            try {
                pj.addPage(sheets, new Rectangle(0, 0, pj.pageWidth, pj.pageHeight) , options);
                pagesToPrint++;
            }
            catch(e:Error) {
                // do nothing
            }
        }
        if(pagesToPrint > 0) {
            pj.send();
        }
       
        while(dodd.numChildren>0){
            dodd.removeChildAt(0);
        }
        stage.removeChild(dodd);
        dodd = null;
       
    }
    
    

    using actionscript, create "pages" with a white background and content you want, and then print these new pages.

  • problem with tab structure control and event

    Hello

    My program has a tab control. In each tab, I have an event structure to control some events.

    I encountered some problems. These are:

    1. in each tab, I set tab as an event control, to altogether from the structure of the event as tab change (for example, the image below). My first problem is that when I change the tabs, in the arch depending on whether my program is entered in the next tab environment, happening at the event: change value to main tab! And gives bad result.

    2 - I've scheduled two final tabs as below in the image. I had no routine in these two tabs. Simply, I want when I change the tab, it goes to the next case of the tab control. But when I run the program, it goes to something as busy after one or two changes tab and did not work properly.

    Could someone help me please?

    Thanks in advance

    Baran

    Rebecca wrote:

    I want to have 4 tabs, each tab having 3 Boolean control.

    If in each tab all Boolean control wins 1, a Subvi should be run.

    I wrote this code with some time within each tab loop this case hase 3 for each Boolean control. The result is true.

    But I think that if I write it with a structure of the event within each tab instead of 3 cases, the cpu load will be lower.

    Is it not true?

    Make a unique Structure of the event.

    Add events for all controls (buttons, Boolean)

    When the event is triggeredcheck for active tab control and decide what void / vi to run

    It will work fine you

  • Why my front panel opens with a white background and most of the invisible control

    When I open my vi and several others, they open with a white background and most of the controls not returned as theis

    After I resize it looks like it should

    It's probably somewhat similar to these problems of crazy object.

    Sometimes copy/paste works because it takes your code on a VI that could have a corruption and put in a cool VI.  In your case, the corruption could be linked to the control itself and he just copied over in the new VI.  Money controls are a relatively recent creation which added some fancy appearances.  They don't seem to be the style that is most likely to have some behind the bugs of scenes from the styles of controls that were longer.

    If you have a shared services provider, or if a person nor jump here and wants to study, they want to can see your VI and understand what goes wrong.  If this isn't the case, I hope that what you've done has solved the problem and you can spend without return.

  • Since Acrobat Reader downloaded DC I can't sign my PDF documents. It does not give me the option more and yes I am connected. On the old version, I got no problem with clicking on "signature" and draw the area where I needed my signature, put passw

    Since Acrobat Reader downloaded DC I can't sign my PDF documents. It does not give me the option more and yes I am connected. On the old version, I got no problem with clicking on "signature" and draw the area where I needed my signature, put the password and "POOF" my signature would be there. With this new version, it won't do that or give me the option. The online help is useless. I need to explain to me how connect you as I used too?

    Hi nicholass35183848,

    I assumed that you had a digital signature created in your player application of old and whenever you use to fill out a pdf with a signature field signed you it. But in order to draw and then sign you must use Acrobat Pro DC no DC drive.

    Thank you

    Abhishek

  • Now, I have a problem with my domain name, and when I want to publish my site I can't, when you're looking for my website address, you can not found

    Now, I have a problem with my domain name, and when I want to publish my site I can't, when you're looking for my website address, you can not found.

    Hi Esther.

    Are what problem you facing your field?

    What problem face you with the edition?

    Kind regards

    Aish

  • Hello, I have a problem with Mozilla Firefox 14 and now also Firefox 15. When I click on .html files on my desktop, firefox will open a new window twice. Where is the th

    Hello, I have a problem with Mozilla Firefox 14 and now also Firefox 15. When I click on .html files on my desktop, firefox will open a new window twice. Where is the problem? Thank you

    That may be a problem with the DDE.

    Try to undo and redo Firefox as default browser.

    Make a different browser like IE browser by default and then let Firefox do it again.

    See:

  • Are there problems with Firefox 5.0 and 1Password 3.6.1?

    I started to update to Firefox 5.0 and noticed a message that the 1Password version I had at the time would not work with Firefox 5.0.
    Are there problems with Firefox 5.0 and 1Password 3.6.1?

    They say you need 1Password 3.6.0 or later to work with Firefox 5.0

    http://Forum.agile.WS/index.php?/topic/5319-Firefox-5-requires-1Password-360-or-later/

    http://help.agilebits.com/1Password3/firefox.html
    
  • Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    Kev2012 wrote:

    Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    It would depend on what you're trying to link to?

    Here are the supported Bluetooth profiles an Apple device can connect to iOS: Bluetooth profiles supported - Apple Support

  • Equium L10: Problem with the main battery and battery RTC

    Hello

    I have the Toshiba Equium L10 and it is about 14 months old and I have problems with the battery and how much time it takes after a full charge. I also have problems with the RTC battery and an ERROR 0271: check date and time settings message when I turn on the laptop.

    Regarding the battery, I can fully charge it upward in about 3 hours, but when I start to use it, apparently in the last few hours around one and a half or so and then it needs to be recharged. I can have down for about 40 minutes and then turn it off and come back later or in a day or two. How long should I expect from a fully charged battery?

    About the batttery RTC, it really becomes a pain and I only started to get the message of the ERROR 0271 start-up, in recent weeks. I can charge the battery pack and then leave for a few days, but when I turn it on, I get the message ERROR 0271 on the date and time incorrect. Surely after a full charge, the RTC battery should last longer than a few days?

    The manual says that if the RTC battery is exhausted or becomes weak, you must charge the battery of the CCF for 24 hours, in a different part of this manual indicates between 24 and 48 hours, but how can load you for long when the sections concerning the charging battery pack status after charging the battery you unplug the power adapter because leaving connected will shorten the life expectancy of the Battery Pack. So, how we can charge the battery of the CCF for 24 to 48 hours if we shouldn't leave the AC adapter plugged in once the battery is charged - which is nearly three hours. Suggestions about these problems would be appreciated.

    Besides we all know that it is easy to change the CMOS/RTC battery in your desktop base unit, but is it easy to change in a Toshiba Equium L10?

    Concerning

    Brave0

    Hi Brave0,

    The normal recommendation for the CMOS (RTC) battery is to leave the laptop connected to the power supply at least 12 hours when the main battery is fully charged. The charging circuit is going to hijack the current to the load automatically RTC battery and no current will be forwarded to your main battery.

    Recommendation do not leave the power adapter is plugged in the main battery is fully charged is really only applicable to older laptops that used no batteries Li - ion and therefore they had to be completely discharged before recharging to avoid any effect 'memory' of the battery.

    With modern Li-ion batteries, it is quite safe to leave the battery when fully charged and still power the laptop from the AC adapter. The charging circuit will pass all the battery charge if it is fully charged.

    Kind regards

  • There is a problem with my payment information and I can't configure any application I want to remove my information from my icloud account payment

    There is a problem with my payment information and I can't configure any application I want to remove my information from my icloud account payment

    There are no withdrawal, must be replaced and released.

  • problem with the Finder - files and folders displaying incorrectly

    After acquiring a new iMac, I noticed a problem with the Finder - files and folders are displayed wrong (see table).

    This is what happens always after the files have been transferred from one folder to another. I was reminded of my days of using Mac OS in the 1980s when automatic setting of files was not so "automatic." I use Mac OS for decades and I don't remember the last time I had to think about GUI problems like that.

    Other problems in the graphical display of files and folders were introduced, such as when you have hundreds of files in a single folder, you end up deleting about 30 to 40 of them say in a particular section, and you end up with gaps of the ChartSpace where files used to be, that is the remaining files automatically rearrange themselves (fill in these gaps) - never. A week later, you open the folder, and the gap of GUI is still there.

    I decided to do a clean install of the operating system but nothing works.

    Is there some setting in Prefs I'm missing?

    Hi there highland99,

    Looks like your folder icons are not accommodating themselves automatically you plan to do. To me, this indicates that you have organize by the None value in the view menu. You can change the way files and folders are prepared automatically by clicking on view > reorganize by and selecting how you would like that fixed.

    Thank you for using communities of Apple Support.

  • I'm having a problem with Windows7 Home Premium and WWII CFS joystick operation. I get a message saying that the controller has been changed. Microsoft offers a patch?

    I have problems with Windows7 Home Premium and WWII CFS joystick operation.  I get a message from gibberish, saying that the controller has been changed.  I tried to replace the file with a version of Windows XP .cfg and also tried to re-write the .cfg file.  Apparently, this version of Windows will not allow a file to be saved with an extension ".cfg", so it does not work either.  Any suggestion would be appreciated.

    Thank you

    Hi Bob,

    You can consult the following links of wire and check if it helps.

    Joystick does not work with the Europe of WWII Combat Flight Simulator series. Help?

    With the help of WW2 Europe Combat Flight Simulator series with Windows 7 Home Premium

    Note: The above links contain third party links. Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • Problem with Quicken 2012 House and the company after installation, runtime error

    I have a problem with my Quicken home and business 2012. I upgraded from 2009 to 2012 and was able to use the new version for about 1 hour, but he hung a little.  Now when I tent to access my Quicken program, I get a runtime error "program: C:\Program Files\Quicken\qw.exe ' abnormal program termination. Quicken is then stopped immediately.  I am currently running Windows XP service pack 3.  Any suggestions?

    Hi RENEE HETTERLY,.

    I suggest that you uninstall and reinstall Quicken program on the computer, check to see if it helps.

    How to change or remove a program in Windows XP

    http://support.Microsoft.com/kb/307895

    If the previous step fails, then you will need to contact Quicken support for assistance.

    http://Quicken.Intuit.com/support/Windows.jsp

  • Having a problem with a redirect virus and the refusal by the system to allow me to download various things, Windows Live Mail in particular.

    I recently tried to remove malware on my Vista based laptop Toshiba.


    I recently tried to remove malware on my Vista based laptop Toshiba. Malwarebytes helped, but I still have problems with a redirect virus and the refusal by the system to allow me to download various things, Windows Live Mail in particular. I tried to download from a copy of the USB stick to a clean computer, but he still refuses to load telling me to check my internet connection, which is fine for general use. Please help I get crazy and do not forget that I am a pure layman - thank you if you can help - Kidso

    I found that the best place to ask this type of question is here: -.

    http://forums.ComputerActive.co.UK/forumdisplay.php?f=20

    There are some very good people out there who helped me (successfully) on 2 occasions.

    Good luck.

    I'll be interested to know how you go.

Maybe you are looking for