Class PlasticSpinnerUI.SpinnerArrowButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants
Enclosing class:
PlasticSpinnerUI

private static final class PlasticSpinnerUI.SpinnerArrowButton extends PlasticArrowButton
It differs from its superclass in that it uses the same formula as JDK to calculate the arrow height.
  • Constructor Details

    • SpinnerArrowButton

      private SpinnerArrowButton(int direction)
  • Method Details

    • calculateArrowHeight

      protected int calculateArrowHeight(int height, int width)
      Description copied from class: PlasticArrowButton
      Computes and returns the arrow height based on the specified buttons height and width.
      Overrides:
      calculateArrowHeight in class PlasticArrowButton
      Parameters:
      height - the height of the button to be used for calculation.
      width - the width of the button to be used for calculation.
      Returns:
      the height of the arrow
    • calculateArrowOffset

      protected int calculateArrowOffset()
      Overrides:
      calculateArrowOffset in class PlasticArrowButton
    • isPaintingNorthBottom

      protected boolean isPaintingNorthBottom()
      Overrides:
      isPaintingNorthBottom in class PlasticArrowButton