public class Font
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Font.Style
The styles that may be requested for a given font.
|
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
name
The name of this font.
|
float |
size
The point size of this font.
|
Font.Style |
style
The style of this font.
|
| Constructor and Description |
|---|
Font(java.lang.String name,
float size)
Creates a font as specified with
Font.Style.PLAIN.. |
Font(java.lang.String name,
Font.Style style,
float size)
Creates a font as specified.
|
| Modifier and Type | Method and Description |
|---|---|
Font |
derive(float size)
Derives a font with the same name and style as this one, at the specified size.
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
java.lang.String |
toString() |
public final java.lang.String name
public final Font.Style style
public final float size
public Font(java.lang.String name,
Font.Style style,
float size)
public Font(java.lang.String name,
float size)
Font.Style.PLAIN..public Font derive(float size)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All Rights Reserved.