| Modifier and Type | Field and Description |
|---|---|
| public final CoreMetrics | |
| public final FontRenderContext | |
| public int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | equals(Object rhs)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public float | |
| public int | getBaselineIndex()
Implements abstract java. Returns the baseline index of the text. |
| public float[] | getBaselineOffsets()
Implements abstract java. Returns the baseline offsets of the text, relative to the baseline of the text. |
| public float | getDescent()
Implements abstract java. Returns the descent of the text. |
| public float | |
| public float | getLeading()
Implements abstract java. Returns the leading of the text. |
| public int | getNumChars()
Implements abstract java. Returns the number of characters ( |
| public float | getStrikethroughOffset()
Implements abstract java. Returns the position of the strike-through line relative to the baseline. |
| public float | getStrikethroughThickness()
Implements abstract java. Returns the thickness of the strike-through line. |
| public float | getUnderlineOffset()
Implements abstract java. Returns the position of the underline relative to the baseline. |
| public float | getUnderlineThickness()
Implements abstract java. Returns the thickness of the underline. |
| public int |
| cm | back to summary |
|---|---|
| public final CoreMetrics cm | |
| frc | back to summary |
|---|---|
| public final FontRenderContext frc | |
| numchars | back to summary |
|---|---|
| public int numchars | |
| FontLineMetrics | back to summary |
|---|---|
| public FontLineMetrics(int numchars, CoreMetrics cm, FontRenderContext frc) | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| equals | back to summary |
|---|---|
| public boolean equals(Object rhs) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAscent | back to summary |
|---|---|
| public float getAscent() Implements abstract java. Doc from java. Returns the ascent of the text. The ascent is the distance from the baseline to the ascender line. The ascent usually represents the the height of the capital letters of the text. Some characters can extend above the ascender line. | |
| getBaselineIndex | back to summary |
|---|---|
| public int getBaselineIndex() Implements abstract java. Doc from java. Returns the baseline index of the text.
The index is one of
| |
| getBaselineOffsets | back to summary |
|---|---|
| public float[] getBaselineOffsets() Implements abstract java. Doc from java. Returns the baseline offsets of the text,
relative to the baseline of the text. The
offsets are indexed by baseline index. For
example, if the baseline index is
| |
| getDescent | back to summary |
|---|---|
| public float getDescent() Implements abstract java. Doc from java. Returns the descent of the text. The descent is the distance from the baseline to the descender line. The descent usually represents the distance to the bottom of lower case letters like 'p'. Some characters can extend below the descender line. | |
| getHeight | back to summary |
|---|---|
| public float getHeight() Implements abstract java. Doc from java. Returns the height of the text. The height is equal to the sum of the ascent, the descent and the leading. | |
| getLeading | back to summary |
|---|---|
| public float getLeading() Implements abstract java. Doc from java. Returns the leading of the text. The leading is the recommended distance from the bottom of the descender line to the top of the next line. | |
| getNumChars | back to summary |
|---|---|
| public int getNumChars() Implements abstract java. Doc from java. Returns the number of characters ( | |
| getStrikethroughOffset | back to summary |
|---|---|
| public float getStrikethroughOffset() Implements abstract java. Doc from java. Returns the position of the strike-through line relative to the baseline. | |
| getStrikethroughThickness | back to summary |
|---|---|
| public float getStrikethroughThickness() Implements abstract java. Doc from java. Returns the thickness of the strike-through line. | |
| getUnderlineOffset | back to summary |
|---|---|
| public float getUnderlineOffset() Implements abstract java. Doc from java. Returns the position of the underline relative to the baseline. | |
| getUnderlineThickness | back to summary |
|---|---|
| public float getUnderlineThickness() Implements abstract java. Doc from java. Returns the thickness of the underline. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |