Changes between Version 2 and Version 3 of TEXT_FONTS_INTERFACE_R0


Ignore:
Timestamp:
04/01/09 16:44:30 (16 years ago)
Author:
nenko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TEXT_FONTS_INTERFACE_R0

    v2 v3  
    3333 
    3434= Design = 
    35 ^(Describe your design here.)^ 
     35New module will be created - org.sophie2.main.func.text - that will contain all frames, halos, huds etc. related to HotText. In this module a new halo menu will be created and it will contain: 
     36 * combo box for font name 
     37 * combo box for font size 
     38 * toggle buttons for styling - italic, bold, underline, strikethrough 
    3639 
     40When the user select font family name, size and style, they will be added to the HotText using the Styler interface (HotText.Styler#addStyle) by using an empty HotStyleDef and derive from it the HotStyleDef that is needed (HotStyleDef.EMPTY_STYLE#derive). Then the appropriate visualization is a job of HotTextLayout. 
     41 
     42Every single text unit (a glyph) is drawn by the Atom class. So the conversion of HotStyleDef to a java.awt.Font object should be made there. 
     43 
     44[[Image(source:trunk/sophie2-platform/doc/uml-design-diagrams/hotText/HotText - model.png)]] 
     45 
     46[[Image(source:trunk/sophie2-platform/doc/uml-design-diagrams/hotText/HotStyleDef-model.png)]] 
     47 
     48[[Image(source:trunk/sophie2-platform/doc/uml-design-diagrams/hotText/HotTextFontGUI.png)]] 
    3749= Implementation = 
    3850^(Describe and link the implementation results here (from the wiki or the repository).)^