Class PlasticXPSpinnerUI.SpinnerXPArrowButton

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

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

    • SpinnerXPArrowButton

      SpinnerXPArrowButton(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
    • isPaintingNorthBottom

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

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

      protected void paintNorth(Graphics g, boolean leftToRight, boolean isEnabled, Color arrowColor, boolean isPressed, int width, int height, int w, int h, int arrowHeight, int arrowOffset, boolean paintBottom)
      Overrides:
      paintNorth in class PlasticArrowButton
    • paintNorthBorder

      private void paintNorthBorder(Graphics g, boolean isEnabled, int w, int h, boolean paintBottom)
    • paintSouth

      protected void paintSouth(Graphics g, boolean leftToRight, boolean isEnabled, Color arrowColor, boolean isPressed, int width, int height, int w, int h, int arrowHeight, int arrowOffset)
      Overrides:
      paintSouth in class PlasticArrowButton
    • paintSouthBorder

      private void paintSouthBorder(Graphics g, boolean isEnabled, int w, int h)