Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.desktop - Package : javax.swing.plaf.basic
Version documentée : Java SE 17

Classe « BasicSliderUI »

Informations générales

Héritage

java.lang.Object
    javax.swing.plaf.ComponentUI
        javax.swing.plaf.SliderUI
            javax.swing.plaf.basic.BasicSliderUI

Définition

public class BasicSliderUI extends javax.swing.plaf.SliderUI

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription
public static int MAX_SCROLL
public static int MIN_SCROLL
public static int NEGATIVE_SCROLL
public static int POSITIVE_SCROLL
protected ChangeListener changeListener
protected ComponentListener componentListener
protected Rectangle contentRect
protected Insets focusInsets
protected FocusListener focusListener
protected Rectangle focusRect
protected Insets insetCache
protected Rectangle labelRect
protected boolean leftToRightCache
protected PropertyChangeListener propertyChangeListener
protected ScrollListener scrollListener
protected Timer scrollTimer
protected JSlider slider
protected Rectangle thumbRect
protected Rectangle tickRect
protected int trackBuffer
protected TrackListener trackListener
protected Rectangle trackRect

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
BasicSliderUI()
BasicSliderUI( JSlider b )

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
protected boolean dragging R/-
protected Color focusColor R/-
protected int heightOfHighValueLabel R/-
protected int heightOfLowValueLabel R/-
protected int heightOfTallestLabel R/-
protected Integer highestValue R/-
protected Component highestValueLabel R/-
protected Color highlightColor R/-
protected Integer lowestValue R/-
protected Component lowestValueLabel R/-
public Dimension minimumHorizontalSize R/-
public Dimension minimumVerticalSize R/-
public Dimension preferredHorizontalSize R/-
public Dimension preferredVerticalSize R/-
protected Color shadowColor R/-
protected Dimension thumbSize R/-
protected int tickLength R/-
protected int widthOfHighValueLabel R/-
protected int widthOfLowValueLabel R/-
protected int widthOfWidestLabel R/-

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
protected void calculateContentRect()
protected void calculateFocusRect()
protected void calculateGeometry()
protected void calculateLabelRect()
protected void calculateThumbLocation()
protected void calculateThumbSize()
protected void calculateTickRect()
protected void calculateTrackBuffer()
protected void calculateTrackRect()
protected ChangeListener createChangeListener( JSlider slider )
protected ComponentListener createComponentListener( JSlider slider )
protected FocusListener createFocusListener( JSlider slider )
protected PropertyChangeListener createPropertyChangeListener( JSlider slider )
protected ScrollListener createScrollListener( JSlider slider )
protected TrackListener createTrackListener( JSlider slider )
public static ComponentUI createUI( JComponent b )
protected boolean drawInverted()
public int getBaseline( JComponent c, int width, int height )
public BaselineResizeBehavior getBaselineResizeBehavior( JComponent c )
protected Color getFocusColor()
protected int getHeightOfHighValueLabel()
protected int getHeightOfLowValueLabel()
protected int getHeightOfTallestLabel()
protected Integer getHighestValue()
protected Component getHighestValueLabel()
protected Color getHighlightColor()
protected Integer getLowestValue()
protected Component getLowestValueLabel()
public Dimension getMaximumSize( JComponent c )
public Dimension getMinimumHorizontalSize()
public Dimension getMinimumSize( JComponent c )
public Dimension getMinimumVerticalSize()
public Dimension getPreferredHorizontalSize()
public Dimension getPreferredSize( JComponent c )
public Dimension getPreferredVerticalSize()
protected Color getShadowColor()
protected Dimension getThumbSize()
protected int getTickLength()
protected int getWidthOfHighValueLabel()
protected int getWidthOfLowValueLabel()
protected int getWidthOfWidestLabel()
protected void installDefaults( JSlider slider )
protected void installKeyboardActions( JSlider slider )
protected void installListeners( JSlider slider )
public void installUI( JComponent c )
protected boolean isDragging()
protected boolean labelsHaveSameBaselines()
public void paint( Graphics g, JComponent c )
public void paintFocus( Graphics g )
protected void paintHorizontalLabel( Graphics g, int value, Component label )
public void paintLabels( Graphics g )
protected void paintMajorTickForHorizSlider( Graphics g, Rectangle tickBounds, int x )
protected void paintMajorTickForVertSlider( Graphics g, Rectangle tickBounds, int y )
protected void paintMinorTickForHorizSlider( Graphics g, Rectangle tickBounds, int x )
protected void paintMinorTickForVertSlider( Graphics g, Rectangle tickBounds, int y )
public void paintThumb( Graphics g )
public void paintTicks( Graphics g )
public void paintTrack( Graphics g )
protected void paintVerticalLabel( Graphics g, int value, Component label )
protected void recalculateIfInsetsChanged()
protected void recalculateIfOrientationChanged()
public void scrollByBlock( int direction )
public void scrollByUnit( int direction )
protected void scrollDueToClickInTrack( int dir )
public void setThumbLocation( int x, int y )
protected void uninstallDefaults( JSlider slider )
protected void uninstallKeyboardActions( JSlider slider )
protected void uninstallListeners( JSlider slider )
public void uninstallUI( JComponent c )
public int valueForXPosition( int xPos )
public int valueForYPosition( int yPos )
protected int xPositionForValue( int value )
protected int yPositionForValue( int value, int trackY, int trackHeight )
protected int yPositionForValue( int value )

Méthodes héritées de la classe javax.swing.plaf.ComponentUI

contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait