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.
javax.swing.text.html

Class InlineView

    • Constructor Detail

      • InlineView

        public InlineView(Element elem)
        Constructs a new view wrapped on an element.
        Parameters:
        elem - the element
    • Method Detail

      • getAttributes

        public AttributeSet getAttributes()
        Fetches the attributes to use when rendering. This is implemented to multiplex the attributes specified in the model with a StyleSheet.
        Overrides:
        getAttributes in class View
      • getBreakWeight

        public int getBreakWeight(int axis,
                         float pos,
                         float len)
        Determines how attractive a break opportunity in this view is. This can be used for determining which view is the most attractive to call breakView on in the process of formatting. A view that represents text that has whitespace in it might be more attractive than a view that has no whitespace, for example. The higher the weight, the more attractive the break. A value equal to or lower than BadBreakWeight should not be considered for a break. A value greater than or equal to ForcedBreakWeight should be broken.

        This is implemented to provide the default behavior of returning BadBreakWeight unless the length is greater than the length of the view in which case the entire view represents the fragment. Unless a view has been written to support breaking behavior, it is not attractive to try and break the view. An example of a view that does support breaking is LabelView. An example of a view that uses break weight is ParagraphView.

        Overrides:
        getBreakWeight in class GlyphView
        Parameters:
        axis - may be either View.X_AXIS or View.Y_AXIS
        pos - the potential location of the start of the broken view >= 0. This may be useful for calculating tab positions.
        len - specifies the relative length from pos where a potential break is desired >= 0.
        Returns:
        the weight, which should be a value between ForcedBreakWeight and BadBreakWeight.
        See Also:
        LabelView, ParagraphView, View.BadBreakWeight, View.GoodBreakWeight, View.ExcellentBreakWeight, View.ForcedBreakWeight
      • breakView

        public View breakView(int axis,
                     int offset,
                     float pos,
                     float len)
        Tries to break this view on the given axis. Refer to View.breakView(int, int, float, float) for a complete description of this method.

        Behavior of this method is unspecified in case axis is neither View.X_AXIS nor View.Y_AXIS, and in case offset, pos, or len is null.

        Overrides:
        breakView in class GlyphView
        Parameters:
        axis - may be either View.X_AXIS or View.Y_AXIS
        offset - the location in the document model that a broken fragment would occupy >= 0. This would be the starting offset of the fragment returned
        pos - the position along the axis that the broken view would occupy >= 0. This may be useful for things like tab calculations
        len - specifies the distance along the axis where a potential break is desired >= 0
        Returns:
        the fragment of the view that represents the given span.
        Since:
        1.5
        See Also:
        View.breakView(int, int, float, float)
      • setPropertiesFromAttributes

        protected void setPropertiesFromAttributes()
        Set the cached properties from the attributes.
        Overrides:
        setPropertiesFromAttributes in class LabelView
      • getStyleSheet

        protected StyleSheet getStyleSheet()

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-javax/swing/text/html/inlineview.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