Sweet Home 3D 3.4

com.eteks.sweethome3d.model
Class TextStyle

java.lang.Object
  extended by com.eteks.sweethome3d.model.TextStyle
All Implemented Interfaces:
java.io.Serializable

public class TextStyle
extends java.lang.Object
implements java.io.Serializable

The different attributes that defines a text style.

Author:
Emmanuel Puybaret
See Also:
Serialized Form

Constructor Summary
TextStyle(float fontSize)
           
TextStyle(float fontSize, boolean bold, boolean italic)
           
 
Method Summary
 TextStyle deriveBoldStyle(boolean bold)
          Returns a derived style of this text style with a given bold style.
 TextStyle deriveItalicStyle(boolean italic)
          Returns a derived style of this text style with a given italic style.
 TextStyle deriveStyle(float fontSize)
          Returns a derived style of this text style with a given font size.
 boolean equals(java.lang.Object object)
          Returns true if this text style is equal to object.
 float getFontSize()
          Returns the font size of this text style.
 int hashCode()
          Returns a hash code for this text style.
 boolean isBold()
          Returns whether this text style is bold or not.
 boolean isItalic()
          Returns whether this text style is italic or not.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextStyle

public TextStyle(float fontSize)

TextStyle

public TextStyle(float fontSize,
                 boolean bold,
                 boolean italic)
Method Detail

getFontSize

public float getFontSize()
Returns the font size of this text style.


isBold

public boolean isBold()
Returns whether this text style is bold or not.


isItalic

public boolean isItalic()
Returns whether this text style is italic or not.


deriveStyle

public TextStyle deriveStyle(float fontSize)
Returns a derived style of this text style with a given font size.


deriveBoldStyle

public TextStyle deriveBoldStyle(boolean bold)
Returns a derived style of this text style with a given bold style.


deriveItalicStyle

public TextStyle deriveItalicStyle(boolean italic)
Returns a derived style of this text style with a given italic style.


equals

public boolean equals(java.lang.Object object)
Returns true if this text style is equal to object.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hash code for this text style.

Overrides:
hashCode in class java.lang.Object

Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License