Results 1 to 3 of 3
  1. #1
    diolu is offline Member
    Join Date
    Jan 2017
    Rep Power

    Default Polyline from a list of DoubleProperty

    I see in the API that Polyline (as well as Polygon) can only construct a Polygon from a list of Double. I would like to construct a Polyline from a list of DoubleProperty. The idea I have in mind is to have a polygon that resizes itself when I resize the pane (by resizing the windows for example). This will work if I use only line segments. Just use a DoubleBinding "scalefactor" (bound to the size of the pane) and add the initial and end points of the line as a multiple of scalefactor. Naively I thought that this should work for a polyline in the same way but it doesn't seem so. So what's the best way to achieve this goal? Is there something obvious I have overlooked? (I am completely new to javafx and to GUI programming in general). Would it be possible to define such thing ourself?
    Last edited by diolu; 02-17-2017 at 10:57 AM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    Default Re: Polyline from a list of DoubleProperty

    Moved to JavaFX section
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    MA, USA
    Rep Power

    Default Re: Polyline from a list of DoubleProperty

    try to add the lines to a group and scale the group.

Similar Threads

  1. Working with Points and Polyline - Need help!
    By Thornblom in forum New To Java
    Replies: 11
    Last Post: 12-11-2013, 06:56 PM
  2. Replies: 4
    Last Post: 05-21-2013, 09:21 AM
  3. Replies: 1
    Last Post: 03-25-2012, 09:25 PM
  4. Drawing a polyline within a JTabbedPane
    By prseifer in forum New To Java
    Replies: 1
    Last Post: 03-05-2009, 12:21 AM
  5. Adding a Polyline drawing to a tab
    By CirKuT in forum New To Java
    Replies: 1
    Last Post: 11-19-2008, 08:32 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts