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

Variable Index

 o canvasHeight
 o canvasWidth
 o clipRect
 o delta
 o depressed
 o f
 o fm
 o font
 o gInMemory
 o HORIZ_SCROLL
 o imgInMemory
 o maxVal
 o minVal
 o offset
 o oldRect
 o r
 o reScale
 o scrollH
 o scrollPos
 o scrollW
 o scrollX
 o showValue
 o slideD
 o slideDistance
 o slideX
 o staticHeight
 o value
 o VERT_SCROLL
 o xPos
 o yPos

Constructor Index

 o SlideBar(int, int)
 o SlideBar(int, int, int, int, int, int, boolean)

Method Index

 o action()
 o calcValue(int)
Recalculates 'value' based on current value and distance moved by mouse.
 o getLength()
 o getValue()
Returns the current value of the scroll bar
 o minimumSize()
 o mouseDown(Event, int, int)
 o mouseDrag(Event, int, int)
 o mouseUp(Event, int, int)
 o paint(Graphics)
 o preferredSize()
 o reshape(int, int, int, int)
 o setValue(int)
Used to set the internal value of the scroll bar.
 o update(Graphics)
Overide Update to reduce flicker in scrolling

Variables

 o VERT_SCROLL
 public final int VERT_SCROLL
 o HORIZ_SCROLL
 public final int HORIZ_SCROLL
 o scrollPos
 protected int scrollPos
 o imgInMemory
 protected Image imgInMemory
 o gInMemory
 protected Graphics gInMemory
 o font
 protected Font font
 o fm
 protected FontMetrics fm
 o canvasWidth
 protected int canvasWidth
 o canvasHeight
 protected int canvasHeight
 o staticHeight
 protected int staticHeight
 o slideDistance
 protected int slideDistance
 o slideX
 protected int slideX
 o slideD
 protected int slideD
 o scrollX
 protected int scrollX
 o scrollH
 protected int scrollH
 o scrollW
 protected int scrollW
 o xPos
 protected int xPos
 o yPos
 protected int yPos
 o minVal
 protected int minVal
 o maxVal
 protected int maxVal
 o f
 protected Font f
 o value
 protected int value
 o depressed
 protected boolean depressed
 o showValue
 protected boolean showValue
 o offset
 protected int offset
 o r
 protected Rectangle r
 o clipRect
 protected Rectangle clipRect
 o oldRect
 protected Rectangle oldRect
 o delta
 protected int delta
 o reScale
 protected boolean reScale

Constructors

 o SlideBar
 public SlideBar(int min,
                 int max)
 o SlideBar
 public SlideBar(int min,
                 int max,
                 int x,
                 int y,
                 int l,
                 int pos,
                 boolean sValue)

Methods

 o reshape
 public synchronized void reshape(int x,
                                  int y,
                                  int w,
                                  int h)
Overrides:
reshape in class Component
 o 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.

 o setValue
 public void setValue(int val)
Used to set the internal value of the scroll bar. Automatically redraws display to represent new value

 o getValue
 public int getValue()
Returns the current value of the scroll bar

 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Component
 o getLength
 public int getLength()
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Component
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Canvas
 o update
 public void update(Graphics g)
Overide Update to reduce flicker in scrolling

Overrides:
update 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