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
-
compHeight
-
-
compPos
-
-
compWidth
-
-
depressed
-
-
FLUSH
-
-
height
-
-
lineWidth
-
-
MOMENTARY
-
-
mouseOver
-
-
NO_WRAP
-
-
padWidth
-
-
STANDARD
-
-
TOGGLE
-
-
width
-
-
WRAP
-
-
ButtonBase()
-
-
ButtonBase(Component)
-
-
ButtonBase(Component, int, int)
-
-
ButtonBase(int)
-
-
action()
-
-
addComponent(Component)
-
-
isDepressed()
- Returns state of button up/down
-
minimumSize()
- minimumSize - returns the minimum size of the button base
This function must be called by any class that subclasses
the ButtonBase class
-
mouseDown(Event, int, int)
-
-
mouseDrag(Event, int, int)
-
-
mouseEnter(Event, int, int)
-
-
mouseExit(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
paint(Graphics)
-
-
preferredSize()
-
-
reshape(int, int, int, int)
-
-
setButton(boolean)
- Set the state of the button up/down
-
setButtonBevel(int)
- Set the width of the button bevel
-
setPadWidth(int)
- Set the distance between border edge and component edge
-
setStyle(int)
- Set the style of the button (STANDARD or FLUSH)
-
setType(int)
- Set the type of the button (MOMENTARY or TOGGLE)
-
update(Graphics)
-
STANDARD
public static final int STANDARD
FLUSH
public static final int FLUSH
MOMENTARY
public static final int MOMENTARY
TOGGLE
public static final int TOGGLE
WRAP
public static final int WRAP
NO_WRAP
public static final int NO_WRAP
compPos
protected Point compPos
width
protected int width
height
protected int height
compHeight
protected int compHeight
compWidth
protected int compWidth
depressed
protected boolean depressed
mouseOver
protected boolean mouseOver
lineWidth
protected int lineWidth
padWidth
protected int padWidth
ButtonBase
public ButtonBase()
ButtonBase
public ButtonBase(Component c)
ButtonBase
public ButtonBase(int t)
ButtonBase
public ButtonBase(Component c,
int s,
int t)
addComponent
public void addComponent(Component c)
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
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Container
isDepressed
public boolean isDepressed()
- Returns state of button up/down
- Returns:
- boolean - state of button
setButton
public void setButton(boolean b)
- Set the state of the button up/down
- Parameters:
- b - - state of button
setStyle
public void setStyle(int s)
- Set the style of the button (STANDARD or FLUSH)
- Parameters:
- s - - style type
setType
public void setType(int t)
- Set the type of the button (MOMENTARY or TOGGLE)
- Parameters:
- t - - type of button
setButtonBevel
public void setButtonBevel(int w)
- Set the width of the button bevel
- Parameters:
- w - - width of bevel
setPadWidth
public void setPadWidth(int w)
- Set the distance between border edge and component edge
- Parameters:
- w - - width of pad
reshape
public synchronized void reshape(int x,
int y,
int w,
int h)
- Overrides:
- reshape in class Component
update
public void update(Graphics g)
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
mouseEnter
public boolean mouseEnter(Event e,
int x,
int y)
- Overrides:
- mouseEnter in class Component
mouseExit
public boolean mouseExit(Event e,
int x,
int y)
- Overrides:
- mouseExit in class Component
mouseDown
public boolean mouseDown(Event e,
int x,
int y)
- Overrides:
- mouseDown in class Component
mouseDrag
public boolean mouseDrag(Event e,
int x,
int y)
- Overrides:
- mouseDrag in class Component
mouseUp
public boolean mouseUp(Event evt,
int x,
int y)
- Overrides:
- mouseUp in class Component
action
public void action()
All Packages Class Hierarchy This Package Previous Next Index