Canvas Content Shift
dlemmermann at gmail.com
Mon Apr 10 09:21:55 UTC 2017
+1 on Java 8/9 update. But I have a feeling that will be hard to accomplish.
> Am 10.04.2017 um 11:20 schrieb Michael Paus <mp at jugs.org>:
> I also have that on my wishlist. Actually I would like to see that in some update release for Java 8/9 too
> because Java 10 is still very far away at the horizon.
> Am 10.04.17 um 10:32 schrieb Dirk Lemmermann:
>> HI there,
>> I was wondering if there is any chance that Java 10 could implement some sort of „content shifting“ for the Canvas API?
>> I would love to have this feature for supporting faster horizontal scrolling in my Gantt Chart framework FlexGanttFX. Currently when the user scrolls then the entire content of each canvas in each row of the chart will be redrawn. This could be optimized by only drawing the time range that has been moved into the „viewport“ and by shifting or copying the remaining time range graphics. E.g. the user currently looks at one week and scrolls one day to the right then the data / graphics of 6 days would stay the same and could just be reused. Only one day worth of data would need to be redrawn.
>> I think in Swing this is comparable with the BLIT_SCROLL_MODE of JViewport.
More information about the openjfx-dev