[
https://issues.apache.org/jira/browse/PIVOT-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752482#action_12752482
]
Sandro Martini commented on PIVOT-47:
-------------------------------------
To implement this, I think on an enum defining some standard effect levels,
from none to full (default = full).
We could have a class that when set the desired effect level to one of the enum
values, set (one or more) related flags.
Sample flags (on/off): gradients, background images, pivot effects, multimedia,
transparencies, etc ...
Verify if keep all them in a array instead of separate variables.
Then, we have to refactor some parts of drawings in common methods (if
possible), like move all gradients generation etc in generic and dedicated
methods. Inside those methods, check if the related flag is enabled and if it
is, draw the element.
Start by prototyping only on some heavy graphics feature, like gradients or
pivot effects.
Then, try to measure the benefits of this, for example with a Profiler.
Comments ?
> Provide an effects level in TerraTheme
> --------------------------------------
>
> Key: PIVOT-47
> URL: https://issues.apache.org/jira/browse/PIVOT-47
> Project: Pivot
> Issue Type: New Feature
> Components: wtk-effects
> Affects Versions: 1.1
> Reporter: Greg Brown
> Assignee: Greg Brown
> Priority: Minor
>
> This feature would allow callers to programmatically disable effects such as
> animations and window transparency.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.