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
-
ENTERED
-
-
PRESSED
-
-
RELEASED
-
-
LabelButton()
- Construct a new LabelButton
-
LabelButton(String)
- Construct a new LabelButton object with a given label
-
addActionListener(ActionListener)
- The specified ActionListeners actionPerformed method will
be called each time the button is clicked.
-
fireAction()
-
This method has the same effect as pressing the button.
-
getFontSize()
-
Return the current font point size.
-
getGrFont()
-
-
getLabel()
- Returns the buttons label.
-
getMinimumSize()
-
-
getPreferredSize()
-
-
getState()
- Get the state of the button
-
minimumSize()
-
Deprecated.
-
mouseClicked(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
-
paint(Graphics)
-
-
preferredSize()
-
Deprecated.
-
removeActionListener(ActionListener)
-
Remove this ActionListener from the buttons internal list.
-
setColor(Color)
-
-
setFont(Font)
-
-
setFontSize(int)
-
Set the point size of the current font.
-
setGrFont(GraphicFont)
-
-
setLabel(String)
-
Set the buttons label and change it's size to fit.
-
setState(int)
- Change the state of the button
RELEASED
public static final int RELEASED
PRESSED
public static final int PRESSED
ENTERED
public static final int ENTERED
LabelButton
public LabelButton()
- Construct a new LabelButton
LabelButton
public LabelButton(String t)
- Construct a new LabelButton object with a given label
setState
public void setState(int state)
- Change the state of the button
getState
public int getState()
- Get the state of the button
setGrFont
public void setGrFont(GraphicFont f)
getGrFont
public GraphicFont getGrFont()
setFont
public void setFont(Font f)
- Overrides:
- setFont in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Component
mouseClicked
public void mouseClicked(MouseEvent evt)
mousePressed
public void mousePressed(MouseEvent evt)
mouseReleased
public void mouseReleased(MouseEvent evt)
mouseEntered
public void mouseEntered(MouseEvent evt)
mouseExited
public void mouseExited(MouseEvent evt)
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
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
fireAction
public void fireAction()
- This method has the same effect as pressing the button.
- See Also:
- addActionListener
setFontSize
public void setFontSize(int x)
- Set the point size of the current font. This is a bound property.
getFontSize
public int getFontSize()
- Return the current font point size.
setLabel
public void setLabel(String newLabel)
- Set the buttons label and change it's size to fit. This is a
bound property.
getLabel
public String getLabel()
- Returns the buttons label.
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Component
preferredSize
public Dimension preferredSize()
- Note: preferredSize() is deprecated.
provided for backward compatibility with old layout managers.
- Overrides:
- preferredSize in class Component
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Component
minimumSize
public Dimension minimumSize()
- Note: minimumSize() is deprecated.
provided for backward compatibility with old layout managers.
- Overrides:
- minimumSize in class Component
setColor
public void setColor(Color c)
All Packages Class Hierarchy This Package Previous Next Index