New JavaFX Control PlusMinusAdjuster

Today I had once again the pleasure to write a small and highly specialized control for JavaFX, which might be useful for others as well. I am calling it PlusMinusAdjuster and all it does is firing value events with values ranging from -1 to +1. The difference to a normal slider is that it continues to fire events even when the value has not changed. This kind of behavior is useful for implementing scrolling through large data sets. A normal scrollbar often causes big jumps even when the user only moves it a few pixels. For me this was the case for my Gantt chart component when the timeline horizon was very large and the currently visible time span was small.

So this is what I came up with:

Image

I have asked the ControlsFX guys if they are interested in including this control. The initial response was positive. I will keep you updated.

About these ads
Tagged , ,

3 thoughts on “New JavaFX Control PlusMinusAdjuster

  1. dlemmermann says:

    The control has been renamed to PlusMinusSlider and should be included in the next ControlsFX release.

  2. […] Lemmermann has posted about a new control he has developed for JavaFX 8.0 and has contributed to the ControlsFX project. It is called PlusMinusSlider, and for anyone […]

  3. […] Lemmermann has posted about a new control he has developed for JavaFX 8.0 and has contributed to the ControlsFX project. It is called PlusMinusSlider, and for anyone […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Pixel Perfect

Where pixels have a home

Tomsondev Blog

Tom's opensource development

Carl's FX Blog

Just Ordinary Users of the API

Jasper Potts's Blog on Java and Life

Where pixels have a home

Exploding Pixels

Exposing the pixels behind beautiful user interfaces

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: