com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class FontData

  • java.lang.Object
    • com.aspose.slides.FontData
  • All Implemented Interfaces:
    IFontData


    public final class FontData
    extends java.lang.Object
    implements IFontData

    Represents a font definition. Immutable.

    • Constructor Summary

      Constructors 
      Constructor and Description
      FontData(java.lang.String fontName)
      Creates a new FontData object with the specified font name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj)
      Determines whether two FontData instances are equal.
      java.lang.String getFontName()
      Returns the font name.
      java.lang.String getFontName(IThemeEffectiveData theme)
      Returns the font name, replacing theme referrence with an actual font used.
      int hashCode()
      Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
      java.lang.String toString()
      Returns string representation.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FontData

        public FontData(java.lang.String fontName)

        Creates a new FontData object with the specified font name.

        Parameters:
        fontName - Font name.
    • Method Detail

      • getFontName

        public final java.lang.String getFontName()

        Returns the font name. Read/write String.

        Specified by:
        getFontName in interface IFontData
      • getFontName

        public final java.lang.String getFontName(IThemeEffectiveData theme)

        Returns the font name, replacing theme referrence with an actual font used.

        Specified by:
        getFontName in interface IFontData
        Parameters:
        theme - Theme from which themed font name should be taken. Its up to caller to provide a correct value. See IThemeable.createThemeEffective()
        Returns:
        Font name.
      • equals

        public boolean equals(java.lang.Object obj)

        Determines whether two FontData instances are equal.

        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The FontData to compare with the current FontData.
        Returns:
        true if the specified FontData is equal to the current FontData; otherwise, false.
      • hashCode

        public int hashCode()

        Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        Hash code of the FontData.
      • toString

        public java.lang.String toString()

        Returns string representation.

        Overrides:
        toString in class java.lang.Object
        Returns:
        String representatoin.