@Deprecated public class IltTextPalette extends Object
It consists of:
null
for no background.
Constructor and Description |
---|
IltTextPalette(Font font,
Color foreground)
Deprecated.
Creates a new text palette, with no background.
|
IltTextPalette(Font font,
Color foreground,
Color background)
Deprecated.
Creates a new text palette, with colored background.
|
IltTextPalette(Font font,
Color foreground,
Color background,
boolean antialiasing)
Deprecated.
Creates a new text palette, with colored background, and possibly anti-aliasing.
|
Modifier and Type | Method and Description |
---|---|
Color |
getBackground()
Deprecated.
Returns the background color.
|
Font |
getFont()
Deprecated.
Returns the text font.
|
Color |
getForeground()
Deprecated.
Returns the foreground color.
|
boolean |
isAntialiasing()
Deprecated.
Returns
true if anti-aliasing is enabled. |
static IltTextPalette |
NewTextPalette(Font font,
Color foreground)
Deprecated.
Returns a new text palette.
|
static IltTextPalette |
NewTextPalette(Font font,
Color foreground,
Color background)
Deprecated.
Returns a new text palette with background.
|
static IltTextPalette |
NewTextPalette(Font font,
Color foreground,
Color background,
boolean antialiasing)
Deprecated.
Returns a new text palette with background and possibly anti-aliasing.
|
void |
setAntialiasing(boolean set)
Deprecated.
Specifies whether anti-aliasing is enabled.
|
void |
setBackground(Color background)
Deprecated.
Sets the background color.
|
void |
setFont(Font font)
Deprecated.
Sets the text font.
|
void |
setForeground(Color foreground)
Deprecated.
Sets the foreground color.
|
String |
toString()
Deprecated.
Converts the object into a human-readable format.
|
public IltTextPalette(Font font, Color foreground)
public IltTextPalette(Font font, Color foreground, Color background)
public Font getFont()
public void setFont(Font font)
public Color getForeground()
public void setForeground(Color foreground)
public Color getBackground()
public void setBackground(Color background)
public boolean isAntialiasing()
true
if anti-aliasing is enabled.public void setAntialiasing(boolean set)
public String toString()
public static IltTextPalette NewTextPalette(Font font, Color foreground)
font
- A font.foreground
- A color for drawing the text.public static IltTextPalette NewTextPalette(Font font, Color foreground, Color background)
font
- A font.foreground
- A color for drawing the text.background
- A color for drawing a background.public static IltTextPalette NewTextPalette(Font font, Color foreground, Color background, boolean antialiasing)
font
- A font.foreground
- A color for drawing the text.background
- A color for drawing a background.antialiasing
- Specifies whether anti-aliasing will be used.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.