Package gov.nasa.worldwind.util.tree
Interface FrameAttributes
- 
- All Known Implementing Classes:
- BasicFrameAttributes
 
 public interface FrameAttributesAttributes to control how aScrollFrameis rendered.- See Also:
- ScrollFrame
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description FrameAttributescopy()Returns a new FrameAttributes instance of the same type as this FrameAttributes, who's properties are configured exactly as this FrameAttributes.voidcopy(FrameAttributes attributes)Copies the specified FrameAttributes' properties into this object's properties.java.awt.Color[]getBackgroundColor()Get the colors that make up the frame's background gradient.doublegetBackgroundOpacity()Get the opacity of the frame.intgetCornerRadius()Get the radius of the frame corners.java.awt.FontgetFont()Get the font used to render text.java.awt.ColorgetForegroundColor()Get the color of the text in the frame.doublegetForegroundOpacity()Get the opacity of the text and images in the frame.java.awt.DimensiongetIconSize()Get the size of the icon in the frame title bar.intgetIconSpace()Get the amount of space, in pixels, to leave between an icon in the frame and surrounding text and shapes.java.awt.ColorgetMinimizeButtonColor()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.ColorgetTextColor()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.voidsetBackgroundColor(java.awt.Color frameColor1, java.awt.Color frameColor2)Set the colors in the background gradient of the frame.voidsetBackgroundOpacity(double frameOpacity)Set the opacity of the frame.voidsetCornerRadius(int cornerRadius)Set the radius of the frame corners.voidsetFont(java.awt.Font font)Set the font used to render text.voidsetForegroundColor(java.awt.Color color)Set the color of the text in the frame.voidsetForegroundOpacity(double textOpacity)Set the opacity of the frame text and images.voidsetIconSize(java.awt.Dimension size)Set the size of each icon in the frame title bar.voidsetIconSpace(int iconSpace)Set the amount of space, in pixels, to leave between an icon in the frame and surrounding text and shapes.voidsetMinimizeButtonColor(java.awt.Color color)Set the color of the minimize button drawn in the upper right corner of the frame.voidsetScrollBarColor(java.awt.Color color1, java.awt.Color color2)Set the colors in the scroll bar gradient.voidsetTextColor(java.awt.Color color)Set the color of the text in the frame title bar.voidsetTitleBarColor(java.awt.Color color1, java.awt.Color color2)Set the colors in the title bar gradient.
 
- 
- 
- 
Method Detail- 
copyFrameAttributes copy() Returns a new FrameAttributes instance of the same type as this FrameAttributes, who's properties are configured exactly as this FrameAttributes.- Returns:
- a copy of this FrameAttributes.
 
 - 
copyvoid copy(FrameAttributes attributes) Copies the specified FrameAttributes' properties into this object's properties. This does nothing if the specified attributes is null.- Parameters:
- attributes- the attributes to copy.
 
 - 
getForegroundColorjava.awt.Color getForegroundColor() Get the color of the text in the frame.- Returns:
- The foreground color.
- See Also:
- setForegroundColor(java.awt.Color)
 
 - 
setForegroundColorvoid setForegroundColor(java.awt.Color color) Set the color of the text in the frame.- Parameters:
- color- New foreground color.
- See Also:
- getForegroundColor()
 
 - 
getFontjava.awt.Font getFont() Get the font used to render text.- Returns:
- frame font.
- See Also:
- setFont(java.awt.Font)
 
 - 
setFontvoid setFont(java.awt.Font font) Set the font used to render text.- Parameters:
- font- New frame font.
- See Also:
- getFont()
 
 - 
getTextColorjava.awt.Color getTextColor() Get the color of the text in the frame title bar.- Returns:
- The color of text in the tree frame.
 
 - 
setTextColorvoid setTextColor(java.awt.Color color) Set the color of the text in the frame title bar.- Parameters:
- color- The new color of text in the tree frame.
 
 - 
getIconSizejava.awt.Dimension getIconSize() Get the size of the icon in the frame title bar.- Returns:
- Icon size.
- See Also:
- setIconSize(java.awt.Dimension)
 
 - 
setIconSizevoid setIconSize(java.awt.Dimension size) Set the size of each icon in the frame title bar.- Parameters:
- size- New size.
- See Also:
- getIconSize()
 
 - 
getIconSpaceint getIconSpace() Get the amount of space, in pixels, to leave between an icon in the frame and surrounding text and shapes.- Returns:
- Icon space in pixels.
- See Also:
- setIconSpace(int)
 
 - 
setIconSpacevoid setIconSpace(int iconSpace) Set the amount of space, in pixels, to leave between an icon in the frame and surrounding text and shapes.- Parameters:
- iconSpace- Icon space in pixels.
- See Also:
- getIconSpace()
 
 - 
getForegroundOpacitydouble getForegroundOpacity() Get the opacity of the text and images in the frame.- Returns:
- Opacity of text and images.
- See Also:
- setForegroundOpacity(double),- getBackgroundOpacity()
 
 - 
setForegroundOpacityvoid setForegroundOpacity(double textOpacity) Set the opacity of the frame text and images.- Parameters:
- textOpacity- New opacity.
- See Also:
- getForegroundOpacity(),- setBackgroundOpacity(double)
 
 - 
getBackgroundOpacitydouble getBackgroundOpacity() Get the opacity of the frame.- Returns:
- Frame opacity.
- See Also:
- setBackgroundOpacity(double)
 
 - 
setBackgroundOpacityvoid setBackgroundOpacity(double frameOpacity) Set the opacity of the frame.- Parameters:
- frameOpacity- New frame opacity.
- See Also:
- getBackgroundOpacity()
 
 - 
getBackgroundColorjava.awt.Color[] getBackgroundColor() Get the colors that make up the frame's background gradient.- Returns:
- Two element array containing the colors in the background gradient.
- See Also:
- setBackgroundColor(java.awt.Color, java.awt.Color)
 
 - 
setBackgroundColorvoid setBackgroundColor(java.awt.Color frameColor1, java.awt.Color frameColor2)Set the colors in the background gradient of the frame.- Parameters:
- frameColor1- First color in frame gradient.
- frameColor2- Second color in frame gradient.
- See Also:
- getBackgroundColor()
 
 - 
getTitleBarColorjava.awt.Color[] getTitleBarColor() Get the colors that make up the frame's title bar gradient.- Returns:
- Two element array containing the colors in the title bar gradient.
- See Also:
- setTitleBarColor(java.awt.Color, java.awt.Color)
 
 - 
setTitleBarColorvoid setTitleBarColor(java.awt.Color color1, java.awt.Color color2)Set the colors in the title bar gradient.- Parameters:
- color1- First color in the title bar gradient.
- color2- Second color in the title bar gradient.
- See Also:
- getTitleBarColor()
 
 - 
getScrollBarColorjava.awt.Color[] getScrollBarColor() Get the colors used to draw the frame's scroll bars.- Returns:
- Two element array containing the colors in the scroll bar gradient.
- See Also:
- setScrollBarColor(java.awt.Color, java.awt.Color)
 
 - 
setScrollBarColorvoid setScrollBarColor(java.awt.Color color1, java.awt.Color color2)Set the colors in the scroll bar gradient.- Parameters:
- color1- First color in the scroll bar gradient.
- color2- Second color in the scroll bar gradient.
- See Also:
- getScrollBarColor()
 
 - 
getMinimizeButtonColorjava.awt.Color getMinimizeButtonColor() Get the color of the minimize button drawn in the upper right corner of the frame.- Returns:
- Color of the minimize button.
 
 - 
setMinimizeButtonColorvoid setMinimizeButtonColor(java.awt.Color color) Set the color of the minimize button drawn in the upper right corner of the frame.- Parameters:
- color- Color of the minimize button.
 
 - 
getCornerRadiusint getCornerRadius() Get the radius of the frame corners. A value ofzeromeans square corners.- Returns:
- The radius of the frame corners, in pixels.
 
 - 
setCornerRadiusvoid setCornerRadius(int cornerRadius) Set the radius of the frame corners.- Parameters:
- cornerRadius- New radius, in pixels. A value of- zeromeans square corners.
 
 
- 
 
-