All Packages Class Hierarchy This Package Previous Next Index
Class tropo.awt.TRSlider
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----tropo.awt.TRBufferedCanvas
|
+----tropo.awt.TRSlider
- public class TRSlider
- extends TRBufferedCanvas
Slider.
-
debug
-
-
TRSlider()
- Create w/ defaults.
-
TRSlider(int, int)
- Start up a slider w/ the passed range - the current value
will be the min.
-
TRSlider(int, int, int)
- Create a slider w/ the passeed values.
-
disable()
-
-
draw(Graphics)
-
-
drawBar(Graphics, int, int, int, int)
-
-
drawMover(Graphics, int, int, int, int)
-
-
enable()
-
-
getBarHeight()
-
-
getBarWidth()
-
-
getClosenessThreshold()
- Get ..
-
getMaxValue()
- Return the current max value.
-
getMinValue()
- Return the current min value.
-
getMoverColor()
-
-
getMoverHeight()
-
-
getMoverWidth()
- Get the width of the moving mover.
-
getOrientation()
-
-
getValue()
- Return the current value.
-
gotFocus(Event, Object)
- We now have focus.
-
hasFocus()
- Do we have focus?
-
keyDown(Event, int)
- The user has hit a key.
-
lostFocus(Event, Object)
- We lost focus.
-
mouseDown(Event, int, int)
- The mouse is down.
-
mouseDrag(Event, int, int)
- The mouse is dragged.
-
mouseEnter(Event, int, int)
- The mouse enters the component.
-
mouseExit(Event, int, int)
- The mouse leaves the component.
-
mouseMove(Event, int, int)
- The mouse moves.
-
mouseNearBar()
- Is the mouse near the (fixed) bar?
-
mouseNearSlider()
- Is the mouse near the (moving) slider?
-
pixel2Value(int)
- Convert from pixel space to user space.
-
reallyDrawBar(Graphics, int, int, int, int)
-
-
setBarHeight(int)
-
-
setBarWidth(int)
-
-
setClosenessThreshold(int)
- Set...
-
setMoverColor(Color)
-
-
setMoverHeight(int)
-
-
setMoverWidth(int)
- Set the width of the moving mover.
-
setOrientation(TROrientation)
-
-
setSize(int, int)
- Set the size we have to completely fit into..
-
setValue(int)
- Set the current value.
-
toString()
-
-
value2Pixel(int)
- Convert from a user value to a pixel.
debug
public boolean debug
TRSlider
public TRSlider()
- Create w/ defaults.
TRSlider
public TRSlider(int min,
int max)
- Start up a slider w/ the passed range - the current value
will be the min.
TRSlider
public TRSlider(int cur,
int min,
int max)
- Create a slider w/ the passeed values.
setOrientation
public void setOrientation(TROrientation or)
getOrientation
public TROrientation getOrientation()
setMoverWidth
public void setMoverWidth(int xmoverWidth)
- Set the width of the moving mover.
getMoverWidth
public int getMoverWidth()
- Get the width of the moving mover.
setMoverHeight
public void setMoverHeight(int xmoverHeight)
getMoverHeight
public int getMoverHeight()
setBarWidth
public void setBarWidth(int xbarWidth)
getBarWidth
public int getBarWidth()
setBarHeight
public void setBarHeight(int xbarHeight)
getBarHeight
public int getBarHeight()
gotFocus
public boolean gotFocus(Event evt,
Object what)
- We now have focus.
- Overrides:
- gotFocus in class Component
lostFocus
public boolean lostFocus(Event evt,
Object what)
- We lost focus.
- Overrides:
- lostFocus in class Component
hasFocus
public final boolean hasFocus()
- Do we have focus?
setSize
public void setSize(int w,
int h)
- Set the size we have to completely fit into..
- Overrides:
- setSize in class TRBufferedCanvas
keyDown
public boolean keyDown(Event e,
int c)
- The user has hit a key.
- Overrides:
- keyDown in class Component
mouseMove
public boolean mouseMove(Event e,
int x,
int y)
- The mouse moves.
- Overrides:
- mouseMove in class Component
mouseNearBar
public boolean mouseNearBar()
- Is the mouse near the (fixed) bar?
mouseNearSlider
public boolean mouseNearSlider()
- Is the mouse near the (moving) slider?
mouseDrag
public boolean mouseDrag(Event e,
int x,
int y)
- The mouse is dragged.
- Overrides:
- mouseDrag in class Component
mouseDown
public boolean mouseDown(Event e,
int x,
int y)
- The mouse is down.
- Overrides:
- mouseDown in class Component
mouseEnter
public boolean mouseEnter(Event me,
int x,
int y)
- The mouse enters the component.
- Overrides:
- mouseEnter in class Component
mouseExit
public boolean mouseExit(Event me,
int x,
int y)
- The mouse leaves the component.
- Overrides:
- mouseExit in class Component
setClosenessThreshold
public void setClosenessThreshold(int closeness)
- Set...
getClosenessThreshold
public int getClosenessThreshold()
- Get ..
enable
public void enable()
- Overrides:
- enable in class Component
disable
public void disable()
- Overrides:
- disable in class Component
draw
public final void draw(Graphics g)
- Overrides:
- draw in class TRBufferedCanvas
drawBar
protected void drawBar(Graphics g,
int x,
int y,
int w,
int h)
reallyDrawBar
protected void reallyDrawBar(Graphics g,
int x,
int y,
int w,
int h)
drawMover
protected void drawMover(Graphics g,
int x,
int y,
int w,
int h)
setValue
public void setValue(int vv)
- Set the current value.
getValue
public int getValue()
- Return the current value.
getMinValue
public int getMinValue()
- Return the current min value.
getMaxValue
public int getMaxValue()
- Return the current max value.
pixel2Value
public int pixel2Value(int x)
- Convert from pixel space to user space.
- Parameters:
- xPixel - pixel, 0 is start of bar
value2Pixel
public int value2Pixel(int value)
- Convert from a user value to a pixel.
- Parameters:
- user - value, min->0, max->bar width
toString
public String toString()
- Overrides:
- toString in class Component
setMoverColor
public void setMoverColor(Color c)
getMoverColor
public Color getMoverColor()
All Packages Class Hierarchy This Package Previous Next Index