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.plaf.metal

Class MetalTabbedPaneUI

  • All Implemented Interfaces:
    SwingConstants

    public class MetalTabbedPaneUI
    extends BasicTabbedPaneUI
    The Metal subclass of BasicTabbedPaneUI.

    Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder.

    • Field Detail

      • minTabWidth

        protected int minTabWidth
      • tabAreaBackground

        protected Color tabAreaBackground
      • selectColor

        protected Color selectColor
      • selectHighlight

        protected Color selectHighlight
    • Constructor Detail

      • MetalTabbedPaneUI

        public MetalTabbedPaneUI()
    • Method Detail

      • paintTabBorder

        protected void paintTabBorder(Graphics g,
                          int tabPlacement,
                          int tabIndex,
                          int x,
                          int y,
                          int w,
                          int h,
                          boolean isSelected)
        Description copied from class: BasicTabbedPaneUI
        this function draws the border around each tab note that this function does now draw the background of the tab. that is done elsewhere
        Overrides:
        paintTabBorder in class BasicTabbedPaneUI
      • paintTopTabBorder

        protected void paintTopTabBorder(int tabIndex,
                             Graphics g,
                             int x,
                             int y,
                             int w,
                             int h,
                             int btm,
                             int rght,
                             boolean isSelected)
      • shouldFillGap

        protected boolean shouldFillGap(int currentRun,
                            int tabIndex,
                            int x,
                            int y)
      • getColorForGap

        protected Color getColorForGap(int currentRun,
                           int x,
                           int y)
      • paintLeftTabBorder

        protected void paintLeftTabBorder(int tabIndex,
                              Graphics g,
                              int x,
                              int y,
                              int w,
                              int h,
                              int btm,
                              int rght,
                              boolean isSelected)
      • paintBottomTabBorder

        protected void paintBottomTabBorder(int tabIndex,
                                Graphics g,
                                int x,
                                int y,
                                int w,
                                int h,
                                int btm,
                                int rght,
                                boolean isSelected)
      • paintRightTabBorder

        protected void paintRightTabBorder(int tabIndex,
                               Graphics g,
                               int x,
                               int y,
                               int w,
                               int h,
                               int btm,
                               int rght,
                               boolean isSelected)
      • update

        public void update(Graphics g,
                  JComponent c)
        Description copied from class: ComponentUI
        Notifies this UI delegate that it is time to paint the specified component. This method is invoked by JComponent when the specified component is being painted.

        By default this method fills the specified component with its background color if its opaque property is true, and then immediately calls paint. In general this method need not be overridden by subclasses; all look-and-feel rendering code should reside in the paint method.

        Overrides:
        update in class ComponentUI
        Parameters:
        g - the Graphics context in which to paint
        c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
        See Also:
        ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent), JComponent.paintComponent(java.awt.Graphics)
      • paintTabBackground

        protected void paintTabBackground(Graphics g,
                              int tabPlacement,
                              int tabIndex,
                              int x,
                              int y,
                              int w,
                              int h,
                              boolean isSelected)
        Overrides:
        paintTabBackground in class BasicTabbedPaneUI
      • getTabLabelShiftX

        protected int getTabLabelShiftX(int tabPlacement,
                            int tabIndex,
                            boolean isSelected)
        Overridden to do nothing for the Java L&F.
        Overrides:
        getTabLabelShiftX in class BasicTabbedPaneUI
      • getTabLabelShiftY

        protected int getTabLabelShiftY(int tabPlacement,
                            int tabIndex,
                            boolean isSelected)
        Overridden to do nothing for the Java L&F.
        Overrides:
        getTabLabelShiftY in class BasicTabbedPaneUI
      • getBaselineOffset

        protected int getBaselineOffset()
        Returns the amount the baseline is offset by. This is typically the same as getTabLabelShiftY.
        Overrides:
        getBaselineOffset in class BasicTabbedPaneUI
        Returns:
        amount to offset the baseline by
        Since:
        1.6
      • paint

        public void paint(Graphics g,
                 JComponent c)
        Description copied from class: ComponentUI
        Paints the specified component appropriately for the look and feel. This method is invoked from the ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified Graphics object to render the content of the component.
        Overrides:
        paint in class BasicTabbedPaneUI
        Parameters:
        g - the Graphics context in which to paint
        c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
        See Also:
        ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
      • paintHighlightBelowTab

        protected void paintHighlightBelowTab()
      • shouldRotateTabRuns

        protected boolean shouldRotateTabRuns(int tabPlacement,
                                  int selectedRun)

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/plaf/metal/metaltabbedpaneui.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