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
protected FontEntity(FontEntityAtom font)
           
  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 for the font.
 int getFamily()
          Returns the font family.
 int getFontIndex()
          Returns the index of a font.
 java.lang.String getFontName()
          Returns the font name.
 int getPitch()
          Returns the font pitch.
 int getQuality()
          Returns the font quality.
 void setCharSet(int value)
          Sets the font charset.
 void setFamily(byte value)
          Sets the font family.
 void setFontName(java.lang.String value)
          Sets the font name.
 void setPitch(byte value)
          Sets the font pitch.
 void setQuality(int value)
          Sets the font quality.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontEntity

protected FontEntity(FontEntityAtom font)

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.

Returns:
The index of a font.

getFontName

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

Returns:
The font name.

setFontName

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

Parameters:
value - new font name.

getCharSet

public int getCharSet()
Returns the charset for the font.

Returns:
The charset. See FontCharSet.

setCharSet

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

Parameters:
value - new charset. See FontCharSet.

getQuality

public int getQuality()
Returns the font quality.

Returns:
The font quality. See FontQuality.

setQuality

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

Parameters:
value - new font quality. See FontQuality.

getFamily

public int getFamily()
Returns the font family.

Returns:
The font family. See FontFamily.

setFamily

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

Parameters:
value - new font family. See FontFamily.

getPitch

public int getPitch()
Returns the font pitch.

Returns:
The font pitch. See FontPitch.

setPitch

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

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.