Canvas Content Shift
kevin.rushforth at oracle.com
Mon Apr 10 14:54:15 UTC 2017
Please file an Enhancement request and we can consider this for JDK 10.
Dirk Lemmermann wrote:
> +1 on Java 8/9 update. But I have a feeling that will be hard to accomplish.
Indeed it will be. We have a general policy against further enhancements
for JDK 8uNN. I suspect the same is likely for JDK 9.x, but I can't say
that for sure until there is a JDK 9 updates project.
>> 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