Chris' Cairo Blog

March 1, 2010

Transform Groups

Filed under: What I am working on — thorgch @ 11:52 am

If you have followed my last couple of posts, you have seen my TransformWrapper in action. In this post, I am going to show you one more function. Apart from providing rotation, translation and scale functionality, the TransfromWrapper also inherits from CompositePart,which means I can wrap more than one of my cairo components with it.    

Transform Grouping

Transform Grouping

 

I will spare you more reading about why this helps and jump straight to the videos…    

I still have more work to make the process of grouping a bit more bulletproof as well as more flexible. In particular, standard VisualWorks components can’t be part of a transform group at any level, so checks need to be put in place to make sure the component adheres to my cairo compatible widget protocol. I also want to make it easier to move components within the group hierarchy simply by dragging and dropping. In the video, I also mentioned that more layout / modeling tools need to be developed. As it stands now, I still need to use Photoshop or Illustrator to get pixel coordinate values that I then use for either inter-container offsets, or XY values for arbitrary anchor points. All in time…

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: