Strokes of line and polyline behave different during zooming - why?

Hello,
I noticed a different behaviour between the a line an a polyline during zooming. The stroke of the line will not be increased while zooming. But the stroke of the polyline will be increased while zooming. I don't understand this behaviour. Is this a feature or a bug? For a better understanding you can execute the following demo:
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Slider;
import javafx.scene.paint.Color;
import javafx.scene.shape.Line;
import javafx.scene.shape.Polyline;
import javafx.stage.Stage;
public class ScaleDemoLinePolyline extends Application {
     public static void main(String[] args) {
          launch(args);
     @Override
     public void start(Stage stage) throws Exception {
          final Group root = new Group();
          Scene scene = new Scene(root, 800, 600, Color.WHITE);
          stage.setScene(scene);
          //create a group with line and polyline
          final Group elements = new Group();
          Line line = new Line(100, 100, 400, 100);
          Polyline polyline = new Polyline(new double[] { 100, 200, 400, 200 });
          elements.getChildren().add(line);
          elements.getChildren().add(polyline);
          root.getChildren().add(elements);
          //init the slider for zooming
          Slider scale = new Slider();
          scale.setMin(1);
          scale.setMax(50);
          scale.setValue(1);
          scale.setLayoutX(100);
          scale.setLayoutY(500);
          root.getChildren().add(scale);
          scale.valueProperty().addListener(new ChangeListener<Number>() {
               public void changed(ObservableValue<? extends Number> ov,
                         Number old_val, Number new_val) {
                    for (Node node : elements.getChildren()) {
                         node.setScaleX(new_val.doubleValue());
                         node.setScaleY(new_val.doubleValue());
          stage.show();
}Thanks for your help!
Best Regards

Sorry for the thread. I regonized, that this is bug, which is fixed in version 2.1. see http://javafx-jira.kenai.com/browse/RT-13328

Similar Messages

  • My account names for iCloud and iTunes is different, is this why my Iphone4 is not syncing with my iMac?

    My account names for iCloud and iTunes is different, is this why my Iphone4 is not syncing with my iMac?

    No, perfectly normal to have a separate iTunes account for music/app purchases to the one you use for iCloud syncing of contacts, notes, etc.

  • Read line and split into different fields

    I have a flat file with space (multiple spaces between different fields) as a delimiter. The problem is, file is coming from 3rd party and they don't want to change the separator as comma or tab delimited CSV file. I have to load data in ODS (BW 3x).
    Now I am thinking to load line by line and then split data into different objects in Transfer rules.
    The Records looks like:
    *009785499     BC               2988              244        772       200
    *000000033     AB                     0                  0            0           0
    *000004533    EE                     8                  3            2           4
    Now I want data to split like:
    Field1 = 009785499
    Field2 = BC
    Field3 = 2988
    Field4 = 244
    Field5 = 772
    Field6 = 200
    After 1st line load, go to 2nd line and split the data as above and so on. Could you help me with the code pleaseu2026?
    Is it a good design to load data? Any other idea?
    Thanks.

    Hi Mau,
    First capture the data into the internal table (say itab).
    Loop at itab.
      it_final-field1 = itab+1(9).
      it_final-field2 = itab+12(2).
      it_final-field1 = itab+16(4).
      it_final-field1 = itab+21(3).
      it_final-field1 = itab+25(3).
      it_final-field1 = itab+29(3).
      Append it_final.
    Endloop.
    &*********** Reward Point if helpful**********&

  • CommandButton and commandLink behaving differently for file download

    Hello there,
    Hopefully someone can help - I have looked through the existing queries and can't just find what I'm after.
    I have a main record with asociated files - the files are uploaded through my web app and are downloaded from the same page that lists the files in a dataTable. I have a series of commandLinks that display the file names - a user selects the file and it downloads.
    The problem I have is that when a user downloads a file then immediately trys to upload another, they are prompted to download the file that they have already previously downloaded. If however I replace the commandLinks for commandButtons the application behaves correctly.
    I have seen an associated link that mentions similar behaviour (http://blogs.sun.com/tor/entry/creating_downloadable_files), however I do not want to use the command buttons in this manner, and I use an actionListener rather than an action so I may retrieve information from the list of dynamically created files. I am not receiving any errors, just the strange behaviour with commandLinks.
    My code is as follows:
    public void downloadFile(ActionEvent ev) {
    UIData fileList = findParentHtmlDataTable(ev.getComponent());
    AssociatedFile associatedFile = (AssociatedFile) fileList.getRowData();
    String downloadPath = "download path retrieved here...";
    try {
    byte[] fileData = InternalUtil.readFile(downloadPath);
    HttpServletResponse response =
    (HttpServletResponse) getFacesContext().getExternalContext().getResponse();
    response.setHeader("Content-disposition", "attachment; filename=\"" +
    associatedFile.getName() +
    response.setContentLength(fileData.length);
    response.setContentType(associatedFile.getContentType());
    ServletOutputStream out = response.getOutputStream();
    out.write(fileData);
    getFacesContext().getApplication().getStateManager().saveSerializedView(getFacesContext());
    getFacesContext().responseComplete();
    } catch (FileSystemException e) {
    getFacesContext().addMessage("null", new FacesMessage("Error downloading file: " +
    e.getMessage()));
    } catch (IOException e) {
    getFacesContext().addMessage("null", new FacesMessage("Error downloading file: " +
    e.getMessage()));
    Any help would be greatly appreciated!
    Thanks in anticipation, Carl

    Which JSF version are you using? Try upgrading to newer version if needed. http://javaserverfaces.dev.java.net

  • PA30 and ESS behave differently when updating other bank details

    I am trouble shooting an issue with maintaining other bank details in ESS. In PA30 when a other bank details record is updated SAP code just updates the record with new data. it will change the date changed to sy-datum with no changes to the begda and endda,
    In the case of ESS a new enrty is created in created in the PA0009 so now we have 2 active banks. please help

    Hi,
    You need to implement BADI "HRXSS_PER_BEGDA"
    Please find the following SPRO path
    Personnel Management-> Employee Self-Service -> Service-Specific Settings -> Own Data -> Change Default Start Date
    Change Default Start Date
    Use
    In this IMG activity, you can specify a certain date as the default value for the start date of data records in the Own Data area. You can specify the following dates:
    A date that will be displayed as the start date on the overview page
    A date from which the user can maintain his or her personal data
    You can thus specify whether a user can change only present and future dates or if he/she can also change data records whose validity periods are in the past.
    For example, if a customer wants to allow their employees to maintain their family dependents information as of the previous year, the customer can implement this BAdI specifying the date from which employees can maintain their family data.
    Requirements
    The current system date is currently set as the default value. You can overwrite this setting with a date of your choice.
    Activities
    To change the default start date, you can use the Business Add-In (BAdI) HRXSS_PER_BEGDA. You can set the date in the DEFAULT_DATE method.
    Parameters of the method DEFAULT_DATE:
    MOLGA (Importing)
    PERNR (Importing)
    INFTY (Importing)
    SUBTY (Importing, optional)
    BEGDA (Changing)

  • Different billing periods between phone line and b...

    hi, can anyone  tell me why my billing periods with my phone line and broadband are different ie i took out the phone and broadband package on the same day .the end of my usage date for my phone line and calls was yesterday 19th dec but my broadband usage does not finish until the 31 dec .

    broadband usage is calendar monthly - check the usage monitor at BT.com
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Polylines to Lines and Arcs

    I'm getting some metal cut-outs done of a design I did up in Photoshop and converted in Illustrator, but the end product is not that nice because Mr Metalworker has said "the Drawing file is in Polylines (many lines to make up one) because of this the laser takes them as individual contours and cuts it at less than half speed."
    He goes on to say that I need to "convert it into ‘lines and arcs’ and not ‘polylines’ then I think we can get to the point where no cleaning, filing or deburring needs to take place."
    How do I do this?  I'm a bit naive when it comes to this sort of thing and googling has led me to believe I need to do it in a CAD program?

    vector info is like a join the dots.
    image or pixel art is a grid of different coloured square pixels.
    Google will provide much info on this.
    Rasterizing is a pixel function. and will not be what you want to do.
    image trace is getting closer, but it is not accurate and with cause the issues described by your laser guy.
    Illustrator will do strange things with the fill of objects when exporting to DXF. (DXF is probably what you laser guy wants.)
    you will need to make sure everything has no fill and a black outline before exporting.
    I am guessing but if his machine uses Gcode(and I believe most still do), then he want straight lines and basic arcs.
    even getting say an Oval shape in to Gcode is complex.
    He should have Cam software to help with this as long as he gets a clean DXF file.
    here is part of your art redrawn.
    it will give you an idea on what you want it to look like.
    http://ge.tt/64UfQr22/v/0

  • My iphone 4s screen turned freaked out before my eyes, changing all different colours, now it is blue and black along the right side with horizontal lines, and is flickering. I DIDN'T DROP IT.

    I was just sitting on the couch scrolling through facebook, I closed out of that and went to open safari, when it spazzed out, for a few mintutes it looked like LSD vision, it was all different colours and flickering the whole time. I turned it off and on again, and plugged it into my computer and now the right side is nearly completely blue, and bleeds to the left side with horizontal lines, and it is still flickering. I just finished paying the **** thing off. I thought I'd get another year out of it. I have taken exemplary care of it and it hasn't left the case since the day I bought it. I haven't dropped it, there was no warning for the screen to start doing this. So my question is, is there an easy fix (I am about to restore and update it, and I already played around with the screen brightness), and if not, am I going to have to pay for the screen to be replaced, because I don't have that kind money.

    Probably sounded funnier in your head.

  • Why Reports format behaves different in Excel and browser(if desformat=html or pdf)?

    1-Why Reports format behaves different in Excel and browser(if desformat=html or pdf)?
    2-I made three queries Q1,Q2 & Q3 and linked them with proper field links but suppose Q3 returns no records for some Q1&Q2 records & when the report runs for delimited options it reflects only those records as output for which all the queries return records(if Q3 returns no record then the related records from queries Q1,Q2 don't reflect) while the output in desformat=html or pdf is ok..
    can you please resolve my problems
    ( I have installed patch 5a in my report server machine)
    Thanks & Regds.
    Suneel
    null

    What do you mean by "different"? (In our
    experience, Oracle html output has too many
    columns, which are not visible in the
    browser but are obvious in Excel.)
    We build our own html programmatically, so
    that Excel matches the browser more closely.
    -- Allan Plumb

  • Pages: My problem is cursor moves involuntary to a different paragraph or line;  and overshadow words

    My problem is cursor moves involuntary to a different paragraph or line;  and additional overshadow words

    You might want to consider starting a new discussion. Since this one is marked solved, less people are likely to look at it. You can link to this one.

  • My Mac air book screen automatic change and automatic open different programs during my working it's move its self and I lost my work and mouse pointer automatic dance. Help me to solve

    My Mac air book screen automatic change and automatic open different programs during my working it's move its self and I lost my work and mouse pointer automatic dance. Help me to solve
    Any one can help me

    Thank you for your response - I'll give it a go.
    Also, just to update, my iMac cursor seems to glitch a little bit less now. It seems that at least ONE of my problems may have been caused by sitting my iPhone upon my WACOM tablet. The tablet must receive some sort of disruption from having my phone on it - and removing it seems to remedy a fraction of my mouse-jumping problems - if only for a meanwhile.
    The mouse cursor still does jump around on its own occasionally, and the other mouse problems do persist - so this must not be the only culprit for my array of problems.

  • Did anyone order the iPhone on a different line and activate it on your line?

    I'm going to pick my iPhone up tonight and want to know if anyone activated their iPhone which they ordered from a different line?
    How did you do it and can I do it without having to activate it through the line it was ordered from?

    People have bought an iPhone under one line and activated it for another line.
    Here's how to do it, everyone says Verizon's walkthrough is a good one:
    http://support.vzw.com/how_to_use/iphone_alternate_upgrade.html

  • Automatically switches me to different apple store! I am using UAE store , but now it says I am using Singapore! But when I go to apple store and change it to UAE again , it charges 1 dhs and it work for the day. It behaves differently the next time ?

    Automatically switches me to different apple store! I am using UAE store , but now it says I am using Singapore! But when I go to apple store and change it to UAE again , it charges 1 dhs and it work for the day. It behaves differently the next time ?

    Where did you buy the iPad and register your iTunes account? What country is the credit card you used when you set up your iTunes account?  Where are you now?
     Cheers, Tom

  • Mac and iPhone4 contact searches behave differently

    I have ~1000 contacts. One of them has an email address beginning with "c.s". Searching my mac address book for "c.s" narrows it down to that one contact. Searching iPhone contact for "c.s" gives a list of dozens of names that start with "c" and "s". Is it treating the period as a wild card?
    Related search problem: one of my contacts' email addresses starts with "diz". Searching my mac address book for "diz" narrows it down to that one contact. Searching iPhone contacts for "diz" yields nothing.
    Why do the mac and iPhone searches behave differently?

    "Powerpoint in fact is unable to play any video files, it can only play still images and sound files, as only these files can be embedded."
    The mac version CAN play videos inside PPT right on a slide. They are linked, but they still play ON the slide. Basically anything the QT player can play, ppt can play right on the slide. I assumed PPT for windows could do this with formats OTHER than QT.
    You're saying that NO VIDEO FORMAT IN EXISTANCE can play ON a slide in PPT for windows? I find that hard to believe.
    I've seen many folks post here suggesting AVI works just fine and can be played right on the slide in PPT for Windows. Mpeg1 is normally 320x240 and well, honestly it looks like crap on a 1024x768 screen (and most people these days do NOT want to show a 320x240 movie at regular size on a large slide), so I stand by my comments made previously, unless someone can post that they tested an AVI and PTT for windows actually bumps you OUT of ppt and into a player (full screen or not). I just can't imagine that's what it's doing. QT on the other hand, is pretty much broken except in the way you described, playing it in the QT player, which is why no one wants to do that.

  • I have a iPod touch 5th generation and when i turn on the device, its white screen with black lines and different colors

    I can turn off the device naturally. But when i turn it on it shows all white with black lines and different colors. Is my LCD screen broken? If it is, can apple fix it?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                              
    If not covered by warranty
    Apple will exchange your iPod for a refurbished one for $99 for 16 GB 5G and $149 for the other 5Gs. They do not fix yours.
      Apple - iPod Repair price                             

Maybe you are looking for