|
Oxygen XML Editor 11.2 Author API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectro.sync.exml.view.graphics.Font
public class Font
Font common class.
| Field Summary | |
|---|---|
static int |
BOLD
The bold style constant. |
static int |
ITALIC
The italicized style constant. |
static int |
PLAIN
The plain style constant. |
| Constructor Summary | |
|---|---|
Font(String name,
int style,
int size)
Creates a new Font from the specified name, style and
point size. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Checks if the two colors have the same RGB value. |
String |
getName()
|
int |
getSize()
|
int |
getStyle()
|
String |
hash()
|
static String |
hash(String name,
int style,
int size)
Hash the font |
int |
hashCode()
|
boolean |
isBold()
Indicates whether or not this Font object's style is
BOLD. |
boolean |
isItalic()
Indicates whether or not this Font object's style is
ITALIC. |
boolean |
isPlain()
Indicates whether or not this Font object's style is
PLAIN. |
String |
toString()
Converts this Font object to a String
representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PLAIN
public static final int BOLD
public static final int ITALIC
| Constructor Detail |
|---|
public Font(String name,
int style,
int size)
Font from the specified name, style and
point size.
name - the font name. This can be a logical font name or a
font face name. A logical name must be either: Dialog, DialogInput,
Monospaced, Serif, or SansSerif. If name is
null, the name of the new
Font is set to the name "Default".style - the style constant for the Font
The style argument is an integer bitmask that may
be PLAIN, or a bitwise union of BOLD and/or ITALIC
(for example, ITALIC or BOLD|ITALIC).size - the point size of the Font| Method Detail |
|---|
public String getName()
public int getSize()
public int getStyle()
public String toString()
Font object to a String
representation.
toString in class ObjectString representation of this
Font object.public boolean isPlain()
Font object's style is
PLAIN.
true if this Font has a
PLAIN sytle;
false otherwise.Font.getStyle()public boolean isBold()
Font object's style is
BOLD.
true if this Font object's
style is BOLD;
false otherwise.Font.getStyle()public boolean isItalic()
Font object's style is
ITALIC.
true if this Font object's
style is ITALIC;
false otherwise.Font.getStyle()public String hash()
public static final String hash(String name,
int style,
int size)
name - Namestyle - Stylesize - Size
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class ObjectObject.hashCode()
|
Oxygen XML Editor 11.2 Author API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||