|
|||||||||
| 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.DrawLine
public class DrawLine
DrawItem subclass to render line segments.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.BaseClass |
|---|
config, id, scClassName |
| Constructor Summary | |
|---|---|
DrawLine()
|
|
DrawLine(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
JavaScriptObject |
create()
|
int |
getEndLeft()
Ending left coordinate of the line. |
Point |
getEndPoint()
End point of the line |
int |
getEndTop()
Ending top coordinate of the line. |
static DrawLine |
getOrCreateRef(JavaScriptObject jsObj)
|
int |
getStartLeft()
Starting left coordinate of the line. |
Point |
getStartPoint()
Start point of the line |
int |
getStartTop()
Starting top coordinate of the line. |
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 both the start and end points of the line, such that the startPoint ends up at the specified coordinate and the line length and angle are unchanged. |
void |
setEndLeft(int endLeft)
Ending left coordinate of the line. |
void |
setEndPoint(Point endPoint)
End point of the line If this method is called after the component has been drawn/initialized: Update the endPoint |
void |
setEndTop(int endTop)
Ending top coordinate of the line. |
void |
setJavaScriptObject(JavaScriptObject jsObj)
|
void |
setStartLeft(int startLeft)
Starting left coordinate of the line. |
void |
setStartPoint(Point startPoint)
Start point of the line If this method is called after the component has been drawn/initialized: Update the startPoint |
void |
setStartTop(int startTop)
Starting top coordinate of the line. |
| 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 DrawLine()
public DrawLine(JavaScriptObject jsObj)
| Method Detail |
|---|
public static DrawLine getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
setJavaScriptObject in class DrawItempublic JavaScriptObject create()
create in class DrawItem
public void setEndLeft(int endLeft)
throws IllegalStateException
endPoint if both are set.
endLeft - endLeft Default value is 100
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic int getEndLeft()
endPoint if both are set.
public void setEndPoint(Point endPoint)
endPoint - left coordinate for end point, in pixels. Default value is [100,100]public Point getEndPoint()
public void setEndTop(int endTop)
throws IllegalStateException
endPoint if both are set.
endTop - endTop Default value is 100
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic int getEndTop()
endPoint if both are set.
public void setStartLeft(int startLeft)
throws IllegalStateException
startPoint if both are set.
startLeft - startLeft Default value is 0
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic int getStartLeft()
startPoint if both are set.
public void setStartPoint(Point startPoint)
startPoint - left coordinate for start point, in pixels. Default value is [0,0]public Point getStartPoint()
public void setStartTop(int startTop)
throws IllegalStateException
startPoint if both are set.
startTop - startTop Default value is 0
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic int getStartTop()
startPoint if both are set.
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 pixels
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||