TLcdTextIcon
for an implementation that supports multiple linespublic class TLcdMessageIcon extends Object implements ILcdIcon
ILcdIcon
implementation that displays
a message in a box. This class is useful to display
messages on a ILcdGXYView
with
ILcdGXYView.putCornerIcon(com.luciad.gui.ILcdIcon, int)
, e.g.
while loading data into the view.Constructor and Description |
---|
TLcdMessageIcon()
Deprecated.
Creates a message icon with an empty message.
|
TLcdMessageIcon(String aMessage)
Deprecated.
Creates a message icon with the given message.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
Returns a
TLcdMessageIcon with an
empty message. |
Color |
getBackground()
Deprecated.
Gets the fill color of the box.
|
Font |
getFont()
Deprecated.
Gets the font the message is displayed in.
|
Color |
getForeground()
Deprecated.
Gets the font color for the message.
|
int |
getHeight()
Deprecated.
Gets the height of the icon.
|
int |
getIconHeight()
Deprecated.
Returns the fixed height of the icon.
|
int |
getIconWidth()
Deprecated.
Returns the fixed width of the icon.
|
int |
getWidth()
Deprecated.
Gets the width of the icon.
|
boolean |
isAntiAliasing()
Deprecated.
Returns whether to use anti-aliasing when painting.
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Deprecated.
Draw the
ILcdIcon at the specified location. |
void |
setAntiAliasing(boolean aAntiAliasing)
Deprecated.
Sets whether to use anti-aliasing when painting.
|
void |
setBackground(Color aColor)
Deprecated.
Sets the fill color for the box.
|
void |
setFont(Font aFont)
Deprecated.
Sets the font the message will be displayed in.
|
void |
setForeground(Color aColor)
Deprecated.
Gets the font color for the message.
|
void |
setHeight(int aHeight)
Deprecated.
Sets the height of the icon.
|
void |
setWidth(int aWidth)
Deprecated.
Sets the width of the icon.
|
public TLcdMessageIcon()
public TLcdMessageIcon(String aMessage)
aMessage
- the message to display in the icon.public void setBackground(Color aColor)
aColor
- the color to use to fill the backgroundgetBackground()
public Color getForeground()
setForeground(java.awt.Color)
public void setForeground(Color aColor)
aColor
- the font color for the message.getForeground()
public Font getFont()
setFont(java.awt.Font)
public void setFont(Font aFont)
aFont
- the font the message will be displayed in.getFont()
public int getWidth()
setWidth(int)
public void setWidth(int aWidth)
aWidth
- the width of the icon.getWidth()
public int getHeight()
setHeight(int)
public void setHeight(int aHeight)
aHeight
- the height of the icon.getHeight()
public Color getBackground()
setBackground(java.awt.Color)
public boolean isAntiAliasing()
setAntiAliasing(boolean)
public void setAntiAliasing(boolean aAntiAliasing)
aAntiAliasing
- if true
, uses anti-aliasing when paintingisAntiAliasing()
public void paintIcon(Component c, Graphics g, int x, int y)
ILcdIcon
ILcdIcon
at the specified location. ILcdIcon
implementations
may use the Component
argument to get properties useful for
painting, e.g. the foreground or background color.paintIcon
in interface ILcdIcon
c
- a Component to retrieve properties from.g
- the Graphics on which the icon will be painted.x
- the x position where the icon will be painted. x is the first coordinate of the top left
corner point of the icon.y
- the y position where the icon will be painted. y is the second coordinate of the top left
corner point of the icon.public int getIconWidth()
ILcdIcon
getIconWidth
in interface ILcdIcon
public int getIconHeight()
ILcdIcon
getIconHeight
in interface ILcdIcon
public Object clone()
TLcdMessageIcon
with an
empty message.clone
in interface ILcdCloneable
clone
in class Object
TLcdMessageIcon
with an
empty message.Object.clone()