|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.BaseClass
com.smartgwt.client.widgets.drawing.DrawItem
com.smartgwt.client.widgets.drawing.DrawImage
public class DrawImage
DrawItem subclass to render embedded images.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.BaseClass |
|---|
config, id, scClassName |
| Constructor Summary | |
|---|---|
DrawImage()
|
|
DrawImage(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
com.google.gwt.core.client.JavaScriptObject |
create()
|
int |
getHeight()
Height in pixels. |
int |
getLeft()
Left coordinate in pixels relative to the DrawPane. |
static DrawImage |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
|
java.lang.String |
getSrc()
URL to the image file. |
java.lang.String |
getTitle()
Title (tooltip hover text) for this image. |
int |
getTop()
Top coordinate in pixels relative to the DrawPane. |
int |
getWidth()
Width in pixels. |
void |
moveBy(int dX,
int dY)
Move the drawImage by the specified delta |
void |
moveTo(int left,
int top)
Move the drawImage to the specified position |
void |
setHeight(int height)
Height in pixels. |
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
|
void |
setLeft(int left)
Left coordinate in pixels relative to the DrawPane. |
void |
setSrc(java.lang.String src)
URL to the image file. |
void |
setTitle(java.lang.String title)
Title (tooltip hover text) for this image. |
void |
setTop(int top)
Top coordinate in pixels relative to the DrawPane. |
void |
setWidth(int width)
Width in pixels. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public DrawImage()
public DrawImage(com.google.gwt.core.client.JavaScriptObject jsObj)
| Method Detail |
|---|
public static DrawImage getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject in class DrawItempublic com.google.gwt.core.client.JavaScriptObject create()
create in class DrawItem
public void setHeight(int height)
throws java.lang.IllegalStateException
height - height Default value is 16
java.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic int getHeight()
public void setLeft(int left)
left - left Default value is 0public int getLeft()
public void setSrc(java.lang.String src)
src - new URL. See String. Default value is "blank.png"public java.lang.String getSrc()
String
public void setTitle(java.lang.String title)
throws java.lang.IllegalStateException
title - . See String. Default value is null
java.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic java.lang.String getTitle()
Stringpublic void setTop(int top)
top - top Default value is 0public int getTop()
public void setWidth(int width)
throws java.lang.IllegalStateException
width - width Default value is 16
java.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic int getWidth()
public void moveBy(int dX,
int dY)
moveBy in class DrawItemdX - number of pixels to move horizontallydY - number of pixels to move vertically
public void moveTo(int left,
int top)
left - new left coordinatetop - new top coordinate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||