|
|||||||||
| 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.JDGroup
public class JDGroup
JDraw Group graphic object. A group can contains all JDObject including group. If the group is scaled, all object within this group will also be scaled.
Here is an exmaple of few group :
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
JDGroup(java.lang.String objectName,
java.util.Vector o)
Construct a group. |
|
| Method Summary | |
|---|---|
JDObject |
copy(int x,
int y)
Returns a copy of this object at the specified location. |
void |
generateJavaClass(java.io.FileWriter f)
Generates a Java class capable to paint this object using only java awt functions. |
JDObject |
getChildAt(int idx)
Returns the child at the specifed position. |
java.util.Vector |
getChildren()
Returns a Vector containing all children of this group. |
int |
getChildrenNumber()
Returns the number of child of this group. |
void |
getObjectsByName(java.util.Vector result,
java.lang.String name,
boolean recurseGroup)
Returns all objects having the given name. |
boolean |
isInsideObject(int x,
int y)
Determines whether the specified point is inside this object. |
boolean |
isProgrammed()
Determines whether this object has a programmed behavior. |
void |
moveSummit(int id,
double x,
double y)
Moves the specifed summit to the specified position. |
void |
paint(JDrawEditor parent,
java.awt.Graphics g)
Paints this object. |
void |
restoreTransform()
Restore original shape previously backuped by saveTransform |
void |
rotate90(double x,
double y)
Rotate the object by 90deg. |
void |
saveTransform()
Backup the shape. |
void |
setAntiAlias(boolean alias)
Sets the anti aliasing for all objects of this group |
void |
setBackground(java.awt.Color c)
Sets the background of this group, Apply it on all children. |
void |
setChildrenList(java.util.Vector o)
Sets the children of this group. |
void |
setFillStyle(int s)
Sets the fill style of this group, Apply it on all children. |
void |
setForeground(java.awt.Color c)
Sets the foreground of this group, Apply it on all children. |
void |
setInitValue(int v)
Sets the init value of this object. |
void |
setInverseShadow(boolean b)
Sets the inverse shadow of this group, Apply it on all children. |
void |
setLineStyle(int s)
Sets the line style of this group, Apply it on all children. |
void |
setLineWidth(int w)
Sets the line width of this group, Apply it on all children. |
void |
setMaxValue(int v)
Sets the max value of this object. |
void |
setMinValue(int v)
Sets the minimum value of this object. |
void |
setShadow(boolean b)
Sets the shadow of this group, Apply it on all children. |
void |
setShadowWidth(int w)
Sets the shadow width of this group, Apply it on all children. |
void |
setVisible(boolean b)
Shows or hides this object, Apply it on all children. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDGroup(java.lang.String objectName,
java.util.Vector o)
objectName - Group name.o - Vector of JDObject to be grouped.| 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 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 window
public boolean isInsideObject(int x,
int y)
JDObject
isInsideObject in class JDObjectx - X coordinate (pixel)y - Y coordinate (pixel)public void restoreTransform()
JDObject
restoreTransform in class JDObjectJDObject.saveTransform()public void saveTransform()
JDObject
saveTransform in class JDObjectJDObject.restoreTransform()
public void rotate90(double x,
double y)
JDObject
rotate90 in class JDRectangularx - Rotation center horizontal posy - Rotation center vertical posJDObject.refresh()
public void moveSummit(int id,
double x,
double y)
JDObject
moveSummit in class JDRectangularid - Summit indexx - Absolute X positiony - Absolute Y positionJDObject.refresh()public void setBackground(java.awt.Color c)
setBackground in class JDObjectc - Background color.JDObject.setBackground(java.awt.Color)public void setForeground(java.awt.Color c)
setForeground in class JDObjectc - Foreground color.JDObject.setForeground(java.awt.Color)public void setFillStyle(int s)
setFillStyle in class JDObjects - Fill style.JDObject.setFillStyle(int)public void setLineStyle(int s)
setLineStyle in class JDObjects - Line style.JDObject.setLineStyle(int)public void setAntiAlias(boolean alias)
setAntiAlias in class JDObjectalias - Anti aliasJDObject.setAntiAlias(boolean)public void setLineWidth(int w)
setLineWidth in class JDObjectw - Line width.JDObject.setLineWidth(int)public void setShadow(boolean b)
setShadow in class JDObjectb - Shadow flag.JDObject.setShadow(boolean)public void setVisible(boolean b)
setVisible in class JDObjectb - True to show, false otherwise.public void setInverseShadow(boolean b)
setInverseShadow in class JDObjectb - Invert shadow flag.JDObject.setInverseShadow(boolean)public void setShadowWidth(int w)
setShadowWidth in class JDObjectw - Shadow width.JDObject.setShadowWidth(int)public void setMinValue(int v)
JDObject
setMinValue in class JDObjectv - Min valueJDObject.setInitValue(int),
JDObject.setMaxValue(int),
JDObject.setValue(int)public void setMaxValue(int v)
JDObject
setMaxValue in class JDObjectv - Max valueJDObject.setInitValue(int),
JDObject.setMinValue(int),
JDObject.setValue(int)public void setInitValue(int v)
JDObject
setInitValue in class JDObjectv - Initial value object.JDObject.setMaxValue(int),
JDObject.setMinValue(int),
JDObject.setValue(int)
public void getObjectsByName(java.util.Vector result,
java.lang.String name,
boolean recurseGroup)
JDObject
getObjectsByName in class JDObjectresult - Result vector (must be constructed by the caller)name - JDObject name (Case sensitive)recurseGroup - true to perform a deep search whithin group, false otherwise.JDrawEditor.getObjectsByName(java.lang.String, boolean)public boolean isProgrammed()
JDObject
isProgrammed in class JDObjectJDObject.setValue(int)public JDObject getChildAt(int idx)
idx - Child indexpublic int getChildrenNumber()
public void setChildrenList(java.util.Vector o)
o - Vector of JDObject to be grouped.public java.util.Vector getChildren()
public void generateJavaClass(java.io.FileWriter f)
throws java.io.IOException
f - file to be saved
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||