Class MEXButton

Class MEXButton

java.lang.Object
   |
   +----Button
           |
           +----MEXButton

class MEXButton
extends Button
MEXButton is the class of mutual exclusive buttons.
See Also:
MEXButtonList

Constructor Index

 o MEXButton(MEXButtonList, MEXButton, int, String, int, int, int, int, Font, Font)
Creates an mutual exclusive button.

Method Index

 o ClearChoosed()
Set this MEXButton to an unselected button.
 o IsChoosed()
Is this button the selected button?
 o NextMEX()
Get the next MEXButton.
 o SetChoosed()
Set this MEXButton to the selected button.
 o drawButton(Graphics)
 o mouseUpButton(int, int)

Constructors

 o MEXButton
  public MEXButton(MEXButtonList father,
                   MEXButton brother,
                   int bnum,
                   String l,
                   int x,
                   int y,
                   int w,
                   int h,
                   Font f,
                   Font cfnt)
Creates an mutual exclusive button. Will be called only from within the MEXButtonList class.
Parameters:
father - MEXButtonList head
brother - previsious MEXButton
bnum - id-number for the button
l - label
x - x-ccordinate of the button
y - y-coordinate of the button
w - the size().width
h - the size().height
f - the font used for the label
cfnt - the font used for the selected label

Methods

 o SetChoosed
  public void SetChoosed()
Set this MEXButton to the selected button. Will be called only via class MEXButtonList. Don't call this function directly.
 o ClearChoosed
  public void ClearChoosed()
Set this MEXButton to an unselected button. Will be called only via class MEXButtonList. Don't call this function directly.
 o IsChoosed
  public boolean IsChoosed()
Is this button the selected button?
Returns:
state of this button
 o NextMEX
  public MEXButton NextMEX()
Get the next MEXButton. Will be called only via class MEXButtonList. Don't call this function directly.
Returns:
next MEXButton in the internal list.
 o drawButton
  protected void drawButton(Graphics g)
Overrides:
drawButton in class Button
 o mouseUpButton
  protected boolean mouseUpButton(int x,
                                  int y)
Overrides:
mouseUpButton in class Button