IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft.value
Class FontInfo

java.lang.Object   extended by com.rational.test.ft.value.FontInfo

public class FontInfo
extends java.lang.Object

Provides information about a font.

Since:
RFT1.0

Field Summary
static int BOLD
           
static int ITALIC
           
static int PLAIN
           
static int STRIKEOUT
           
static int UNDERLINE
           
 
Constructor Summary
FontInfo(java.lang.String name, int style, int size)
          Constructs a FontInfo object.
 
Method Summary
 boolean equals(java.lang.Object other)
          Returns true if the other object is a FontInfo object with the same value.
 java.lang.String getName()
          Returns the font name.
 int getSize()
          Returns the font size.
 int getStyle()
          Returns the font style.
 int hashCode()
          Overloads the java.lang.Object core specification to return a data-specific hash value rather than the default instance-specific hash code.
 void setName(java.lang.String name)
          Sets the font name.
 void setSize(int size)
          Sets the font size.
 void setStyle(int style)
          Sets the font style.
 java.lang.String toString()
          Returns a String describing the font.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PLAIN

public static final int PLAIN
See Also:
Constant Field Values

BOLD

public static final int BOLD
See Also:
Constant Field Values

ITALIC

public static final int ITALIC
See Also:
Constant Field Values

UNDERLINE

public static final int UNDERLINE
See Also:
Constant Field Values

STRIKEOUT

public static final int STRIKEOUT
See Also:
Constant Field Values
Constructor Detail

FontInfo

public FontInfo(java.lang.String name,                 int style,                 int size)
Constructs a FontInfo object.

Parameters:
name - the font name
style - the font style
size - the font size
Since:
RFT1.0
See Also:
Font
Method Detail

getName

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

Since:
RFT1.0

getStyle

public int getStyle()
Returns the font style.

Since:
RFT1.0

getSize

public int getSize()
Returns the font size.

Since:
RFT1.0

setName

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

Since:
RFT1.0

setStyle

public void setStyle(int style)
Sets the font style.

Since:
RFT1.0

setSize

public void setSize(int size)
Sets the font size.

Since:
RFT1.0

toString

public java.lang.String toString()
Returns a String describing the font.

Overrides:
toString in class java.lang.Object
Since:
RFT1.0

equals

public boolean equals(java.lang.Object other)
Returns true if the other object is a FontInfo object with the same value. Otherwise, it returns false.

Overrides:
equals in class java.lang.Object
Since:
RFT1.0

hashCode

public int hashCode()
Overloads the java.lang.Object core specification to return a data-specific hash value rather than the default instance-specific hash code.

Overrides:
hashCode in class java.lang.Object
Since:
RFT1.0