net.xoetrope.swing.painter
Interface XTitlePainter

All Superinterfaces:
Painter
All Known Implementing Classes:
XGradientBackground, XLogoBackground

public interface XTitlePainter
extends Painter

An interface that allows an XPainter class to be added to paint part of a component. The interface specifies some extra methods to support various paint operations.

Copyright (c) Xoetrope Ltd., 2002-2004

License: see license.txt

$Revision: 2.3 $


Field Summary
static int BOTTOM
           
static int LEFT
           
static int RIGHT
           
static int TOP
           
 
Method Summary
 void setBlend(boolean b)
          Set the blend flag.
 void setTitle(java.lang.String text)
          Set the title text
 void setTitleColor(java.awt.Color c)
          Set the title/underline color
 void setTitleFont(java.awt.Font f)
          Set the title font
 void setTitlePosition(int pos)
          Set the title position
 void setTitleTextColor(java.awt.Color c)
          Set the title/underline text color
 
Methods inherited from interface org.jdesktop.swingx.painter.Painter
paint
 

Field Detail

TOP

static final int TOP
See Also:
Constant Field Values

BOTTOM

static final int BOTTOM
See Also:
Constant Field Values

LEFT

static final int LEFT
See Also:
Constant Field Values

RIGHT

static final int RIGHT
See Also:
Constant Field Values
Method Detail

setBlend

void setBlend(boolean b)
Set the blend flag.

Parameters:
b - true to blend into the parent space so that siblings panels for a single painted area, false to paint just this area without regard to other areas

setTitle

void setTitle(java.lang.String text)
Set the title text

Parameters:
text - the new title

setTitleColor

void setTitleColor(java.awt.Color c)
Set the title/underline color

Parameters:
c - the color

setTitleTextColor

void setTitleTextColor(java.awt.Color c)
Set the title/underline text color

Parameters:
c - the color

setTitleFont

void setTitleFont(java.awt.Font f)
Set the title font

Parameters:
f - the font

setTitlePosition

void setTitlePosition(int pos)
Set the title position

Parameters:
pos - the title position