com.alee.utils.font
Class DerivedFontAttributes

java.lang.Object
  extended by com.alee.utils.font.DerivedFontAttributes

public class DerivedFontAttributes
extends java.lang.Object

This represents information about derived font.

Author:
Mikle Garin

Constructor Summary
DerivedFontAttributes(java.awt.Font font, int style, float size)
          Constructs new information about derived font.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 java.awt.Font getFont()
          Returns original font.
 float getSize()
          Returns new font size.
 int getStyle()
          Returns new font style.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerivedFontAttributes

public DerivedFontAttributes(java.awt.Font font,
                             int style,
                             float size)
Constructs new information about derived font.

Parameters:
font - original font
style - new font style
size - new font size
Method Detail

getFont

public java.awt.Font getFont()
Returns original font.

Returns:
original font

getStyle

public int getStyle()
Returns new font style.

Returns:
new font style

getSize

public float getSize()
Returns new font size.

Returns:
new font size

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object