You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Bill van Melle (JIRA)" <ji...@apache.org> on 2011/03/02 03:12:36 UTC

[jira] Created: (PIVOT-710) Implement a ScalePane

Implement a ScalePane
---------------------

                 Key: PIVOT-710
                 URL: https://issues.apache.org/jira/browse/PIVOT-710
             Project: Pivot
          Issue Type: New Feature
          Components: wtk
            Reporter: Bill van Melle


I would like a container, call it ScalePane, that scales its child to the actual size of the container.  Unlike containers that merely provide more or less space to their children according to how big the container is, a ScalePane would also scale fonts and any other fixed-size attributes (padding, stroke widths, fixed row/column widths, etc).  This would allow you to design components at a fixed size and have a chance of them looking good when the user resizes the window.

(In the WPF framework, every UI element can have a "LayoutTransform" property that can rotate, translate, skew or scale it.  Some of Pivot's Decorators are like that (ScaleDecorator is a bit like WPF's ScaleTransform), but they don't translate mouse hits properly.)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-710) Implement a ScalePane

Posted by "Bill van Melle (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill van Melle updated PIVOT-710:
---------------------------------

    Attachment: ScalePane.zip

For the sake of illustration, I'm attaching my attempt at implementing ScalePane, wrapped in an Eclipse project I used to test it.  There is also a diff file showing what I had to change in the Component and Container classes in order to get correct tooltip placement.

Many more mods to the Pivot sources would be required for a proper implementation, largely because many Pivot components produce interactivity by creating components directly on the enclosing window, bypassing ScalePane (and any other containers).  ListButton is an example of one such component.  In the test rig, you can also see that Slider doesn't work, and that TextArea only partially works.

> Implement a ScalePane
> ---------------------
>
>                 Key: PIVOT-710
>                 URL: https://issues.apache.org/jira/browse/PIVOT-710
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: ScalePane.zip
>
>
> I would like a container, call it ScalePane, that scales its child to the actual size of the container.  Unlike containers that merely provide more or less space to their children according to how big the container is, a ScalePane would also scale fonts and any other fixed-size attributes (padding, stroke widths, fixed row/column widths, etc).  This would allow you to design components at a fixed size and have a chance of them looking good when the user resizes the window.
> (In the WPF framework, every UI element can have a "LayoutTransform" property that can rotate, translate, skew or scale it.  Some of Pivot's Decorators are like that (ScaleDecorator is a bit like WPF's ScaleTransform), but they don't translate mouse hits properly.)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (PIVOT-710) Implement a ScalePane

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-710:
---------------------------------

    Fix Version/s: 2.1
         Priority: Minor  (was: Major)

> Implement a ScalePane
> ---------------------
>
>                 Key: PIVOT-710
>                 URL: https://issues.apache.org/jira/browse/PIVOT-710
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Priority: Minor
>             Fix For: 2.1
>
>
> I would like a container, call it ScalePane, that scales its child to the actual size of the container.  Unlike containers that merely provide more or less space to their children according to how big the container is, a ScalePane would also scale fonts and any other fixed-size attributes (padding, stroke widths, fixed row/column widths, etc).  This would allow you to design components at a fixed size and have a chance of them looking good when the user resizes the window.
> (In the WPF framework, every UI element can have a "LayoutTransform" property that can rotate, translate, skew or scale it.  Some of Pivot's Decorators are like that (ScaleDecorator is a bit like WPF's ScaleTransform), but they don't translate mouse hits properly.)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira