FolderFontSource

Inheritance: java.lang.Object

All Implemented Interfaces: com.groupdocs.viewer.fonts.FontSource, com.aspose.ms.System.IEquatable

public final class FolderFontSource implements FontSource, System.IEquatable<FolderFontSource>

Represents the folder that contains TrueType fonts.

Constructors

Constructor Description
FolderFontSource(String folderPath, SearchOption searchOption) Initializes new instance of FolderFontSource class.

Methods

Method Description
isEqualTo(FolderFontSource left, FolderFontSource right) Determines whether two FolderFontSource objects are the same.
isNotEqualTo(FolderFontSource left, FolderFontSource right) Determines whether two FolderFontSource objects are not the same.
getFolderPath() Path to the folder that contains TrueType fonts.
getSearchOption() Specifies whether to search the current folder, or the current folder and all subfolders.
isRecursive() Checks if fonts would be searched recursively
equals(FolderFontSource other) Determines whether the current FolderFontSource is the same as specified FolderFontSource object.
equals(Object o) Determines whether the current FolderFontSource is the same as specified object.
hashCode() Returns the hash code for the current FolderFontSource object.
toString() Returns a string that represents the current object.

FolderFontSource(String folderPath, SearchOption searchOption)

public FolderFontSource(String folderPath, SearchOption searchOption)

Initializes new instance of FolderFontSource class.

Parameters:

Parameter Type Description
folderPath java.lang.String Path to the folder that contains TrueType fonts.
searchOption SearchOption Specifies whether to search the current folder, or the current folder and all sub-folders.

isEqualTo(FolderFontSource left, FolderFontSource right)

public static boolean isEqualTo(FolderFontSource left, FolderFontSource right)

Determines whether two FolderFontSource objects are the same.

Parameters:

Parameter Type Description
left FolderFontSource Left FolderFontSource object.
right FolderFontSource Right FolderFontSource object.

Returns: boolean - true if both FolderFontSource objects are the same; otherwise, false

isNotEqualTo(FolderFontSource left, FolderFontSource right)

public static boolean isNotEqualTo(FolderFontSource left, FolderFontSource right)

Determines whether two FolderFontSource objects are not the same.

Parameters:

Parameter Type Description
left FolderFontSource Left FolderFontSource object.
right FolderFontSource Right FolderFontSource object.

Returns: boolean - {@code true if both {@link FolderFontSource} objects are not the same; otherwise, {@code false}

getFolderPath()

public final String getFolderPath()

Path to the folder that contains TrueType fonts.

Returns: java.lang.String

getSearchOption()

public final SearchOption getSearchOption()

Specifies whether to search the current folder, or the current folder and all subfolders.

Returns: SearchOption - whether to search the current folder, or the current folder and all subfolders.

isRecursive()

public boolean isRecursive()

Checks if fonts would be searched recursively

Returns: boolean - true if recursively, otherwise false

equals(FolderFontSource other)

public final boolean equals(FolderFontSource other)

Determines whether the current FolderFontSource is the same as specified FolderFontSource object.

Parameters:

Parameter Type Description
other FolderFontSource The object to compare with the current FolderFontSource object.

Returns: boolean - true if both FolderFontSource objects are the same; otherwise, false

equals(Object o)

public boolean equals(Object o)

Determines whether the current FolderFontSource is the same as specified object.

Parameters:

Parameter Type Description
o java.lang.Object The object to compare with the current FolderFontSource object.

Returns: boolean - true if obj parameter is FolderFontSource and is the same as current FolderFontSource object; otherwise, false

hashCode()

public int hashCode()

Returns the hash code for the current FolderFontSource object.

Returns: int - A hash code for the current FolderFontSource object.

toString()

public String toString()

Returns a string that represents the current object.

Returns: java.lang.String - A string that represents the current object.