You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Noel Grandin <no...@gmail.com> on 2010/07/01 16:25:14 UTC

Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

The standard javasound API is pretty decent at playing WAV files.

aappddeevv wrote:
> All of this is in the ITD. Sounds works fine triggered off mouse or button
> events, etc. It turns out that there is no sound support in pivot, which
> should have been obvious to me, because it is already built into base java.
> I'll add trident support to finish out my use case needs but I have not seen
> whether there is a trident pivot port yet.


Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by Sandro Martini <sa...@gmail.com>.
Ok, great, thank you very much :-)

Bye

-- 
View this message in context: http://apache-pivot-developers.417237.n3.nabble.com/jira-Created-PIVOT-435-Override-Settings-of-the-Skin-with-Json-file-tp456414p938820.html
Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.

Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by Greg Brown <gk...@mac.com>.
Yes, I will be adding some examples to demonstrate this feature.

On Jul 2, 2010, at 11:39 AM, Sandro Martini wrote:

> 
> Hi Greg,
> this is great ... have you got a suggestion to start exploring (in next
> months) this feature, to prepare a simple tutorial or demos for the 2.0 ?
> 
> Thanks,
> Sandro
> 
> -- 
> View this message in context: http://apache-pivot-developers.417237.n3.nabble.com/jira-Created-PIVOT-435-Override-Settings-of-the-Skin-with-Json-file-tp456414p938796.html
> Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.


Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by Sandro Martini <sa...@gmail.com>.
Hi Greg,
this is great ... have you got a suggestion to start exploring (in next
months) this feature, to prepare a simple tutorial or demos for the 2.0 ?

Thanks,
Sandro

-- 
View this message in context: http://apache-pivot-developers.417237.n3.nabble.com/jira-Created-PIVOT-435-Override-Settings-of-the-Skin-with-Json-file-tp456414p938796.html
Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.

Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by Greg Brown <gk...@mac.com>.
Yup, that is definitely doable.

On Jul 1, 2010, at 5:29 PM, Sandro Martini wrote:

> Great ... so a new Test application could be interesting to show this
> (with a minimal and default sound).
> 
> 
> At click on any button in the application sound1 will start (but
> configured one time for all buttons), while another event (click or
> double click) on a list or a table row could play another sound ...
> 
> And last, if I'd like to override this behavior only for 1 button
> (removing the effect or changing it), if possible ...
> 
> 
> What do you think ?
> 
> Bye


Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by Sandro Martini <sa...@gmail.com>.
Great ... so a new Test application could be interesting to show this
(with a minimal and default sound).


At click on any button in the application sound1 will start (but
configured one time for all buttons), while another event (click or
double click) on a list or a table row could play another sound ...

And last, if I'd like to override this behavior only for 1 button
(removing the effect or changing it), if possible ...


What do you think ?

Bye

Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by Greg Brown <gk...@mac.com>.
>> An application that needs audio could simply use the most appropriate sound library.
> To attach this type of effects to single components/events existing
> features are enough.
> But if you want to do something with a trigger on all button clicks
> for example ?

The recent modifications to enable subclassing of BXMLSerializer might support such an approach.


Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by Sandro Martini <sa...@gmail.com>.
> I'm not sure I would want to build anything like this into the Terra theme, since the audio files could significantly increase the size of the JAR. Also, a lot of users find gratuitous sound effects annoying.
Yes, I agree with you, this is a feature for not-so-common cases, and
I don't want audio files inside Pivot, as you said.

> The idea to provide a pluggable API is interesting, but might be over-desiging it.
It's true.

> An application that needs audio could simply use the most appropriate sound library.
To attach this type of effects to single components/events existing
features are enough.
But if you want to do something with a trigger on all button clicks
for example ?
A solution to attach a global listener (by default null/none) to
events/classes ?
So in this case I could handle in a transparent way this type of
effects ... but maybe you have other solutions (some type of visual or
non-visual decorator, or a global filter by event/component
class/component name, or other).

Suggestions ?


Bye

Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by Greg Brown <gk...@mac.com>.
I'm not sure I would want to build anything like this into the Terra theme, since the audio files could significantly increase the size of the JAR. Also, a lot of users find gratuitous sound effects annoying.

The idea to provide a pluggable API is interesting, but might be over-desiging it. An application that needs audio could simply use the most appropriate sound library.

G

On Jul 1, 2010, at 4:40 PM, Sandro Martini wrote:

> Hi to all,
> in some cases, to give users more feedback when for example they click
> on something (mainly on buttons, but maybe also on double click on a
> table row, or a selection on a list), what do you think on add support
> for a sound facility ?
> This feature could be enabled (when desired) at component level, and
> maybe also at global level (all click on buttons of this class, or all
> double-click on a table row, etc).
> 
> As for Charts, we could make a pluggable way for this, and provide a
> default implementation only for java supported formats, so if someone
> need this feature could plug its library ... there are many other
> libraries that gives support to MP3, and also OGG formats.
> 
> Comments ?
> 
> 
> 
> On Trident I think that some of its features are already in Pivot, and
> probably those missing are not required here (I'm speaking of its
> animation features).
> But as for other libraries (the MIGLayout discussion today, and also
> others) maybe a Trident-side porting to Pivot version could be useful
> ... if / when Trident developers will have time.
> 
> Comments ?
> 
> Sandro


Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by Greg Brown <gk...@mac.com>.
Re: Pivot 2.0 - you can see from the road map what features are being considered and/or worked on. If there is something missing that you think should be addressed, feel free to log a ticket for it.

On Jul 2, 2010, at 12:38 PM, aappddeevv wrote:

> My thought is that this could be useful (I personally just need some simple
> clicks and some pivot decorators) but this can be added manually with some
> code. I used java partial classes and my approach is fully generalized for
> sound and animation (and more) but its easy to imagine a simpler style
> parameter linked to a sound.
> 
> 
> After pretending to look at batik for an hour last night, it may turn out
> that it does some simple animation all on its own. I made a pivot component
> to handle SVG directly (batik based). It could be useful. It turns out that
> it could also be used to render a lot of pivot screens and provide a
> general-purpose rendering engine for copy-and-paste and display content as
> backgrounds, etc. I attached two videos showing it (it also shows
> miglayout's dock mode) as well as the batik port so you can try it. I'll add
> trident to my pivot partial class and see how that looks.
> 
> Not sure about charts. I think I read that pivot's are pluggable but I'm not
> sure what that means yet.
> 
> 
> All of this is quite dandy but I am curious about what features will
> differentiate the pivot platform especially with 2.0 being staked out (or at
> least JIRA issues being pushed into the 2.0 timeframe). Personally, its
> those features that I would like to see the core team focus on versus these
> incremental ones.
> 
> Sorry for the email size.
> 
> 
> 
> -----Original Message-----
> From: Sandro Martini [mailto:sandro.martini@gmail.com] 
> Sent: Thursday, July 01, 2010 4:41 PM
> To: dev@pivot.apache.org
> Subject: Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with
> Json file
> 
> Hi to all,
> in some cases, to give users more feedback when for example they click
> on something (mainly on buttons, but maybe also on double click on a
> table row, or a selection on a list), what do you think on add support
> for a sound facility ?
> This feature could be enabled (when desired) at component level, and
> maybe also at global level (all click on buttons of this class, or all
> double-click on a table row, etc).
> 
> As for Charts, we could make a pluggable way for this, and provide a
> default implementation only for java supported formats, so if someone
> need this feature could plug its library ... there are many other
> libraries that gives support to MP3, and also OGG formats.
> 
> Comments ?
> 
> 
> 
> On Trident I think that some of its features are already in Pivot, and
> probably those missing are not required here (I'm speaking of its
> animation features).
> But as for other libraries (the MIGLayout discussion today, and also
> others) maybe a Trident-side porting to Pivot version could be useful
> ... if / when Trident developers will have time.
> 
> Comments ?
> 
> Sandro
> <batik-animation.avi.MP4><SVG snapshot with dock.avi.MP4><batik-port.zip>


RE: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by aappddeevv <aa...@verizon.net>.
My thought is that this could be useful (I personally just need some simple
clicks and some pivot decorators) but this can be added manually with some
code. I used java partial classes and my approach is fully generalized for
sound and animation (and more) but its easy to imagine a simpler style
parameter linked to a sound.


After pretending to look at batik for an hour last night, it may turn out
that it does some simple animation all on its own. I made a pivot component
to handle SVG directly (batik based). It could be useful. It turns out that
it could also be used to render a lot of pivot screens and provide a
general-purpose rendering engine for copy-and-paste and display content as
backgrounds, etc. I attached two videos showing it (it also shows
miglayout's dock mode) as well as the batik port so you can try it. I'll add
trident to my pivot partial class and see how that looks.

Not sure about charts. I think I read that pivot's are pluggable but I'm not
sure what that means yet.


All of this is quite dandy but I am curious about what features will
differentiate the pivot platform especially with 2.0 being staked out (or at
least JIRA issues being pushed into the 2.0 timeframe). Personally, its
those features that I would like to see the core team focus on versus these
incremental ones.

Sorry for the email size.



-----Original Message-----
From: Sandro Martini [mailto:sandro.martini@gmail.com] 
Sent: Thursday, July 01, 2010 4:41 PM
To: dev@pivot.apache.org
Subject: Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with
Json file

Hi to all,
in some cases, to give users more feedback when for example they click
on something (mainly on buttons, but maybe also on double click on a
table row, or a selection on a list), what do you think on add support
for a sound facility ?
This feature could be enabled (when desired) at component level, and
maybe also at global level (all click on buttons of this class, or all
double-click on a table row, etc).

As for Charts, we could make a pluggable way for this, and provide a
default implementation only for java supported formats, so if someone
need this feature could plug its library ... there are many other
libraries that gives support to MP3, and also OGG formats.

Comments ?



On Trident I think that some of its features are already in Pivot, and
probably those missing are not required here (I'm speaking of its
animation features).
But as for other libraries (the MIGLayout discussion today, and also
others) maybe a Trident-side porting to Pivot version could be useful
... if / when Trident developers will have time.

Comments ?

Sandro

Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by Sandro Martini <sa...@gmail.com>.
Hi to all,
in some cases, to give users more feedback when for example they click
on something (mainly on buttons, but maybe also on double click on a
table row, or a selection on a list), what do you think on add support
for a sound facility ?
This feature could be enabled (when desired) at component level, and
maybe also at global level (all click on buttons of this class, or all
double-click on a table row, etc).

As for Charts, we could make a pluggable way for this, and provide a
default implementation only for java supported formats, so if someone
need this feature could plug its library ... there are many other
libraries that gives support to MP3, and also OGG formats.

Comments ?



On Trident I think that some of its features are already in Pivot, and
probably those missing are not required here (I'm speaking of its
animation features).
But as for other libraries (the MIGLayout discussion today, and also
others) maybe a Trident-side porting to Pivot version could be useful
... if / when Trident developers will have time.

Comments ?

Sandro

RE: [jira] Closed: (PIVOT-435) Override Settings of the Skin with Json file

Posted by aappddeevv <aa...@verizon.net>.
Yes, it looks that way. Works fine for my simple use cases which are mostly
around playing sounds for mousing and button pressing. There's even an
entire web site dedicated to providing open licensed wav clips to play!


-----Original Message-----
From: Noel Grandin [mailto:noelgrandin@gmail.com] 
Sent: Thursday, July 01, 2010 10:25 AM
To: dev@pivot.apache.org
Cc: aappddeevv
Subject: Re: [jira] Closed: (PIVOT-435) Override Settings of the Skin with
Json file


The standard javasound API is pretty decent at playing WAV files.

aappddeevv wrote:
> All of this is in the ITD. Sounds works fine triggered off mouse or button
> events, etc. It turns out that there is no sound support in pivot, which
> should have been obvious to me, because it is already built into base
java.
> I'll add trident support to finish out my use case needs but I have not
seen
> whether there is a trident pivot port yet.