public class BasicFrameAttributes extends java.lang.Object implements FrameAttributes
FrameAttributes set.| Modifier and Type | Field and Description |
|---|---|
protected double |
backgroundOpacity |
protected int |
cornerRadius |
protected java.awt.Font |
font |
protected java.awt.Color |
foregroundColor |
protected double |
foregroundOpacity |
protected java.awt.Color |
frameColor1 |
protected java.awt.Color |
frameColor2 |
protected java.awt.Dimension |
iconSize |
protected int |
iconSpace |
protected java.awt.Color |
minimizeButtonColor |
protected java.awt.Color |
scrollBarColor1 |
protected java.awt.Color |
scrollBarColor2 |
protected java.awt.Color |
textColor |
protected java.awt.Color |
titleBarColor1 |
protected java.awt.Color |
titleBarColor2 |
| Constructor and Description |
|---|
BasicFrameAttributes() |
BasicFrameAttributes(BasicFrameAttributes attributes)
Create a new attributes object with the same configuration as an existing attributes object.
|
| Modifier and Type | Method and 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.
|
protected double backgroundOpacity
protected int cornerRadius
protected java.awt.Font font
protected java.awt.Color foregroundColor
protected double foregroundOpacity
protected java.awt.Color frameColor1
protected java.awt.Color frameColor2
protected java.awt.Dimension iconSize
protected int iconSpace
protected java.awt.Color minimizeButtonColor
protected java.awt.Color scrollBarColor1
protected java.awt.Color scrollBarColor2
protected java.awt.Color textColor
protected java.awt.Color titleBarColor1
protected java.awt.Color titleBarColor2
public BasicFrameAttributes()
public BasicFrameAttributes(BasicFrameAttributes attributes)
attributes - Object to copy configuration from.public BasicFrameAttributes copy()
copy in interface FrameAttributespublic void copy(FrameAttributes attributes)
copy in interface FrameAttributesattributes - the attributes to copy.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.awt.Color[] getBackgroundColor()
getBackgroundColor in interface FrameAttributesFrameAttributes.setBackgroundColor(java.awt.Color, java.awt.Color)public double getBackgroundOpacity()
getBackgroundOpacity in interface FrameAttributesFrameAttributes.setBackgroundOpacity(double)public int getCornerRadius()
zero means square corners.getCornerRadius in interface FrameAttributespublic java.awt.Font getFont()
getFont in interface FrameAttributesFrameAttributes.setFont(java.awt.Font)public java.awt.Color getForegroundColor()
getForegroundColor in interface FrameAttributesFrameAttributes.setForegroundColor(java.awt.Color)public double getForegroundOpacity()
getForegroundOpacity in interface FrameAttributesFrameAttributes.setForegroundOpacity(double),
FrameAttributes.getBackgroundOpacity()public java.awt.Dimension getIconSize()
getIconSize in interface FrameAttributesFrameAttributes.setIconSize(java.awt.Dimension)public int getIconSpace()
getIconSpace in interface FrameAttributesFrameAttributes.setIconSpace(int)public java.awt.Color getMinimizeButtonColor()
getMinimizeButtonColor in interface FrameAttributespublic java.awt.Color[] getScrollBarColor()
getScrollBarColor in interface FrameAttributesFrameAttributes.setScrollBarColor(java.awt.Color, java.awt.Color)public java.awt.Color getTextColor()
getTextColor in interface FrameAttributespublic java.awt.Color[] getTitleBarColor()
getTitleBarColor in interface FrameAttributesFrameAttributes.setTitleBarColor(java.awt.Color, java.awt.Color)public int hashCode()
hashCode in class java.lang.Objectpublic void setBackgroundColor(java.awt.Color frameColor1,
java.awt.Color frameColor2)
setBackgroundColor in interface FrameAttributesframeColor1 - First color in frame gradient.frameColor2 - Second color in frame gradient.FrameAttributes.getBackgroundColor()public void setBackgroundOpacity(double frameOpacity)
setBackgroundOpacity in interface FrameAttributesframeOpacity - New frame opacity.FrameAttributes.getBackgroundOpacity()public void setCornerRadius(int cornerRadius)
setCornerRadius in interface FrameAttributescornerRadius - New radius, in pixels. A value of zero means square corners.public void setFont(java.awt.Font font)
setFont in interface FrameAttributesfont - New frame font.FrameAttributes.getFont()public void setForegroundColor(java.awt.Color textColor)
setForegroundColor in interface FrameAttributestextColor - New foreground color.FrameAttributes.getForegroundColor()public void setForegroundOpacity(double textOpacity)
setForegroundOpacity in interface FrameAttributestextOpacity - New opacity.FrameAttributes.getForegroundOpacity(),
FrameAttributes.setBackgroundOpacity(double)public void setIconSize(java.awt.Dimension iconSize)
setIconSize in interface FrameAttributesiconSize - New size.FrameAttributes.getIconSize()public void setIconSpace(int iconSpace)
setIconSpace in interface FrameAttributesiconSpace - Icon space in pixels.FrameAttributes.getIconSpace()public void setMinimizeButtonColor(java.awt.Color minimizeButtonColor)
setMinimizeButtonColor in interface FrameAttributesminimizeButtonColor - Color of the minimize button.public void setScrollBarColor(java.awt.Color color1,
java.awt.Color color2)
setScrollBarColor in interface FrameAttributescolor1 - First color in the scroll bar gradient.color2 - Second color in the scroll bar gradient.FrameAttributes.getScrollBarColor()public void setTextColor(java.awt.Color textColor)
setTextColor in interface FrameAttributestextColor - The new color of text in the tree frame.public void setTitleBarColor(java.awt.Color color1,
java.awt.Color color2)
setTitleBarColor in interface FrameAttributescolor1 - First color in the title bar gradient.color2 - Second color in the title bar gradient.FrameAttributes.getTitleBarColor()