| |
|
| javax.swing.JLabel com.jeta.forms.components.label.JETALabel
JETALabel | public class JETALabel extends JLabel implements Paintable(Code) | | A standard JLabel that also supports anti-aliased fonts as well as background
effects such as a texture or gradient.
author: Jeff Tassin |
Constructor Summary | |
public | JETALabel() Default JETALabel constructor. | public | JETALabel(String txt) Creates a new JETALabel with the specified text. |
Method Summary | |
public boolean | isAntiAliased() Returns if this the text in this label is rendered using an anti-aliased
effect. | public void | paint(Graphics g) Override paint to provide background fill. | public void | paintComponent(Graphics g) Override paintComponent to provide anti-aliased rendering of the label
font. | public void | setAntiAliased(boolean aa) Sets the flag for this label that determines if the text is rendered
using an anti-aliased effect. | public void | setBackgroundPainter(Painter p) Sets the painter responsible for any background fill effect. |
JETALabel | public JETALabel()(Code) | | Default JETALabel constructor.
|
JETALabel | public JETALabel(String txt)(Code) | | Creates a new JETALabel with the specified text.
Parameters: txt - the text to assign to the label. |
isAntiAliased | public boolean isAntiAliased()(Code) | | Returns if this the text in this label is rendered using an anti-aliased
effect.
true if this text in this label is anti-aliased. |
paint | public void paint(Graphics g)(Code) | | Override paint to provide background fill.
Parameters: g - the Graphics context in which to paint |
paintComponent | public void paintComponent(Graphics g)(Code) | | Override paintComponent to provide anti-aliased rendering of the label
font.
Parameters: g - the Graphics context in which to paint |
setAntiAliased | public void setAntiAliased(boolean aa)(Code) | | Sets the flag for this label that determines if the text is rendered
using an anti-aliased effect.
Parameters: aa - set to true if this text in this label should be anti-aliased. |
setBackgroundPainter | public void setBackgroundPainter(Painter p)(Code) | | Sets the painter responsible for any background fill effect.
Parameters: p - the painter to set. |
|
|
|