You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Sandro Martini <sa...@gmail.com> on 2010/08/11 17:33:54 UTC
Layered Interface
Hi to all,
for a prototype I have in mind, I wonder if all features I need are already
available in Pivot 2 (trunk):
I imagine the GUI organized in Layers (like in the StackLayout) but where
here I would be able to dynamically change attributes of layers, like in a
CAD application, or better in an image editing program.
For example I could put some elements in the first layer, like a top menu
bar by default visible, but when a timeout occurs, that layer could vanish
(with some effect like slide or fade or other).
And more complex, I could have other elements in other layers (some on, some
off), but for example I want to position elements of layer 2 exactly at the
bottom of layer 1 end ... sorry, I hope to be clear.
So I'd need some api (or styling infos) to get position, extents, flags,
effects, etc on any layer ...
And last, I could mix layers using other effects like in image editing:
blend, colorize, filters, etc ... also block input to a layer (??).
This could help us to create much more visually complex Applications.
I agree that all this is complex to do and probably more graphic-oriented
than usual Pivot applications, but one step a time could help going in this
direction ...
What do you think ?
A custom layout could be enough or a container (and related classes) should
be created ?
And, more important, is interesting also to others than me ?
Bye,
Sandro
--
View this message in context: http://apache-pivot-developers.417237.n3.nabble.com/Layered-Interface-tp1089258p1089258.html
Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.
Re: Layered Interface
Posted by Sandro Martini <sa...@gmail.com>.
Ok, as always thank you very much for the info.
Bye,
Sandro
RE: Layered Interface
Posted by aappddeevv <aa...@verizon.net>.
Is the z-order just based on the order of the list? I added an explicit
z-order attached property and reordered the list on layout, that was the
only way I could figure out how to explicitly specify it so there was no
doubt. Is there another mechanism or is it all about the children list
order?
-----Original Message-----
From: Greg Brown [mailto:gkbrown@mac.com]
Sent: Wednesday, August 11, 2010 6:15 PM
To: dev@pivot.apache.org
Subject: Re: Layered Interface
Yes, the sliding menu is possible (and pretty easy to do). We do something
similar with Sheets.
Also keep in mind that all containers are "layered", so to speak. Each
container has an individual z-order that dictates the order in which
sub-components are painted. So you don't necessarily need a dedicated
container type to achieve what you describe.
On Aug 11, 2010, at 5:33 PM, Sandro Martini wrote:
> Hi Greg,
> thanks for the info.
>
> But do you think I'll be able also to position components in one layer
> (or position one layer) in respect to another ?
>
> In any case, I'll try to make some experiment ... probably this could
> be an interesting Demo of Composing layers.
> A common and simple example (found on many Flash sites) of this is a
> Top Menu over other elements (backgrounds, etc) that when not focused
> with the mouse, goes out of the screen, and return visible (with a
> sliding effect) when the mouse goes near the top of the screen ...
> what do you think ?
>
> Bye,
> Sandro
Re: Layered Interface
Posted by Greg Brown <gk...@mac.com>.
Yes, the sliding menu is possible (and pretty easy to do). We do something similar with Sheets.
Also keep in mind that all containers are "layered", so to speak. Each container has an individual z-order that dictates the order in which sub-components are painted. So you don't necessarily need a dedicated container type to achieve what you describe.
On Aug 11, 2010, at 5:33 PM, Sandro Martini wrote:
> Hi Greg,
> thanks for the info.
>
> But do you think I'll be able also to position components in one layer
> (or position one layer) in respect to another ?
>
> In any case, I'll try to make some experiment ... probably this could
> be an interesting Demo of Composing layers.
> A common and simple example (found on many Flash sites) of this is a
> Top Menu over other elements (backgrounds, etc) that when not focused
> with the mouse, goes out of the screen, and return visible (with a
> sliding effect) when the mouse goes near the top of the screen ...
> what do you think ?
>
> Bye,
> Sandro
Re: Layered Interface
Posted by Sandro Martini <sa...@gmail.com>.
Hi Greg,
thanks for the info.
But do you think I'll be able also to position components in one layer
(or position one layer) in respect to another ?
In any case, I'll try to make some experiment ... probably this could
be an interesting Demo of Composing layers.
A common and simple example (found on many Flash sites) of this is a
Top Menu over other elements (backgrounds, etc) that when not focused
with the mouse, goes out of the screen, and return visible (with a
sliding effect) when the mouse goes near the top of the screen ...
what do you think ?
Bye,
Sandro
Re: Layered Interface
Posted by Greg Brown <gk...@mac.com>.
You can use a StackPane for this. Within each layer, you can use an appropriate container to get the layout you need at that layer. If you need a custom layout, you can write your own container class, or you can use Panel (which performs no layout, leaving it up to the caller).
You can turn the visibility of components in each layer on or off using the component's "visible" property. You can attach visual effects to any component in any layer using decorators.
G
On Aug 11, 2010, at 11:33 AM, Sandro Martini wrote:
>
> Hi to all,
> for a prototype I have in mind, I wonder if all features I need are already
> available in Pivot 2 (trunk):
>
> I imagine the GUI organized in Layers (like in the StackLayout) but where
> here I would be able to dynamically change attributes of layers, like in a
> CAD application, or better in an image editing program.
>
> For example I could put some elements in the first layer, like a top menu
> bar by default visible, but when a timeout occurs, that layer could vanish
> (with some effect like slide or fade or other).
>
> And more complex, I could have other elements in other layers (some on, some
> off), but for example I want to position elements of layer 2 exactly at the
> bottom of layer 1 end ... sorry, I hope to be clear.
> So I'd need some api (or styling infos) to get position, extents, flags,
> effects, etc on any layer ...
>
> And last, I could mix layers using other effects like in image editing:
> blend, colorize, filters, etc ... also block input to a layer (??).
>
>
> This could help us to create much more visually complex Applications.
> I agree that all this is complex to do and probably more graphic-oriented
> than usual Pivot applications, but one step a time could help going in this
> direction ...
>
> What do you think ?
> A custom layout could be enough or a container (and related classes) should
> be created ?
>
> And, more important, is interesting also to others than me ?
>
> Bye,
> Sandro
>
> --
> View this message in context: http://apache-pivot-developers.417237.n3.nabble.com/Layered-Interface-tp1089258p1089258.html
> Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.