|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.swing.beans.SliderHandle
public class SliderHandle
Description of Class SliderHandle
Field Summary | |
---|---|
static int |
LEFT
|
static int |
RIGHT
|
static int |
SINGLE
|
Constructor Summary | |
---|---|
SliderHandle()
Default constructor |
|
SliderHandle(int size,
java.awt.Color color)
|
|
SliderHandle(int size,
java.awt.Color color,
int style)
SliderHandle constructor. |
Method Summary | |
---|---|
void |
draw(java.awt.Graphics g,
int posx,
int posy)
|
java.awt.Color |
getColor()
Get the color of the handle |
int |
getPosition()
Get the current handle position |
int |
getSize()
Get the size of the handle in pixels; |
int |
getStyle()
|
void |
setColor(java.awt.Color clr)
Set the handle color |
void |
setSize(int sz)
Set the size of the handle (in pixels). |
void |
setStyle(int st)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int LEFT
public static int RIGHT
public static int SINGLE
Constructor Detail |
---|
public SliderHandle()
public SliderHandle(int size, java.awt.Color color)
public SliderHandle(int size, java.awt.Color color, int style)
xpos
- horizontal position of handleypos
- vertical position of handlesize
- size of handle in pixelscolor
- handle colorMethod Detail |
---|
public int getSize()
public void setSize(int sz)
sz
- handle size in pixelspublic void setStyle(int st)
public int getStyle()
public java.awt.Color getColor()
public void setColor(java.awt.Color clr)
clr
- handle colorpublic int getPosition()
public void draw(java.awt.Graphics g, int posx, int posy)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |