sgtplot.pmel.swing.beans
Class SliderHandle
- java.lang.Object
-
- sgtplot.pmel.swing.beans.SliderHandle
-
- All Implemented Interfaces:
- java.io.Serializable
public class SliderHandle extends java.lang.Object implements java.io.SerializableDescription of Class SliderHandle- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intLEFTstatic intRIGHTstatic intSINGLE
-
Constructor Summary
Constructors Constructor and Description SliderHandle()Default constructorSliderHandle(int size, java.awt.Color color)SliderHandle(int size, java.awt.Color color, int style)SliderHandle constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw(java.awt.Graphics g, int posx, int posy)java.awt.ColorgetColor()Get the color of the handleintgetPosition()Get the current handle positionintgetSize()Get the size of the handle in pixels;intgetStyle()voidsetColor(java.awt.Color clr)Set the handle colorvoidsetSize(int sz)Set the size of the handle (in pixels).voidsetStyle(int st)
-
-
-
Field Detail
-
LEFT
public static int LEFT
-
RIGHT
public static int RIGHT
-
SINGLE
public static int SINGLE
-
-
Constructor Detail
-
SliderHandle
public SliderHandle()
Default constructor
-
SliderHandle
public SliderHandle(int size, java.awt.Color color)
-
SliderHandle
public SliderHandle(int size, java.awt.Color color, int style)SliderHandle constructor.- Parameters:
xpos- horizontal position of handleypos- vertical position of handlesize- size of handle in pixelscolor- handle color
-
-
Method Detail
-
getSize
public int getSize()
Get the size of the handle in pixels;- Returns:
- handle size
-
setSize
public void setSize(int sz)
Set the size of the handle (in pixels).- Parameters:
sz- handle size in pixels
-
setStyle
public void setStyle(int st)
-
getStyle
public int getStyle()
-
getColor
public java.awt.Color getColor()
Get the color of the handle- Returns:
- the handle color
-
setColor
public void setColor(java.awt.Color clr)
Set the handle color- Parameters:
clr- handle color
-
getPosition
public int getPosition()
Get the current handle position- Returns:
- current handle position
-
draw
public void draw(java.awt.Graphics g, int posx, int posy)
-
-
DMelt 3.0 © DataMelt by jWork.ORG