You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Chris Bartlett (JIRA)" <ji...@apache.org> on 2010/09/29 19:53:33 UTC

[jira] Commented: (PIVOT-534) Expose transtion durations & rates in Terra theme skins as styles to allow them to be configured

    [ https://issues.apache.org/jira/browse/PIVOT-534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916215#action_12916215 ] 

Chris Bartlett commented on PIVOT-534:
--------------------------------------

Going back to the discussion on transition rates & durations in the KitchenSink demo...

For the KitchenSink demo it might be worth tweaking the transition settings to take into account the content contained in the different RollUps.  It is probably one of the most viewed demos and as such should be trying to show the best of Pivot.  I'm not suggesting setting the frame rates artificially high, merely to adjust the settings in order to demonstrate how slick various transitions *can* look.

The RollUps whose transitions look the least smooth to my eyes are 'Splitters' and 'Menus' as they are tall and also have dark content compared to the background.  The 'Buttons' and 'Trees' RollUps are also quite tall but look a little less jerky to me possibly due to their lighter content. 

I have been struggling to produce some good screen captures to demonstrate this, but just looking at the figures involved might suffice for now.

A RollUp has a default transition duration of 250 milliseconds and transition rate of 30 frames per second. 
(30 fps * 0.25 seconds) = 7.5 'paints' over the duration of the transition (assuming a perfect world with sufficient processing power and perfect, high resolution clocks)

If a RollUp contains relatively tall components (for this example I will use 750 pixels to keep the maths simple), then on average it would have to expand the RollUp by 100 pixels per paint.
However, if the contained components were only 375 pixels high, an average paint would cover an expansion of 50 pixels.
RollUps use Quadratic easing rather than simple Linear, so the expanded height changes between paints varies, but that is not especially relevant here, rather the total 'distance' covered by the expansion.


> Expose transtion durations & rates in Terra theme skins as styles to allow them to be configured
> ------------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-534
>                 URL: https://issues.apache.org/jira/browse/PIVOT-534
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk, wtk-terra
>    Affects Versions: 1.5
>         Environment: n/a
>            Reporter: Chris Bartlett
>            Assignee: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.0
>
>         Attachments: PIVOT-534_ExposeTransitionsAsStyles.patch
>
>
> org.apache.pivot.wtk.skin.CardPaneSkin
>     add         selectionChangeRate
> org.apache.pivot.wtk.skin.terra.TerraAccordionSkin
>     add         selectionChangeDuration
>     add         selectionChangeRate
> org.apache.pivot.wtk.skin.terra.TerraExpanderSkin
>     add         expandDuration
>     add         expandRate
> org.apache.pivot.wtk.skin.terra.TerraRollupSkin
>     add         expandDuration
>     add         expandRate
> org.apache.pivot.wtk.skin.terra.TerraSheetSkin
>     add         transitionDuration
>     add         transitionRate
> org.apache.pivot.wtk.skin.terra.TerraTabPaneSkin
>     add         selectionChangeDuration
>     add         selectionChangeRate

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.