|
|||||||||
| 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.DrawCurve
public class DrawCurve
DrawItem that renders cubic bezier curves.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.BaseClass |
|---|
config, id, scClassName |
| Constructor Summary | |
|---|---|
DrawCurve()
|
|
DrawCurve(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
JavaScriptObject |
create()
|
Point |
getControlPoint1()
First cubic bezier control point. |
Point |
getControlPoint2()
Second cubic bezier control point. |
Point |
getEndPoint()
End point of the curve |
LineCap |
getLineCap()
Style of drawing the endpoints of a line. |
static DrawCurve |
getOrCreateRef(JavaScriptObject jsObj)
|
Point |
getStartPoint()
Start point of the curve |
void |
moveBy(int x,
int y)
Increment start, end and control points of this curve |
void |
moveTo(int x,
int y)
Sets start, end and control points of this curve |
void |
setControlPoint1(Point controlPoint1)
First cubic bezier control point. |
void |
setControlPoint2(Point controlPoint2)
Second cubic bezier control point. |
void |
setEndPoint(Point endPoint)
End point of the curve If this method is called after the component has been drawn/initialized: Update the endPoint |
void |
setJavaScriptObject(JavaScriptObject jsObj)
|
void |
setLineCap(LineCap lineCap)
Style of drawing the endpoints of a line. |
void |
setStartPoint(Point startPoint)
Start point of the curve If this method is called after the component has been drawn/initialized: Update the startPoint |
| 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 DrawCurve()
public DrawCurve(JavaScriptObject jsObj)
| Method Detail |
|---|
public static DrawCurve getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
setJavaScriptObject in class DrawItempublic JavaScriptObject create()
create in class DrawItempublic void setControlPoint1(Point controlPoint1)
controlPoint1 - left coordinate for control point, in pixels. Default value is [100,0]public Point getControlPoint1()
public void setControlPoint2(Point controlPoint2)
controlPoint2 - left coordinate for control point, in pixels. Default value is [0,100]public Point getControlPoint2()
public void setEndPoint(Point endPoint)
endPoint - left coordinate for end point, in pixels. Default value is [100,100]public Point getEndPoint()
public void setLineCap(LineCap lineCap)
Note that for dashed and dotted lines, the lineCap style affects each dash or dot.
setLineCap in class DrawItemlineCap - lineCap Default value is "butt"public LineCap getLineCap()
Note that for dashed and dotted lines, the lineCap style affects each dash or dot.
getLineCap in class DrawItempublic void setStartPoint(Point startPoint)
startPoint - left coordinate for start point, in pixels. Default value is [0,0]public Point getStartPoint()
public void moveBy(int x,
int y)
moveBy in class DrawItemx - new x coordinate in pixelsy - new y coordinate in pixels
public void moveTo(int x,
int y)
x - new x coordinate in pixelsy - new y coordinate in pixels
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||