Class Index | File Index

Classes


Class TextStyle


Defined in: SweetHome3D.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
TextStyle(fontName, fontSize, bold, italic)
Creates a text style from its font's name, its size and style.
Method Summary
Method Attributes Method Name and Description
 
Returns a derived style of this text style with a given bold style.
 
Returns a derived style of this text style with a given italic style.
 
deriveStyle(fontName)
Returns a derived style of this text style with a given font name.
 
equals(object)
Returns true if this text style is equal to object.
 
Returns the font name of this text style.
 
Returns the font size of this text style.
 
Returns whether this text style is bold or not.
 
Returns whether this text style is italic or not.
Class Detail
TextStyle(fontName, fontSize, bold, italic)
Creates a text style from its font's name, its size and style.
Author: Emmanuel Puybaret.
Parameters:
{string} fontName
{number} fontSize
{boolean} bold
{boolean} italic
Method Detail
{TextStyle} deriveBoldStyle(bold)
Returns a derived style of this text style with a given bold style.
Parameters:
{boolean} bold
Returns:
{TextStyle}

{TextStyle} deriveItalicStyle(italic)
Returns a derived style of this text style with a given italic style.
Parameters:
{boolean} italic
Returns:
{TextStyle}

{TextStyle} deriveStyle(fontName)
Returns a derived style of this text style with a given font name.
Parameters:
{string} fontName
Returns:
{TextStyle}

{boolean} equals(object)
Returns true if this text style is equal to object.
Parameters:
{Object} object
Returns:
{boolean}

{string} getFontName()
Returns the font name of this text style.
Returns:
{string}

{number} getFontSize()
Returns the font size of this text style.
Returns:
{number}

{boolean} isBold()
Returns whether this text style is bold or not.
Returns:
{boolean}

{boolean} isItalic()
Returns whether this text style is italic or not.
Returns:
{boolean}

© Copyrights 2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Oct 25 2017 16:36:09 GMT+0200 (CEST)