All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fr.l2f.gui.Label3D

java.lang.Object
   |
   +----java.awt.Component
           |
           +----fr.l2f.gui.Label3D

public class Label3D
extends Component
implements AlignStyle, BevelStyle
Label3D component.


Variable Index

 o INDENT_ONE
Border Indent constant ONE.
 o INDENT_TWO
Border Indent constant TWO.
 o INDENT_ZERO
Border Indent constant ZERO.
 o sLabel3D
the label

Constructor Index

 o Label3D()
Constructs a Label3D with black colored, left aligned, raised border, initial blank text, ZERO indent
 o Label3D(String)
 o Label3D(String, int, int)
Constructs a Label3D with black text, ZERO indent
 o Label3D(String, int, int, Color)
Constructs a Label3D with text color specified, ZERO indent
 o Label3D(String, int, int, Color, int)
Constructs a Label3D with text color specified
 o Label3D(String, int, int, int)
Constructs a Label3D with default text color

Method Index

 o getAlignStyle()
Get the style of the Label3D
 o getBevelStyle()
Get the style of the Label3D
 o getBorderIndent()
Get the border indent amount
 o getMinimumSize()
 o getPreferredSize()
 o getText()
Set the text of the Label3D after contruction
 o getTextColor()
Set the color of the Label3D
 o paint(Graphics)
 o setAlignStyle(int)
Set the style of the Label3D
 o setBevelStyle(int)
Set the style of the Label3D
 o setBorderedColor(Color)
Set the color for the border of BORDERED style Label3D
 o setBorderIndent(int)
Set the border indent amount
 o setBounds(int, int, int, int)
 o setFillColors(Color, Color)
 o setFont(Font)
 o setText(String)
Set the text of the Label3D after contruction
 o setTextColor(Color)
Set the color of the Label3D

Variables

 o INDENT_ZERO
 public static final int INDENT_ZERO
Border Indent constant ZERO.

 o INDENT_ONE
 public static final int INDENT_ONE
Border Indent constant ONE.

 o INDENT_TWO
 public static final int INDENT_TWO
Border Indent constant TWO.

 o sLabel3D
 protected String sLabel3D
the label

Constructors

 o Label3D
 public Label3D()
Constructs a Label3D with black colored, left aligned, raised border, initial blank text, ZERO indent

 o Label3D
 public Label3D(String sText)
 o Label3D
 public Label3D(String sText,
                int alignStyle,
                int bevelStyle)
Constructs a Label3D with black text, ZERO indent

Parameters:
sText - text of the Label3D
style - numeric value indicating Label3D style, such as Label3D.IN + Label3D.CENTERED
 o Label3D
 public Label3D(String sText,
                int alignStyle,
                int bevelStyle,
                Color color)
Constructs a Label3D with text color specified, ZERO indent

Parameters:
sText - text of the Label3D
style - numeric value indicating Label3D style, such as Label3D.IN + Label3D.CENTERED
color - Color value to set display the text
 o Label3D
 public Label3D(String sText,
                int alignStyle,
                int bevelStyle,
                int indent)
Constructs a Label3D with default text color

Parameters:
sText - text of the Label3D
style - numeric value indicating Label3D style, such as Label3D.RAISED + Label3D.CENTERED
indent - border indent ZERO, ONE, TWO
 o Label3D
 public Label3D(String sText,
                int alignStyle,
                int bevelStyle,
                Color color,
                int indent)
Constructs a Label3D with text color specified

Parameters:
sText - text of the Label3D
alignStyle - numeric value indicating Label3D alignment style
bevelStyle - numeric value indicating Label3D bevel style
color - Color value to set display the text
indent - border indent ZERO, ONE, TWO

Methods

 o setAlignStyle
 public void setAlignStyle(int style)
Set the style of the Label3D

Parameters:
style - numeric value indicating Label3D style, such as Label3D.IN + Label3D.CENTERED
 o getAlignStyle
 public int getAlignStyle()
Get the style of the Label3D

Returns:
the style numeric value indicating Label3D style, such as Label3D.IN + Label3D.CENTERED
 o setBevelStyle
 public void setBevelStyle(int style)
Set the style of the Label3D

Parameters:
style - numeric value indicating Label3D style
 o getBevelStyle
 public int getBevelStyle()
Get the style of the Label3D

Returns:
the style numeric value indicating Label3D style
 o setBorderIndent
 public void setBorderIndent(int indent)
Set the border indent amount

Parameters:
indent - ZERO, ONE or TWO
 o getBorderIndent
 public int getBorderIndent()
Get the border indent amount

Returns:
ZERO, ONE or TWO
 o setBorderedColor
 public void setBorderedColor(Color color)
Set the color for the border of BORDERED style Label3D

Parameters:
color - color to use
 o setText
 public void setText(String sText)
Set the text of the Label3D after contruction

Parameters:
sLabel - text of the Label3D
 o getText
 public String getText()
Set the text of the Label3D after contruction

Parameters:
sLabel - text of the Label3D
 o setTextColor
 public void setTextColor(Color color)
Set the color of the Label3D

Parameters:
color - Color value to set display the text
 o getTextColor
 public Color getTextColor()
Set the color of the Label3D

Parameters:
color - Color value to set display the text
 o setFont
 public void setFont(Font f)
Overrides:
setFont in class Component
 o setFillColors
 public void setFillColors(Color c1,
                           Color c2)
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Component
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component
 o setBounds
 public synchronized void setBounds(int x,
                                    int y,
                                    int width,
                                    int height)
Overrides:
setBounds in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index