Class FlatArrowButton

    • Field Detail

      • chevron

        protected boolean chevron
      • foreground

        protected Color foreground
      • disabledForeground

        protected Color disabledForeground
      • hoverForeground

        protected Color hoverForeground
      • hoverBackground

        protected Color hoverBackground
      • pressedForeground

        protected Color pressedForeground
      • pressedBackground

        protected Color pressedBackground
    • Constructor Detail

      • FlatArrowButton

        public FlatArrowButton​(int direction,
                               String type,
                               Color foreground,
                               Color disabledForeground,
                               Color hoverForeground,
                               Color hoverBackground,
                               Color pressedForeground,
                               Color pressedBackground)
    • Method Detail

      • updateStyle

        public void updateStyle​(String type,
                                Color foreground,
                                Color disabledForeground,
                                Color hoverForeground,
                                Color hoverBackground,
                                Color pressedForeground,
                                Color pressedBackground)
        Since:
        2
      • getArrowWidth

        public int getArrowWidth()
      • setArrowWidth

        public void setArrowWidth​(int arrowWidth)
      • getArrowThickness

        public float getArrowThickness()
        Since:
        3
      • setArrowThickness

        public void setArrowThickness​(float arrowThickness)
        Since:
        3
      • isHover

        protected boolean isHover()
      • isPressed

        protected boolean isPressed()
      • getXOffset

        public float getXOffset()
      • setXOffset

        public void setXOffset​(float xOffset)
      • getYOffset

        public float getYOffset()
      • setYOffset

        public void setYOffset​(float yOffset)
      • isRoundBorderAutoXOffset

        public boolean isRoundBorderAutoXOffset()
        Since:
        3
      • setRoundBorderAutoXOffset

        public void setRoundBorderAutoXOffset​(boolean roundBorderAutoXOffset)
        Since:
        3
      • deriveBackground

        protected Color deriveBackground​(Color background)
      • deriveForeground

        protected Color deriveForeground​(Color foreground)
      • getArrowColor

        protected Color getArrowColor()
        Returns the color used to paint the arrow.
        Since:
        1.2
      • paintBackground

        protected void paintBackground​(Graphics2D g)
      • paintArrow

        protected void paintArrow​(Graphics2D g)