|
|||||||||
| 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.DrawPath
com.smartgwt.client.widgets.drawing.DrawLinePath
public class DrawLinePath
DrawItem subclass to render a connector between two points. If the points are aligned on one axis, this connector will draw as a straight line. If the points are offset on both axes and there is enough space, the connector will draw short horizontal segments from the start and end points, and a diagonal segment connecting the ends of these 'margin' segments.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.BaseClass |
|---|
config, id, scClassName |
| Constructor Summary | |
|---|---|
DrawLinePath()
|
|
DrawLinePath(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
JavaScriptObject |
create()
|
ArrowStyle |
getEndArrow()
Style of arrowhead to draw at the end of the line or path. |
int |
getEndLeft()
Ending left coordinate of the line. |
Point |
getEndPoint()
End point of the line |
int |
getEndTop()
Ending top coordinate of the line. |
static DrawLinePath |
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. |
int |
getTailSize()
Length of the horizontal "tail" between the start and end points of this LinePath and the diagonal connecting segment |
void |
moveBy(int left,
int top)
Move both the start and end points of the line by a relative amount. |
void |
setEndArrow(ArrowStyle endArrow)
Style of arrowhead to draw at the end of the line or path. |
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. |
void |
setTailSize(int tailSize)
Length of the horizontal "tail" between the start and end points of this LinePath and the diagonal connecting segment |
| Methods inherited from class com.smartgwt.client.widgets.drawing.DrawPath |
|---|
getPoints, moveTo, setPoints |
| 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 DrawLinePath()
public DrawLinePath(JavaScriptObject jsObj)
| Method Detail |
|---|
public static DrawLinePath getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
setJavaScriptObject in class DrawPathpublic JavaScriptObject create()
create in class DrawPathpublic void setEndArrow(ArrowStyle endArrow)
setEndArrow in class DrawItemendArrow - endArrow Default value is "open", IRWpublic ArrowStyle getEndArrow()
getEndArrow in class DrawItem
public void setEndLeft(int endLeft)
throws IllegalStateException
endPoint if both are set.
endLeft - endLeft Default value is 0 , IRW
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 0 , IRW
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 , IRW
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 , IRW
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic int getStartTop()
startPoint if both are set.
public void setTailSize(int tailSize)
throws IllegalStateException
tailSize - tailSize Default value is 30
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic int getTailSize()
public void moveBy(int left,
int top)
moveBy in class DrawPathleft - change to left coordinate in pixelstop - change to top coordinate in pixels
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||