Class BasicFrameAttributes

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BasicFrameAttributes copy()
      Returns a new FrameAttributes instance of the same type as this FrameAttributes, who's properties are configured exactly as this FrameAttributes.
      void copy​(FrameAttributes attributes)
      Copies the specified FrameAttributes' properties into this object's properties.
      boolean equals​(java.lang.Object o)  
      java.awt.Color[] getBackgroundColor()
      Get the colors that make up the frame's background gradient.
      double getBackgroundOpacity()
      Get the opacity of the frame.
      int getCornerRadius()
      Get the radius of the frame corners.
      java.awt.Font getFont()
      Get the font used to render text.
      java.awt.Color getForegroundColor()
      Get the color of the text in the frame.
      double getForegroundOpacity()
      Get the opacity of the text and images in the frame.
      java.awt.Dimension getIconSize()
      Get the size of the icon in the frame title bar.
      int getIconSpace()
      Get the amount of space, in pixels, to leave between an icon in the frame and surrounding text and shapes.
      java.awt.Color getMinimizeButtonColor()
      Get the color of the minimize button drawn in the upper right corner of the frame.
      java.awt.Color[] getScrollBarColor()
      Get the colors used to draw the frame's scroll bars.
      java.awt.Color getTextColor()
      Get the color of the text in the frame title bar.
      java.awt.Color[] getTitleBarColor()
      Get the colors that make up the frame's title bar gradient.
      int hashCode()  
      void setBackgroundColor​(java.awt.Color frameColor1, java.awt.Color frameColor2)
      Set the colors in the background gradient of the frame.
      void setBackgroundOpacity​(double frameOpacity)
      Set the opacity of the frame.
      void setCornerRadius​(int cornerRadius)
      Set the radius of the frame corners.
      void setFont​(java.awt.Font font)
      Set the font used to render text.
      void setForegroundColor​(java.awt.Color textColor)
      Set the color of the text in the frame.
      void setForegroundOpacity​(double textOpacity)
      Set the opacity of the frame text and images.
      void setIconSize​(java.awt.Dimension iconSize)
      Set the size of each icon in the frame title bar.
      void setIconSpace​(int iconSpace)
      Set the amount of space, in pixels, to leave between an icon in the frame and surrounding text and shapes.
      void setMinimizeButtonColor​(java.awt.Color minimizeButtonColor)
      Set the color of the minimize button drawn in the upper right corner of the frame.
      void setScrollBarColor​(java.awt.Color color1, java.awt.Color color2)
      Set the colors in the scroll bar gradient.
      void setTextColor​(java.awt.Color textColor)
      Set the color of the text in the frame title bar.
      void setTitleBarColor​(java.awt.Color color1, java.awt.Color color2)
      Set the colors in the title bar gradient.
      • Methods inherited from class java.lang.Object

        clone, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • backgroundOpacity

        protected double backgroundOpacity
      • frameColor1

        protected java.awt.Color frameColor1
      • frameColor2

        protected java.awt.Color frameColor2
      • titleBarColor1

        protected java.awt.Color titleBarColor1
      • titleBarColor2

        protected java.awt.Color titleBarColor2
      • scrollBarColor1

        protected java.awt.Color scrollBarColor1
      • scrollBarColor2

        protected java.awt.Color scrollBarColor2
      • minimizeButtonColor

        protected java.awt.Color minimizeButtonColor
      • foregroundOpacity

        protected double foregroundOpacity
      • foregroundColor

        protected java.awt.Color foregroundColor
      • textColor

        protected java.awt.Color textColor
      • font

        protected java.awt.Font font
      • iconSize

        protected java.awt.Dimension iconSize
      • iconSpace

        protected int iconSpace
      • cornerRadius

        protected int cornerRadius
    • Constructor Detail

      • BasicFrameAttributes

        public BasicFrameAttributes()
      • BasicFrameAttributes

        public BasicFrameAttributes​(BasicFrameAttributes attributes)
        Create a new attributes object with the same configuration as an existing attributes object.
        Parameters:
        attributes - Object to copy configuration from.