Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
java.awt.font

Class LineMetrics


  • public abstract class LineMetrics
    extends Object
    The LineMetrics class allows access to the metrics needed to layout characters along a line and to layout of a set of lines. A LineMetrics object encapsulates the measurement information associated with a run of text.

    Fonts can have different metrics for different ranges of characters. The getLineMetrics methods of Font take some text as an argument and return a LineMetrics object describing the metrics of the initial number of characters in that text, as returned by getNumChars().

    • Constructor Detail

      • LineMetrics

        public LineMetrics()
    • Method Detail

      • getNumChars

        public abstract int getNumChars()
        Returns the number of characters (char values) in the text whose metrics are encapsulated by this LineMetrics object.
        Returns:
        the number of characters (char values) in the text with which this LineMetrics was created.
      • getAscent

        public abstract float getAscent()
        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.
        Returns:
        the ascent of the text.
      • getDescent

        public abstract float getDescent()
        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.
        Returns:
        the descent of the text.
      • getLeading

        public abstract float getLeading()
        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.
        Returns:
        the leading of the text.
      • getHeight

        public abstract float getHeight()
        Returns the height of the text. The height is equal to the sum of the ascent, the descent and the leading.
        Returns:
        the height of the text.
      • getBaselineOffsets

        public abstract float[] getBaselineOffsets()
        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 CENTER_BASELINE then offsets[HANGING_BASELINE] is usually negative, offsets[CENTER_BASELINE] is zero, and offsets[ROMAN_BASELINE] is usually positive.
        Returns:
        the baseline offsets of the text.
      • getStrikethroughOffset

        public abstract float getStrikethroughOffset()
        Returns the position of the strike-through line relative to the baseline.
        Returns:
        the position of the strike-through line.
      • getStrikethroughThickness

        public abstract float getStrikethroughThickness()
        Returns the thickness of the strike-through line.
        Returns:
        the thickness of the strike-through line.
      • getUnderlineOffset

        public abstract float getUnderlineOffset()
        Returns the position of the underline relative to the baseline.
        Returns:
        the position of the underline.
      • getUnderlineThickness

        public abstract float getUnderlineThickness()
        Returns the thickness of the underline.
        Returns:
        the thickness of the underline.

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-java/awt/font/linemetrics.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut