|
|||||||||
| 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.JDImage
public class JDImage
JDraw Image graphic object. JDraw supports GIF, JPG and PNG format. Alpha mask is supported for PNG image.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
JDImage(java.lang.String objectName,
java.lang.String fileName,
int x,
int y)
Contruct an image. |
|
| Method Summary | |
|---|---|
JDObject |
copy(int x,
int y)
Returns a copy of this object at the specified location. |
java.lang.String |
getFileName()
Returns current image filename. |
int |
getImageHeight()
Returns original image height. |
int |
getImageWidth()
Returns original image widht. |
boolean |
hasShadow()
Returns false, Image cannot be shadowed. |
void |
paint(JDrawEditor parent,
java.awt.Graphics g)
Paints this object. |
void |
resetToOriginalSize()
Reset the size to its original size. |
void |
setFileName(java.lang.String fileName)
Loads a new image into this object. |
| 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 |
| Constructor Detail |
|---|
public JDImage(java.lang.String objectName,
java.lang.String fileName,
int x,
int y)
objectName - Image namefileName - Image file name.x - Up left corner x coordinatey - Up left corner y coordinate| 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 windowpublic boolean hasShadow()
hasShadow in class JDObjectpublic void setFileName(java.lang.String fileName)
fileName - Image file name.public java.lang.String getFileName()
public void resetToOriginalSize()
public int getImageWidth()
public int getImageHeight()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||