java.awt

Interface Adjustable

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int HORIZONTAL
      Indicates that the Adjustable has horizontal orientation.
      static int NO_ORIENTATION
      Indicates that the Adjustable has no orientation.
      static int VERTICAL
      Indicates that the Adjustable has vertical orientation.

        

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addAdjustmentListener(AdjustmentListener l)
      Adds a listener to receive adjustment events when the value of the adjustable object changes.
      int getBlockIncrement()
      Gets the block value increment for the adjustable object.
      int getMaximum()
      Gets the maximum value of the adjustable object.
      int getMinimum()
      Gets the minimum value of the adjustable object.
      int getOrientation()
      Gets the orientation of the adjustable object.
      int getUnitIncrement()
      Gets the unit value increment for the adjustable object.
      int getValue()
      Gets the current value of the adjustable object.
      int getVisibleAmount()
      Gets the length of the proportional indicator.
      void removeAdjustmentListener(AdjustmentListener l)
      Removes an adjustment listener.
      void setBlockIncrement(int b)
      Sets the block value increment for the adjustable object.
      void setMaximum(int max)
      Sets the maximum value of the adjustable object.
      void setMinimum(int min)
      Sets the minimum value of the adjustable object.
      void setUnitIncrement(int u)
      Sets the unit value increment for the adjustable object.
      void setValue(int v)
      Sets the current value of the adjustable object.
      void setVisibleAmount(int v)
      Sets the length of the proportional indicator of the adjustable object.

        

    • Field Detail

      • HORIZONTAL

        static final int HORIZONTAL
        Indicates that the Adjustable has horizontal orientation.
        See Also:
        Constant Field Values
      • VERTICAL

        static final int VERTICAL
        Indicates that the Adjustable has vertical orientation.
        See Also:
        Constant Field Values
      • NO_ORIENTATION

        static final int NO_ORIENTATION
        Indicates that the Adjustable has no orientation.
        See Also:
        Constant Field Values
    • Method Detail

      • getOrientation

        int getOrientation()
        Gets the orientation of the adjustable object.
        Returns:
        the orientation of the adjustable object; either HORIZONTAL, VERTICAL, or NO_ORIENTATION
      • setMinimum

        void setMinimum(int min)
        Sets the minimum value of the adjustable object.
        Parameters:
        min - the minimum value
      • getMinimum

        int getMinimum()
        Gets the minimum value of the adjustable object.
        Returns:
        the minimum value of the adjustable object
      • setMaximum

        void setMaximum(int max)
        Sets the maximum value of the adjustable object.
        Parameters:
        max - the maximum value
      • getMaximum

        int getMaximum()
        Gets the maximum value of the adjustable object.
        Returns:
        the maximum value of the adjustable object
      • setUnitIncrement

        void setUnitIncrement(int u)
        Sets the unit value increment for the adjustable object.
        Parameters:
        u - the unit increment
      • getUnitIncrement

        int getUnitIncrement()
        Gets the unit value increment for the adjustable object.
        Returns:
        the unit value increment for the adjustable object
      • setBlockIncrement

        void setBlockIncrement(int b)
        Sets the block value increment for the adjustable object.
        Parameters:
        b - the block increment
      • getBlockIncrement

        int getBlockIncrement()
        Gets the block value increment for the adjustable object.
        Returns:
        the block value increment for the adjustable object
      • setVisibleAmount

        void setVisibleAmount(int v)
        Sets the length of the proportional indicator of the adjustable object.
        Parameters:
        v - the length of the indicator
      • getVisibleAmount

        int getVisibleAmount()
        Gets the length of the proportional indicator.
        Returns:
        the length of the proportional indicator
      • setValue

        void setValue(int v)
        Sets the current value of the adjustable object. If the value supplied is less than minimum or greater than maximum - visibleAmount, then one of those values is substituted, as appropriate.

        Calling this method does not fire an AdjustmentEvent.

        Parameters:
        v - the current value, between minimum and maximum - visibleAmount
      • getValue

        int getValue()
        Gets the current value of the adjustable object.
        Returns:
        the current value of the adjustable object
      • addAdjustmentListener

        void addAdjustmentListener(AdjustmentListener l)
        Adds a listener to receive adjustment events when the value of the adjustable object changes.
        Parameters:
        l - the listener to receive events
        See Also:
        AdjustmentEvent
      • removeAdjustmentListener

        void removeAdjustmentListener(AdjustmentListener l)
        Removes an adjustment listener.
        Parameters:
        l - the listener being removed
        See Also:
        AdjustmentEvent

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 22/07/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/awt/adjustable.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, Adjustable

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