|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.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(java.lang.String name,
int style,
int size)
Creates a new Font from the specified name, style and
point size. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Checks if the two colors have the same RGB value. |
java.lang.String |
getName()
|
int |
getSize()
|
int |
getStyle()
|
java.lang.String |
hash()
|
static java.lang.String |
hash(java.lang.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. |
java.lang.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(java.lang.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 java.lang.String getName()
public int getSize()
public int getStyle()
public java.lang.String toString()
Font
object to a String
representation.
toString
in class java.lang.Object
String
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 java.lang.String hash()
public static final java.lang.String hash(java.lang.String name, int style, int size)
name
- Namestyle
- Stylesize
- Size
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |