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

Sandro Martini commented on PIVOT-47:
-------------------------------------

The default behavior will be full effects ON, like currently.

This proposal is to disable groups of effects by switching them OFF,
depending on what is (not) wanted.
We have to see if providing an enum with some common levels (like ALL,
MEDIUM, LOW, NONE) but in this case we have to see in what category an
effect is ... but this is a detail.

The main use case for this is to exclude unwanted graphics effects, to
speedup execution of Pivot Applications / Applets, think for example
at Corporate (Intranet) Applications where usually the Graphics aspect
if less relevant, and usually there are many PCs (old, or at least some year 
old) with not-so-good Graphics Boards ... like many Intel boards, or with poor 
drivers.
GNome desktop has a feature like this, in the Graphic Configuration, but this 
is based on the Graphics Board hardware functions, but I don't think this is 
possible in Java SE (OpenGL extensions for Java usually have this)

So, if i could let developers customize (by code and/or in wtkx files) what 
effects exclude (and maybe disable and re-enable later) to speedup all.

With "effects" here I'm thinking on:
- media
- transitions
- transparencies
- gradients
- backgrounds
- watermarks
- drawings
- maybe others ... like background colors, custom styles, etc ...

So a refactoring of some parts of graphics generation code should be done (and 
this could be useful, in any case) in common methods, and see if make if 
statements there to see if not process the code to draw.

As a first example, I'd like to try with the gradients part ... probably on 
modern PC with good Graphics Boards the speedup is minimal, but i think this is 
another useful feature to have.

Or for example think on transitions: if i don't want them, i could disable all 
them (skipping the related code in new common methods, depending on the related 
flag), so users doesn't have to wait for transitions to complete (also if is 
can set their duration as little as possible, ok).

This is only a reminder for future work.


> Provide an effects level in Default Theme
> -----------------------------------------
>
>                 Key: PIVOT-47
>                 URL: https://issues.apache.org/jira/browse/PIVOT-47
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>    Affects Versions: 1.2
>            Reporter: Greg Brown
>            Priority: Minor
>             Fix For: 2.0
>
>
> 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.

Reply via email to