|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--amber.type.server.FontCharacteristics
This class contains a variety of the information gleaned from the remote client relating to the font characteristics of the client font.
ComponentHandler| Field Summary | |
protected int |
leading
The leading for the font. |
protected int |
maxAdvance
The maximum amount the pointer would move to render any character for the font. |
protected int |
maxAscent
The maximum ascent for the font. |
protected int |
maxDescent
The maximum descent for the font. |
protected int |
stringWidth
The amount that the specified string occupies horizontally. |
| Constructor Summary | |
FontCharacteristics()
Default Constructor. |
|
FontCharacteristics(int maxAscent,
int maxDescent,
int leading,
int maxAdvance,
int stringWidth)
Initialising Constructor. |
|
| Method Summary | |
int |
getLeading()
Gets the data in the following variable: The leading for the font. |
int |
getMaxAdvance()
Gets the data in the following variable: The maximum amount the pointer would move to render any character for the font. |
int |
getMaxAscent()
Gets the data in the following variable: The maximum ascent for the font. |
int |
getMaxDescent()
Gets the data in the following variable: The maximum descent for the font. |
int |
getMaxHeight()
Gets the data in the following variable: The maximum amount of vertical space any character would occupy. |
int |
getStringWidth()
Gets the data in the following variable: The amount that the specified string occupies horizontally. |
void |
setLeading(int data)
Sets the data in the following variable: The leading for the font. |
void |
setMaxAdvance(int data)
Sets the data in the following variable: The maximum amount the pointer would move to render any character for the font. |
void |
setMaxAscent(int data)
Sets the data in the following variable: The maximum ascent for the font. |
void |
setMaxDescent(int data)
Sets the data in the following variable: The maximum descent for the font. |
void |
setStringWidth(int data)
Sets the data in the following variable: The amount that the specified string occupies horizontally. |
java.lang.String |
toString()
This function returns the String form of the data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int maxAscent
protected int maxDescent
protected int leading
protected int maxAdvance
protected int stringWidth
| Constructor Detail |
public FontCharacteristics()
public FontCharacteristics(int maxAscent,
int maxDescent,
int leading,
int maxAdvance,
int stringWidth)
maxAscent - The maximum ascent for the font. This is the distance from the font's baseline to the top of the character.maxDescent - The maximum descent for the font. This is the distance from the font's baseline to the bottom of the character.leading - The leading for the font. This is the logical amount of space reserved between the descent of one line and the ascent of the next line.maxAdvance - The maximum amount the pointer would move to render any character for the font.stringWidth - The amount that the specified string occupies horizontally.| Method Detail |
public int getMaxAscent()
public int getMaxDescent()
public int getLeading()
public int getMaxAdvance()
public int getMaxHeight()
public int getStringWidth()
public void setMaxAscent(int data)
data - int containing the data to set the variable to.public void setMaxDescent(int data)
data - int containing the data to set the variable to.public void setLeading(int data)
data - int containing the data to set the variable to.public void setMaxAdvance(int data)
data - int containing the data to set the variable to.public void setStringWidth(int data)
data - int containing the data to set the variable to.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||