Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
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.

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-java/awt/font/linemetrics.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut