com.aspose.slides
Class FontEntity

java.lang.Object
  extended by com.aspose.slides.FontEntity

public final class FontEntity
extends java.lang.Object

Represents the font used in a presentation.


Constructor Summary
FontEntity(Presentation pres, FontEntity fontEntity)
          Initializes a new instance of the FontEntity class.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this object to the specified object.
 int getCharSet()
          Returns the charset of a font.
 int getFamily()
          Returns the family of a font.
 int getFontIndex()
          Returns the index of a font.
 java.lang.String getFontName()
          Returns the name of a font.
 int getPitch()
          Returns the pitch of a font.
 int getQuality()
          Returns the quality of a font.
 void setCharSet(int value)
          Sets the charset of a font.
 void setFamily(byte value)
          Sets the family of a font.
 void setFontName(java.lang.String value)
          Sets the name of a font.
 void setPitch(byte value)
          Sets the pitch of a font.
 void setQuality(int value)
          Sets the quality of a font.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontEntity

public FontEntity(Presentation pres,
                  FontEntity fontEntity)
           throws java.io.IOException
Initializes a new instance of the FontEntity class.

Parameters:
pres - presentation where new font will be inserted to.
fontEntity - source font for cloning.
Throws:
java.io.IOException - on FontEntity cloning error.
Method Detail

getFontIndex

public int getFontIndex()
Returns the index of a font.


getFontName

public java.lang.String getFontName()
Returns the name of a font.


setFontName

public void setFontName(java.lang.String value)
Sets the name of a font.

Parameters:
value - new font name.

getCharSet

public int getCharSet()
Returns the charset of a font. See FontCharSet.


setCharSet

public void setCharSet(int value)
Sets the charset of a font.

Parameters:
value - new font charset. See FontCharSet.

getQuality

public int getQuality()
Returns the quality of a font. See FontQuality.


setQuality

public void setQuality(int value)
Sets the quality of a font.

Parameters:
value - new font quality. See FontQuality.

getFamily

public int getFamily()
Returns the family of a font. See FontFamily.


setFamily

public void setFamily(byte value)
Sets the family of a font.

Parameters:
value - new font family. See FontFamily.

getPitch

public int getPitch()
Returns the pitch of a font. See FontPitch.


setPitch

public void setPitch(byte value)
Sets the pitch of a font.

Parameters:
value - new font pitch. See FontPitch.

equals

public boolean equals(java.lang.Object obj)
Compares this object to the specified object. The result is true if and only if the argument is not null and all his font properties the same as font properties of this object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare with.
Returns:
true if the objects are the same; false otherwise.