|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.esrf.tangoatk.widget.util.jdraw.JDObject
fr.esrf.tangoatk.widget.util.jdraw.JDRectangular
fr.esrf.tangoatk.widget.util.jdraw.JDBar
public class JDBar
JDraw Bar graphic object.
| Field Summary | |
|---|---|
static int |
BAR_HORIZONTAL_LEFT
Horizontal bar , min at feft |
static int |
BAR_HORIZONTAL_RIGHT
Horizontal bar , min at right |
static int |
BAR_VERTICAL_BOTTOM
Vertical bar , min at bottom |
static int |
BAR_VERTICAL_TOP
Vertical bar , min at top |
| Constructor Summary | |
|---|---|
JDBar(java.lang.String objectName,
int x,
int y,
int w,
int h)
Contructs a JDBar. |
|
| Method Summary | |
|---|---|
JDObject |
copy(int x,
int y)
Returns a copy of this object at the specified location. |
double |
getBarValue()
Returns the current bar value. |
double |
getMaximum()
Returns the progress bar's maximum value. |
double |
getMinimum()
Returns the progress bar's maximum value. |
int |
getOrientation()
Returns the current bar orientation. |
boolean |
isInsideObject(int x,
int y)
Determines whether the specified point is inside this object. |
boolean |
isOutLineVisible()
Determines whether the outline is visible. |
void |
paint(JDrawEditor parent,
java.awt.Graphics g)
Paints this object. |
void |
setBarValue(double v)
Sets the bar value. |
void |
setMaximum(double m)
Sets the progress bar's maximum value . |
void |
setMinimum(double m)
Sets the progress bar's minimum value . |
void |
setOrientation(int o)
Sets the bar orientation. |
void |
setOutLineVisible(boolean visible)
Displays or hides the outline of the bar. |
| Methods inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDRectangular |
|---|
moveSummit, rotate90 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int BAR_HORIZONTAL_LEFT
public static final int BAR_HORIZONTAL_RIGHT
public static final int BAR_VERTICAL_TOP
public static final int BAR_VERTICAL_BOTTOM
| Constructor Detail |
|---|
public JDBar(java.lang.String objectName,
int x,
int y,
int w,
int h)
objectName - Object namex - Up left corner x coordinatey - Up left corner y coordinatew - Rectangle widthh - Rectangle height| Method Detail |
|---|
public JDObject copy(int x,
int y)
JDObject
copy in class JDObjectx - Horizontal position of the copied object (pixel)y - Vertical Position of the copied object (pixel)
public boolean isInsideObject(int x,
int y)
JDObject
isInsideObject in class JDObjectx - X coordinate (pixel)y - Y coordinate (pixel)
public void paint(JDrawEditor parent,
java.awt.Graphics g)
JDObject
paint in class JDRectangularparent - JdrawEditor parent (Can be null except for JDSwingObject)g - the specified Graphics windowpublic void setMaximum(double m)
m - Maximum valuepublic double getMaximum()
setMaximum(double)public void setMinimum(double m)
m - Miniimum valuepublic double getMinimum()
setMinimum(double)public void setBarValue(double v)
v - Bar value.public double getBarValue()
public void setOutLineVisible(boolean visible)
visible - True to display the outline false otherwize.public boolean isOutLineVisible()
public void setOrientation(int o)
o - Orientation valueBAR_HORIZONTAL_LEFT,
BAR_HORIZONTAL_RIGHT,
BAR_VERTICAL_TOP,
BAR_VERTICAL_BOTTOMpublic int getOrientation()
setOrientation(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||