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.
-
INDENT_ONE
- Border Indent constant ONE.
-
INDENT_TWO
- Border Indent constant TWO.
-
INDENT_ZERO
- Border Indent constant ZERO.
-
sLabel3D
- the label
-
Label3D()
- Constructs a Label3D with black colored, left aligned, raised border, initial blank text, ZERO indent
-
Label3D(String)
-
-
Label3D(String, int, int)
- Constructs a Label3D with black text, ZERO indent
-
Label3D(String, int, int, Color)
- Constructs a Label3D with text color specified, ZERO indent
-
Label3D(String, int, int, Color, int)
- Constructs a Label3D with text color specified
-
Label3D(String, int, int, int)
- Constructs a Label3D with default text color
-
getAlignStyle()
- Get the style of the Label3D
-
getBevelStyle()
- Get the style of the Label3D
-
getBorderIndent()
- Get the border indent amount
-
getMinimumSize()
-
-
getPreferredSize()
-
-
getText()
- Set the text of the Label3D after contruction
-
getTextColor()
- Set the color of the Label3D
-
paint(Graphics)
-
-
setAlignStyle(int)
- Set the style of the Label3D
-
setBevelStyle(int)
- Set the style of the Label3D
-
setBorderedColor(Color)
- Set the color for the border of BORDERED style Label3D
-
setBorderIndent(int)
- Set the border indent amount
-
setBounds(int, int, int, int)
-
-
setFillColors(Color, Color)
-
-
setFont(Font)
-
-
setText(String)
- Set the text of the Label3D after contruction
-
setTextColor(Color)
- Set the color of the Label3D
INDENT_ZERO
public static final int INDENT_ZERO
- Border Indent constant ZERO.
INDENT_ONE
public static final int INDENT_ONE
- Border Indent constant ONE.
INDENT_TWO
public static final int INDENT_TWO
- Border Indent constant TWO.
sLabel3D
protected String sLabel3D
- the label
Label3D
public Label3D()
- Constructs a Label3D with black colored, left aligned, raised border, initial blank text, ZERO indent
Label3D
public Label3D(String sText)
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
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
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
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
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
getAlignStyle
public int getAlignStyle()
- Get the style of the Label3D
- Returns:
- the style numeric value indicating Label3D style, such as Label3D.IN + Label3D.CENTERED
setBevelStyle
public void setBevelStyle(int style)
- Set the style of the Label3D
- Parameters:
- style - numeric value indicating Label3D style
getBevelStyle
public int getBevelStyle()
- Get the style of the Label3D
- Returns:
- the style numeric value indicating Label3D style
setBorderIndent
public void setBorderIndent(int indent)
- Set the border indent amount
- Parameters:
- indent - ZERO, ONE or TWO
getBorderIndent
public int getBorderIndent()
- Get the border indent amount
- Returns:
- ZERO, ONE or TWO
setBorderedColor
public void setBorderedColor(Color color)
- Set the color for the border of BORDERED style Label3D
- Parameters:
- color - color to use
setText
public void setText(String sText)
- Set the text of the Label3D after contruction
- Parameters:
- sLabel - text of the Label3D
getText
public String getText()
- Set the text of the Label3D after contruction
- Parameters:
- sLabel - text of the Label3D
setTextColor
public void setTextColor(Color color)
- Set the color of the Label3D
- Parameters:
- color - Color value to set display the text
getTextColor
public Color getTextColor()
- Set the color of the Label3D
- Parameters:
- color - Color value to set display the text
setFont
public void setFont(Font f)
- Overrides:
- setFont in class Component
setFillColors
public void setFillColors(Color c1,
Color c2)
paint
public void paint(Graphics g)
- Overrides:
- paint in class Component
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Component
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Component
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