All Packages Class Hierarchy This Package Previous Next Index
Class vlc.ui.component.SlideBar
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----vlc.ui.component.SlideBar
- public class SlideBar
- extends Canvas
-
canvasHeight
-
-
canvasWidth
-
-
clipRect
-
-
delta
-
-
depressed
-
-
f
-
-
fm
-
-
font
-
-
gInMemory
-
-
HORIZ_SCROLL
-
-
imgInMemory
-
-
maxVal
-
-
minVal
-
-
offset
-
-
oldRect
-
-
r
-
-
reScale
-
-
scrollH
-
-
scrollPos
-
-
scrollW
-
-
scrollX
-
-
showValue
-
-
slideD
-
-
slideDistance
-
-
slideX
-
-
staticHeight
-
-
value
-
-
VERT_SCROLL
-
-
xPos
-
-
yPos
-
-
SlideBar(int, int)
-
-
SlideBar(int, int, int, int, int, int, boolean)
-
-
action()
-
-
calcValue(int)
- Recalculates 'value' based on current value and distance moved by mouse.
-
getLength()
-
-
getValue()
- Returns the current value of the scroll bar
-
minimumSize()
-
-
mouseDown(Event, int, int)
-
-
mouseDrag(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
paint(Graphics)
-
-
preferredSize()
-
-
reshape(int, int, int, int)
-
-
setValue(int)
- Used to set the internal value of the scroll bar.
-
update(Graphics)
- Overide Update to reduce flicker in scrolling
VERT_SCROLL
public final int VERT_SCROLL
HORIZ_SCROLL
public final int HORIZ_SCROLL
scrollPos
protected int scrollPos
imgInMemory
protected Image imgInMemory
gInMemory
protected Graphics gInMemory
font
protected Font font
fm
protected FontMetrics fm
canvasWidth
protected int canvasWidth
canvasHeight
protected int canvasHeight
staticHeight
protected int staticHeight
slideDistance
protected int slideDistance
slideX
protected int slideX
slideD
protected int slideD
scrollX
protected int scrollX
scrollH
protected int scrollH
scrollW
protected int scrollW
xPos
protected int xPos
yPos
protected int yPos
minVal
protected int minVal
maxVal
protected int maxVal
f
protected Font f
value
protected int value
depressed
protected boolean depressed
showValue
protected boolean showValue
offset
protected int offset
r
protected Rectangle r
clipRect
protected Rectangle clipRect
oldRect
protected Rectangle oldRect
delta
protected int delta
reScale
protected boolean reScale
SlideBar
public SlideBar(int min,
int max)
SlideBar
public SlideBar(int min,
int max,
int x,
int y,
int l,
int pos,
boolean sValue)
reshape
public synchronized void reshape(int x,
int y,
int w,
int h)
- Overrides:
- reshape in class Component
calcValue
protected void calcValue(int d)
- Recalculates 'value' based on current value and distance moved by mouse.
Is used by both horizontal and vertical scrollbars.
setValue
public void setValue(int val)
- Used to set the internal value of the scroll bar. Automatically redraws display
to represent new value
getValue
public int getValue()
- Returns the current value of the scroll bar
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Component
getLength
public int getLength()
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Canvas
update
public void update(Graphics g)
- Overide Update to reduce flicker in scrolling
- Overrides:
- update 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