javax.swing.text

Interface TabableView

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      float getPartialSpan(int p0, int p1)
      Determines the span along the same axis as tab expansion for a portion of the view.
      float getTabbedSpan(float x, TabExpander e)
      Determines the desired span when using the given tab expansion implementation.

        

    • Method Detail

      • getTabbedSpan

        float getTabbedSpan(float x,
                          TabExpander e)
        Determines the desired span when using the given tab expansion implementation. If a container calls this method, it will do so prior to the normal layout which would call getPreferredSpan. A view implementing this should give the same result in any subsequent calls to getPreferredSpan along the axis of tab expansion.
        Parameters:
        x - the position the view would be located at for the purpose of tab expansion >= 0.
        e - how to expand the tabs when encountered.
        Returns:
        the desired span >= 0
      • getPartialSpan

        float getPartialSpan(int p0,
                           int p1)
        Determines the span along the same axis as tab expansion for a portion of the view. This is intended for use by the TabExpander for cases where the tab expansion involves aligning the portion of text that doesn't have whitespace relative to the tab stop. There is therefore an assumption that the range given does not contain tabs.
        Parameters:
        p0 - the starting location in the text document >= 0
        p1 - the ending location in the text document >= p0
        Returns:
        the span >= 0

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 30/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/swing/text/TabableView.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, TabableView

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut