|
|||||||||
| 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.DrawLabel
public class DrawLabel
DrawItem subclass to render a single-line text label.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.BaseClass |
|---|
config, id, scClassName |
| Constructor Summary | |
|---|---|
DrawLabel()
|
|
DrawLabel(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
JavaScriptObject |
create()
|
String |
getContents()
This is the content that will exist as the label. |
String |
getFontFamily()
Font family name, similar to the CSS font-family attribute. |
int |
getFontSize()
Font size, similar to the CSS font-size attribute. |
String |
getFontStyle()
Font style, similar to the CSS font-style attribute, eg "normal", "italic". |
String |
getFontWeight()
Font weight, similar to the CSS font-weight attribute, eg "normal", "bold". |
int |
getLeft()
Sets the amount from the left of its positioning that the element should be placed. |
static DrawLabel |
getOrCreateRef(JavaScriptObject jsObj)
|
int |
getTop()
Sets the amount from the top of its positioning that the element should be placed. |
void |
moveBy(int left,
int top)
Move both the start and end points of the line by a relative amount. |
void |
moveTo(int left,
int top)
Move the label to the absolute x, y coordinates |
void |
rotateTo(float degrees)
Rotate the label by the absolute rotation in degrees |
void |
setContents(String contents)
This is the content that will exist as the label. |
void |
setFontFamily(String fontFamily)
Font family name, similar to the CSS font-family attribute. |
void |
setFontSize(int fontSize)
Font size, similar to the CSS font-size attribute. |
void |
setFontStyle(String fontStyle)
Font style, similar to the CSS font-style attribute, eg "normal", "italic". |
void |
setFontWeight(String fontWeight)
Font weight, similar to the CSS font-weight attribute, eg "normal", "bold". |
void |
setLeft(int left)
Sets the amount from the left of its positioning that the element should be placed. |
void |
setTop(int top)
Sets the amount from the top of its positioning that the element should be placed. |
| 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 DrawLabel()
public DrawLabel(JavaScriptObject jsObj)
| Method Detail |
|---|
public static DrawLabel getOrCreateRef(JavaScriptObject jsObj)
public JavaScriptObject create()
create in class DrawItem
public void setContents(String contents)
throws IllegalStateException
contents - contents Default value is null
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic String getContents()
public void setFontFamily(String fontFamily)
throws IllegalStateException
fontFamily - fontFamily Default value is "Tahoma"
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic String getFontFamily()
public void setFontSize(int fontSize)
throws IllegalStateException
fontSize - fontSize Default value is 18
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic int getFontSize()
public void setFontStyle(String fontStyle)
throws IllegalStateException
fontStyle - fontStyle Default value is "normal"
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic String getFontStyle()
public void setFontWeight(String fontWeight)
throws IllegalStateException
fontWeight - fontWeight Default value is "bold"
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic String getFontWeight()
public void setLeft(int left)
throws IllegalStateException
left - left Default value is 0
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic int getLeft()
public void setTop(int top)
throws IllegalStateException
top - top Default value is 0
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic int getTop()
public void moveBy(int left,
int top)
moveBy in class DrawItemleft - change to left coordinate in pixelstop - change to top coordinate in pixels
public void moveTo(int left,
int top)
left - new startLeft coordinate in pixelstop - new startTop coordinate in pixelspublic void rotateTo(float degrees)
rotateTo in class DrawItemdegrees - number of degrees to rotate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||