All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.ui.component.ButtonBase

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----vlc.ui.component.ButtonBase

public class ButtonBase
extends Panel

Variable Index

 o compHeight
 o compPos
 o compWidth
 o depressed
 o FLUSH
 o height
 o lineWidth
 o MOMENTARY
 o mouseOver
 o NO_WRAP
 o padWidth
 o STANDARD
 o TOGGLE
 o width
 o WRAP

Constructor Index

 o ButtonBase()
 o ButtonBase(Component)
 o ButtonBase(Component, int, int)
 o ButtonBase(int)

Method Index

 o action()
 o addComponent(Component)
 o isDepressed()
Returns state of button up/down
 o minimumSize()
minimumSize - returns the minimum size of the button base This function must be called by any class that subclasses the ButtonBase class
 o mouseDown(Event, int, int)
 o mouseDrag(Event, int, int)
 o mouseEnter(Event, int, int)
 o mouseExit(Event, int, int)
 o mouseUp(Event, int, int)
 o paint(Graphics)
 o preferredSize()
 o reshape(int, int, int, int)
 o setButton(boolean)
Set the state of the button up/down
 o setButtonBevel(int)
Set the width of the button bevel
 o setPadWidth(int)
Set the distance between border edge and component edge
 o setStyle(int)
Set the style of the button (STANDARD or FLUSH)
 o setType(int)
Set the type of the button (MOMENTARY or TOGGLE)
 o update(Graphics)

Variables

 o STANDARD
 public static final int STANDARD
 o FLUSH
 public static final int FLUSH
 o MOMENTARY
 public static final int MOMENTARY
 o TOGGLE
 public static final int TOGGLE
 o WRAP
 public static final int WRAP
 o NO_WRAP
 public static final int NO_WRAP
 o compPos
 protected Point compPos
 o width
 protected int width
 o height
 protected int height
 o compHeight
 protected int compHeight
 o compWidth
 protected int compWidth
 o depressed
 protected boolean depressed
 o mouseOver
 protected boolean mouseOver
 o lineWidth
 protected int lineWidth
 o padWidth
 protected int padWidth

Constructors

 o ButtonBase
 public ButtonBase()
 o ButtonBase
 public ButtonBase(Component c)
 o ButtonBase
 public ButtonBase(int t)
 o ButtonBase
 public ButtonBase(Component c,
                   int s,
                   int t)

Methods

 o addComponent
 public void addComponent(Component c)
 o minimumSize
 public Dimension minimumSize()
minimumSize - returns the minimum size of the button base This function must be called by any class that subclasses the ButtonBase class

Overrides:
minimumSize in class Container
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Container
 o isDepressed
 public boolean isDepressed()
Returns state of button up/down

Returns:
boolean - state of button
 o setButton
 public void setButton(boolean b)
Set the state of the button up/down

Parameters:
b - - state of button
 o setStyle
 public void setStyle(int s)
Set the style of the button (STANDARD or FLUSH)

Parameters:
s - - style type
 o setType
 public void setType(int t)
Set the type of the button (MOMENTARY or TOGGLE)

Parameters:
t - - type of button
 o setButtonBevel
 public void setButtonBevel(int w)
Set the width of the button bevel

Parameters:
w - - width of bevel
 o setPadWidth
 public void setPadWidth(int w)
Set the distance between border edge and component edge

Parameters:
w - - width of pad
 o reshape
 public synchronized void reshape(int x,
                                  int y,
                                  int w,
                                  int h)
Overrides:
reshape in class Component
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o mouseEnter
 public boolean mouseEnter(Event e,
                           int x,
                           int y)
Overrides:
mouseEnter in class Component
 o mouseExit
 public boolean mouseExit(Event e,
                          int x,
                          int y)
Overrides:
mouseExit in class Component
 o mouseDown
 public boolean mouseDown(Event e,
                          int x,
                          int y)
Overrides:
mouseDown in class Component
 o mouseDrag
 public boolean mouseDrag(Event e,
                          int x,
                          int y)
Overrides:
mouseDrag in class Component
 o mouseUp
 public boolean mouseUp(Event evt,
                        int x,
                        int y)
Overrides:
mouseUp in class Component
 o action
 public void action()

All Packages  Class Hierarchy  This Package  Previous  Next  Index