|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.graphics.FontData
Instances of this class describe fonts.
Application code does not need to explicitly release the
resources managed by each instance when those instances are no longer
required, and thus no dispose()
method is provided.
Font
Constructor Summary | |
FontData(String string)
Constructs a new FontData given a string representation in the form generated by the FontData.toString
method. |
|
FontData(String name,
int height,
int style)
Constructs a new font data given a font name, the height of the desired font in points, and a font style. |
Method Summary | |
boolean |
equals(Object obj)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
int |
getHeight()
Returns the height of the receiver in points. |
String |
getName()
Returns the name of the receiver. |
int |
getStyle()
Returns the style of the receiver which is a bitwise OR of one or more of the SWT constants NORMAL, BOLD
and ITALIC. |
int |
hashCode()
Returns an integer hash code for the receiver. |
String |
toString()
Returns a string representation of the receiver which is suitable for constructing an equivalent instance using the FontData(String)
constructor. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FontData(String name, int height, int style)
name
- the name of the font (must not be null)height
- the font height in pointsstyle
- a bit or combination of NORMAL, BOLD, ITALIC
IllegalArgumentException
- public FontData(String string)
FontData.toString
method.
string
- the string representation of a FontData
(must not be null)
IllegalArgumentException
- toString()
Method Detail |
public String toString()
FontData(String)
constructor.
public int getHeight()
public String getName()
FontData
public int getStyle()
SWT
constants NORMAL, BOLD
and ITALIC.
FontData
public boolean equals(Object obj)
obj
- the object to compare with this object
true
if the object is the same as this object and false
otherwisehashCode()
public int hashCode()
true
when passed to
equals
must return the same value for this
method.
equals(java.lang.Object)
|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2009. All rights reserved.