public interface FrameAttributes
ScrollFrame is rendered.ScrollFrame| Modifier and Type | Method and Description |
|---|---|
FrameAttributes |
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.
|
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.
|
Font |
getFont()
Get the font used to render text.
|
Color |
getForegroundColor()
Get the color of the text in the frame.
|
double |
getForegroundOpacity()
Get the opacity of the text and images in the frame.
|
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.
|
Color |
getMinimizeButtonColor()
Get the color of the minimize button drawn in the upper right corner of the frame.
|
Color[] |
getScrollBarColor()
Get the colors used to draw the frame's scroll bars.
|
Color |
getTextColor()
Get the color of the text in the frame title bar.
|
Color[] |
getTitleBarColor()
Get the colors that make up the frame's title bar gradient.
|
void |
setBackgroundColor(Color frameColor1,
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(Font font)
Set the font used to render text.
|
void |
setForegroundColor(Color color)
Set the color of the text in the frame.
|
void |
setForegroundOpacity(double textOpacity)
Set the opacity of the frame text and images.
|
void |
setIconSize(Dimension size)
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(Color color)
Set the color of the minimize button drawn in the upper right corner of the frame.
|
void |
setScrollBarColor(Color color1,
Color color2)
Set the colors in the scroll bar gradient.
|
void |
setTextColor(Color color)
Set the color of the text in the frame title bar.
|
void |
setTitleBarColor(Color color1,
Color color2)
Set the colors in the title bar gradient.
|
FrameAttributes copy()
void copy(FrameAttributes attributes)
attributes - the attributes to copy.Color[] getBackgroundColor()
setBackgroundColor(java.awt.Color, java.awt.Color)double getBackgroundOpacity()
setBackgroundOpacity(double)int getCornerRadius()
zero means square corners.Font getFont()
setFont(java.awt.Font)Color getForegroundColor()
setForegroundColor(java.awt.Color)double getForegroundOpacity()
setForegroundOpacity(double),
getBackgroundOpacity()Dimension getIconSize()
setIconSize(java.awt.Dimension)int getIconSpace()
setIconSpace(int)Color getMinimizeButtonColor()
Color[] getScrollBarColor()
setScrollBarColor(java.awt.Color, java.awt.Color)Color getTextColor()
Color[] getTitleBarColor()
setTitleBarColor(java.awt.Color, java.awt.Color)void setBackgroundColor(Color frameColor1, Color frameColor2)
frameColor1 - First color in frame gradient.frameColor2 - Second color in frame gradient.getBackgroundColor()void setBackgroundOpacity(double frameOpacity)
frameOpacity - New frame opacity.getBackgroundOpacity()void setCornerRadius(int cornerRadius)
cornerRadius - New radius, in pixels. A value of zero means square corners.void setFont(Font font)
font - New frame font.getFont()void setForegroundColor(Color color)
color - New foreground color.getForegroundColor()void setForegroundOpacity(double textOpacity)
textOpacity - New opacity.getForegroundOpacity(),
setBackgroundOpacity(double)void setIconSize(Dimension size)
size - New size.getIconSize()void setIconSpace(int iconSpace)
iconSpace - Icon space in pixels.getIconSpace()void setMinimizeButtonColor(Color color)
color - Color of the minimize button.void setScrollBarColor(Color color1, Color color2)
color1 - First color in the scroll bar gradient.color2 - Second color in the scroll bar gradient.getScrollBarColor()void setTextColor(Color color)
color - The new color of text in the tree frame.void setTitleBarColor(Color color1, Color color2)
color1 - First color in the title bar gradient.color2 - Second color in the title bar gradient.getTitleBarColor()