|
|||||||||
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.DrawSector
public class DrawSector
DrawItem subclass to render Pie Slices.
Field Summary |
---|
Fields inherited from class com.smartgwt.client.core.BaseClass |
---|
config, id, scClassName |
Constructor Summary | |
---|---|
DrawSector()
|
|
DrawSector(JavaScriptObject jsObj)
|
Method Summary | |
---|---|
JavaScriptObject |
create()
|
Point |
getCenterPoint()
Center point of the sector |
float |
getEndAngle()
end angle of the sector |
static DrawSector |
getOrCreateRef(JavaScriptObject jsObj)
|
int |
getRadius()
Radius of the sector. |
float |
getStartAngle()
start angle of the sector |
void |
moveBy(int x,
int y)
Move the drawSector to the specified position. |
void |
moveTo(int x,
int y)
Move the drawSector by the specified delta |
void |
resizeBy(int dX,
int dY)
Resize by the specified delta. |
void |
setCenterPoint(Point centerPoint)
Center point of the sector If this method is called after the component has been drawn/initialized: Change the center point for this sector. |
void |
setEndAngle(float endAngle)
end angle of the sector |
void |
setJavaScriptObject(JavaScriptObject jsObj)
|
void |
setRadius(int radius)
Radius of the sector. |
void |
setStartAngle(float startAngle)
start angle of the sector |
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 DrawSector()
public DrawSector(JavaScriptObject jsObj)
Method Detail |
---|
public static DrawSector getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
setJavaScriptObject
in class DrawItem
public JavaScriptObject create()
create
in class DrawItem
public void setCenterPoint(Point centerPoint)
centerPoint
- left coordinate. Default value is [0,0]public Point getCenterPoint()
public void setEndAngle(float endAngle) throws IllegalStateException
endAngle
- endAngle Default value is 20.0
IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic float getEndAngle()
public void setRadius(int radius) throws IllegalStateException
radius
- radius Default value is 100
IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic int getRadius()
public void setStartAngle(float startAngle) throws IllegalStateException
startAngle
- startAngle Default value is 0.0
IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic float getStartAngle()
public void moveBy(int x, int y)
moveBy
in class DrawItem
x
- number of pixels to move by horizontallyy
- number of pixels to move by verticallypublic void moveTo(int x, int y)
x
- coordinate to move to horizontallyy
- coordinate to move to verticallypublic void resizeBy(int dX, int dY)
resizeBy
in class DrawItem
dX
- number of pixels to resize by horizontallydY
- number of pixels to resize by vertically
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |