public class FontDetails<F>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
boldFontDefinition
Flag indicating that this font name has a separate font definition for the bold style.
|
boolean |
fixedSize
Flag indicating this is a fixed-size font.
|
F |
font
The font object instance.
|
FontDetails<F> |
fontAlias
When set, this represents an alias for a legacy font; the driver will create a
font instance for the font with the specifications given by this instance, instead
of the current instance. |
byte[] |
fontDefinition
Byte array with the custom font definition.
|
java.lang.String |
fontName
The font's name.
|
java.lang.String |
key
A unique descriptor describing the font name, size and attributes.
|
int |
legacyHeight
The legacy height of this font; negative value if this was not configured.
|
int |
legacyMaxWidth
The legacy max width of this font; negative value if this was not configured.
|
int |
legacyWidth
The legacy width of this font; negative value if this was not configured.
|
int |
pointSize
Point size for this font.
|
FontStyle |
style
Font style.
|
boolean |
swingAntiAliasing
Flag to inform client to use anti-aliasing rendering hint in Swing session
|
Constructor and Description |
---|
FontDetails()
Create new font details.
|
FontDetails(F font,
int legacyWidth,
int legacyHeight,
byte[] fontDefinition)
Create new font details.
|
FontDetails(java.lang.String key,
java.lang.String fontName,
FontStyle style,
int pointSize,
int legacyWidth,
int legacyMaxWidth,
int legacyHeight,
byte[] fontDefinition,
boolean fixedSize)
Create a new font specification.
|
FontDetails(java.lang.String key,
java.lang.String fontName,
FontStyle style,
int pointSize,
int legacyWidth,
int legacyMaxWidth,
int legacyHeight,
byte[] fontDefinition,
boolean fixedSize,
boolean swingAntiAliasing)
Create a new font specification.
|
Modifier and Type | Method and Description |
---|---|
FontDetails<F> |
copy()
Return a new font details instance with the same copied state.
|
boolean |
equals(java.lang.Object o)
Compares two objects for equality.
|
java.lang.String |
toString() |
public java.lang.String key
public java.lang.String fontName
public transient F font
public FontStyle style
public int pointSize
public int legacyWidth
public int legacyMaxWidth
public int legacyHeight
public byte[] fontDefinition
public boolean fixedSize
public boolean boldFontDefinition
public boolean swingAntiAliasing
public FontDetails<F> fontAlias
font
instance for the font with the specifications given by this instance, instead
of the current instance. The original font's specs will remain and will be used only for
code which needs the legacy specs - all drawing will be performed using the alias font.public FontDetails()
public FontDetails(java.lang.String key, java.lang.String fontName, FontStyle style, int pointSize, int legacyWidth, int legacyMaxWidth, int legacyHeight, byte[] fontDefinition, boolean fixedSize, boolean swingAntiAliasing)
key
- The key for this font.fontName
- The font name.style
- The font's style.pointSize
- The font point size.legacyWidth
- The legacy width which needs to be matched by this font. If no legacy details
exist, then this argument will be negative.legacyMaxWidth
- The legacy max width needs to be matched by this font. If no legacy details
exist, then this argument will be negative.legacyHeight
- The legacy height which needs to be matched by this font. If no legacy details
exist, then this argument will be negative.fontDefinition
- The font's definition.fixedSize
- Flag indicating if this is a fixed-size font.swingAntiAliasing
- Flag indicating if we use anti-aliasing mode in Swing client.public FontDetails(java.lang.String key, java.lang.String fontName, FontStyle style, int pointSize, int legacyWidth, int legacyMaxWidth, int legacyHeight, byte[] fontDefinition, boolean fixedSize)
key
- The key for this font.fontName
- The font name.style
- The font's style.pointSize
- The font point size.legacyWidth
- The legacy width which needs to be matched by this font. If no legacy details
exist, then this argument will be negative.legacyMaxWidth
- The legacy max width needs to be matched by this font. If no legacy details
exist, then this argument will be negative.legacyHeight
- The legacy height which needs to be matched by this font. If no legacy details
exist, then this argument will be negative.fontDefinition
- The font's definition.fixedSize
- Flag indicating if this is a fixed-size font.public FontDetails(F font, int legacyWidth, int legacyHeight, byte[] fontDefinition)
font
- The font object instance.legacyWidth
- The legacy width of this font; negative value if this was not configured.legacyHeight
- The legacy height of this font; negative value if this was not configured.fontDefinition
- Byte array with the custom font definition.public FontDetails<F> copy()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object to compare with.true
if instances are equal and
false
otherwise.