1 Reply Latest reply: Mar 25, 2013 1:19 PM by KonradZuse RSS

    How to develop Linear Indicator using Slider

    Rahul1981
      Hi All,

      I am developing a Video Editing software and wanted to develop a Linear Colored Indicator using Slider for Cut-In and Cut-Out.
      Can any one help.

      https://www.dropbox.com/s/pxjvpmtley79y8u/SliderLinearIndicator.bmp

      The Above URL will clear the requirement.

      Please help, I am new to JavaFx and unable to understand how this can be achieved.


      Thanks,

      Edited by: Rahul1981 on Mar 25, 2013 5:54 AM
        • 1. Re: How to develop Linear Indicator using Slider
          KonradZuse
          So all you want is to have a progress indicator that has different colors based on it's "time in the movie?"

          IMO the way to achieve the color would be to first program your Slider by checking out this tutorial http://docs.oracle.com/javafx/2/ui_controls/slider.htm

          Now I believe based on your tick marks, and blocks, you can create a .css file to change the colors of the slider at different intervals. Imo it would be 2 or so different colors(it seems like you have a green section, and a red section) that would be created in the css file, and at the certain tick mark you would have an if statement like
          if(tickMark <10)
          { 
          
          Color = red
          
          }
          
          else if(tickMark > 10) // or just else
          {
          green
          
          }
          You could have have the colors fade in better and such, but that's how I would approach this.