[jbosstools-issues] [JBoss JIRA] Commented: (JBDS-1414) Improve design of JBDS version displayed on Splash Screen for each supported OS

Vlado Pakan (JIRA) jira-events at lists.jboss.org
Wed Jan 5 10:37:18 EST 2011


    [ https://issues.jboss.org/browse/JBDS-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573500#comment-12573500 ] 

Vlado Pakan commented on JBDS-1414:
-----------------------------------

Please fix version text position calculation in trunk/product/plugins/com.jboss.jbds.product/src/main/com/jboss/jbds/product/splash/SplashHandler.java:
It was:
  e.gc.drawText(versionString, versionLocationPoint.x - point.x,versionLocationPoint.y - point.y, true);
But should be:
    e.gc.drawText(versionString, versionLocationPoint.x - point.x,versionLocationPoint.y, true);

It's because drawText position parameters are specifying top left corner of the text so Y coordinate of the text has to be versionLocationPoint.y independent of the height of drawn text.

Probably Y coordinate versionLocationPoint.y of the version text would need  to be changed to different constant then 209

This is quick fix. It will work until version text is not so long. The best solution is to define max. size which can have displayed version text and than find appropriate font size for it using method e.gc.textExtent(versionString) which returns size of the displayed version string with current font.

> Improve design of JBDS version displayed on Splash Screen for each supported OS
> -------------------------------------------------------------------------------
>
>                 Key: JBDS-1414
>                 URL: https://issues.jboss.org/browse/JBDS-1414
>             Project: Developer Studio (JBoss Developer Studio)
>          Issue Type: Feature Request
>          Components: ui/branding
>    Affects Versions: 4.0.0.Beta2
>         Environment: JBDS jbdevstudio-eap-linux-gtk-4.0.0.v201011250001R-H1-Beta2
>            Reporter: Vlado Pakan
>            Assignee: Vlado Pakan
>             Fix For: 4.0.0.CR1
>
>         Attachments: fedora14-Sans-Bold-7 .png, jbds_H646_win32_sans-bold-8.JPG, newSplashScreenOnFedora14.png, sans_bold_7_osx.png, sans_bold_8_osx.png, splash-ubuntu.png, splash-ubuntu2.png, splashonmac.png, splashscreenfedora14.png, ubuntu_sans_7.jpg
>
>
> Version of JBDS displayed on Splash Screen doesn't look so nice on some OS. It needs some design improvement.
> See attached files.

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

        


More information about the jbosstools-issues mailing list