Font: Difference between revisions

From FreeMind
Jump to navigationJump to search
No edit summary
(revert to last full version)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
>==Properties==
Each node can have its own font, including font family, font size, boldface indicator and italics indicator.


Properties in "freemind.properties"[http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind.properties?view=log]:
The default font properties for nodes is set in the "freemind.properties" file, or "user.properties", including default font family and default font size.
 
The font family and font size can be set in a physical style.
 
==Properties==
 
Properties in "freemind.properties":


  #The default node font. This will only work if the font (TrueTypeFont) is available on the system
  #The default node font. This will only work if the font (TrueTypeFont) is available on the system
Line 8: Line 14:
  defaultfontsize = 12
  defaultfontsize = 12


----
==Implementation==
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
* Controller
----
** Controller.getFontThroughMap
=[http://uwokodywali.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
* NodeAdapter
----
** NodeAdapter.establishOwnFont
=[http://uwokodywali.co.cc CLICK HERE]=
** NodeAdapter.setBold
----
** NodeAdapter.toggleBold
</div>
** NodeAdapter.setItalic
** NodeAdapter.toggleItalic
** NodeAdapter.setFont
** NodeAdapter.setFontSize
** NodeAdapter.getFont
** NodeAdapter.getFontSize
** NodeAdapter.getFontFamilyName
** NodeAdapter.isBold
** NodeAdapter.isItalic
* NodeView
** NodeView.updateFont
 
CVS:
* [http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind/controller/Controller.java?view=log Controller]
* [http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind/modes/NodeAdapter.java?view=log NodeAdapter]
* [http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind/view/mindmapview/NodeView.java?view=log NodeView]
* [http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind.properties?view=log freemind.properties]
 
==Storage at node model==
 
The font assigned to an individual node is stored at NodeModel, or specifically, at NodeAdapter[http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind/modes/NodeAdapter.java?view=log]. It is stored at the attribute "font" typed as the Java class Font. Thus, all the font properties including family, size, boldface and italics are stored together in one attribute.
 
==Storage in XML==
 
*  <nowiki><node ...><font .../></node></nowiki>
* Example: <nowiki><font ITALIC="true" NAME="Garamond" BOLD="true" SIZE="13"/></nowiki>
 
[[Category:Development]]

Latest revision as of 13:01, 22 November 2010

Each node can have its own font, including font family, font size, boldface indicator and italics indicator.

The default font properties for nodes is set in the "freemind.properties" file, or "user.properties", including default font family and default font size.

The font family and font size can be set in a physical style.

Properties

Properties in "freemind.properties":

#The default node font. This will only work if the font (TrueTypeFont) is available on the system
defaultfont = SansSerif
defaultfontstyle = 0
defaultfontsize = 12

Implementation

  • Controller
    • Controller.getFontThroughMap
  • NodeAdapter
    • NodeAdapter.establishOwnFont
    • NodeAdapter.setBold
    • NodeAdapter.toggleBold
    • NodeAdapter.setItalic
    • NodeAdapter.toggleItalic
    • NodeAdapter.setFont
    • NodeAdapter.setFontSize
    • NodeAdapter.getFont
    • NodeAdapter.getFontSize
    • NodeAdapter.getFontFamilyName
    • NodeAdapter.isBold
    • NodeAdapter.isItalic
  • NodeView
    • NodeView.updateFont

CVS:

Storage at node model

The font assigned to an individual node is stored at NodeModel, or specifically, at NodeAdapter[1]. It is stored at the attribute "font" typed as the Java class Font. Thus, all the font properties including family, size, boldface and italics are stored together in one attribute.

Storage in XML

  • <node ...><font .../></node>
  • Example: <font ITALIC="true" NAME="Garamond" BOLD="true" SIZE="13"/>