All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fr.l2f.gui.LabelButton

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

public class LabelButton
extends Component
implements MouseListener

Variable Index

 o ENTERED
 o PRESSED
 o RELEASED

Constructor Index

 o LabelButton()
Construct a new LabelButton
 o LabelButton(String)
Construct a new LabelButton object with a given label

Method Index

 o addActionListener(ActionListener)
The specified ActionListeners actionPerformed method will be called each time the button is clicked.
 o fireAction()
This method has the same effect as pressing the button.
 o getFontSize()
Return the current font point size.
 o getGrFont()
 o getLabel()
Returns the buttons label.
 o getMinimumSize()
 o getPreferredSize()
 o getState()
Get the state of the button
 o minimumSize()
Deprecated.
 o mouseClicked(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics)
 o preferredSize()
Deprecated.
 o removeActionListener(ActionListener)
Remove this ActionListener from the buttons internal list.
 o setColor(Color)
 o setFont(Font)
 o setFontSize(int)
Set the point size of the current font.
 o setGrFont(GraphicFont)
 o setLabel(String)
Set the buttons label and change it's size to fit.
 o setState(int)
Change the state of the button

Variables

 o RELEASED
 public static final int RELEASED
 o PRESSED
 public static final int PRESSED
 o ENTERED
 public static final int ENTERED

Constructors

 o LabelButton
 public LabelButton()
Construct a new LabelButton

 o LabelButton
 public LabelButton(String t)
Construct a new LabelButton object with a given label

Methods

 o setState
 public void setState(int state)
Change the state of the button

 o getState
 public int getState()
Get the state of the button

 o setGrFont
 public void setGrFont(GraphicFont f)
 o getGrFont
 public GraphicFont getGrFont()
 o setFont
 public void setFont(Font f)
Overrides:
setFont in class Component
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Component
 o mouseClicked
 public void mouseClicked(MouseEvent evt)
 o mousePressed
 public void mousePressed(MouseEvent evt)
 o mouseReleased
 public void mouseReleased(MouseEvent evt)
 o mouseEntered
 public void mouseEntered(MouseEvent evt)
 o mouseExited
 public void mouseExited(MouseEvent evt)
 o addActionListener
 public synchronized void addActionListener(ActionListener l)
The specified ActionListeners actionPerformed method will be called each time the button is clicked. The ActionListener object is added to a list of ActionListeners managed by this button, it can be removed with removeActionListener. Note: the JavaBeans specification does not require ActionListeners to run in any particular order.

Parameters:
l - the ActionListener
See Also:
removeActionListener
 o removeActionListener
 public synchronized void removeActionListener(ActionListener l)
Remove this ActionListener from the buttons internal list. If the ActionListener isn't on the list, silently do nothing.

Parameters:
l - the ActionListener
See Also:
addActionListener
 o fireAction
 public void fireAction()
This method has the same effect as pressing the button.

See Also:
addActionListener
 o setFontSize
 public void setFontSize(int x)
Set the point size of the current font. This is a bound property.

 o getFontSize
 public int getFontSize()
Return the current font point size.

 o setLabel
 public void setLabel(String newLabel)
Set the buttons label and change it's size to fit. This is a bound property.

 o getLabel
 public String getLabel()
Returns the buttons label.

 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component
 o preferredSize
 public Dimension preferredSize()
Note: preferredSize() is deprecated. provided for backward compatibility with old layout managers.

Overrides:
preferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component
 o minimumSize
 public Dimension minimumSize()
Note: minimumSize() is deprecated. provided for backward compatibility with old layout managers.

Overrides:
minimumSize in class Component
 o setColor
 public void setColor(Color c)

All Packages  Class Hierarchy  This Package  Previous  Next  Index