public class DrawSector extends DrawItem
config, id, scClassName
Constructor and Description |
---|
DrawSector() |
DrawSector(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.JavaScriptObject |
create() |
Point |
getCenterPoint()
Center point of the sector
|
float |
getEndAngle()
End angle of the sector in degrees.
|
KnobType[] |
getKnobs()
NOTE: DrawSector items do not support knobs.
|
static DrawSector |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
int |
getRadius()
Radius of the sector.
|
float |
getStartAngle()
Start angle of the sector in degrees.
|
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. |
static void |
setDefaultProperties(DrawSector drawSectorProperties)
Class level method to set the default properties of this class.
|
void |
setEndAngle(float endAngle)
End angle of the sector in degrees.
|
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj) |
void |
setKnobs(KnobType... knobs)
NOTE: DrawSector items do not support knobs.
|
void |
setRadius(int radius)
Radius of the sector.
|
void |
setStartAngle(float startAngle)
Start angle of the sector in degrees.
|
addClickHandler, addDragMoveHandler, addDragResizeMoveHandler, addDragStartHandler, addDragStopHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMovedHandler, addResizedHandler, addShowContextMenuHandler, computeAngle, computeAngleAsDouble, dragResizeMove, draw, erase, getAttributeAsIntArray, getBoundingBox, getCanDrag, getCanHover, getCenter, getContextMenu, getCursor, getDestroyed, getDestroying, getDragStartDistance, getDrawGroup, getDrawPane, getEndArrow, getFillColor, getFillGradient, getFillOpacity, getHoverHTML, getKeepInParentRect, getLineCap, getLineColor, getLineOpacity, getLinePattern, getLineWidth, getMoveKnobOffset, getMoveKnobPoint, getPageLeft, getPageTop, getPrompt, getRef, getResizeKnobPoints, getRotation, getScale, getShadow, getShowHover, getStartArrow, getSvgString, hide, hideKnobs, hover, isInBounds, isPointInPath, resizeTo, rotateBy, rotateBy, rotateTo, rotateTo, scaleBy, scaleBy, scaleTo, scaleTo, setAttribute, setCanDrag, setCanHover, setContextMenu, setCursor, setDefaultProperties, setDragStartDistance, setDrawGroup, setDrawPane, setEndArrow, setFillColor, setFillGradient, setFillOpacity, setKeepInParentRect, setKeepInParentRect, setLineCap, setLineColor, setLineOpacity, setLinePattern, setLineWidth, setMoveKnobOffset, setMoveKnobPoint, setPrompt, setResizeKnobPoints, setRotation, setScale, setShadow, setShowHover, setStartArrow, show, showKnobs
asSGWTComponent, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getID, getJsObj, getOrCreateJsObj, getScClassName, internalSetID, internalSetID, isCreated, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setID, setProperty, setProperty, setProperty, setProperty, setScClassName
public DrawSector()
public DrawSector(com.google.gwt.core.client.JavaScriptObject jsObj)
public static DrawSector getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject
in class DrawItem
public com.google.gwt.core.client.JavaScriptObject create()
public void setCenterPoint(Point centerPoint)
centerPoint
- left coordinate. Default value is [0,0]public Point getCenterPoint()
public void setEndAngle(float endAngle) throws java.lang.IllegalStateException
endAngle
- endAngle Default value is 20.0java.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic float getEndAngle()
public void setKnobs(KnobType... knobs)
public KnobType[] getKnobs()
public void setRadius(int radius) throws java.lang.IllegalStateException
radius
- radius Default value is 100java.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic int getRadius()
public void setStartAngle(float startAngle) throws java.lang.IllegalStateException
startAngle
- startAngle Default value is 0.0java.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic float getStartAngle()
public void moveBy(int x, int y)
public void moveTo(int x, int y)
x
- coordinate to move to horizontallyy
- coordinate to move to verticallypublic void resizeBy(int dX, int dY)
public static void setDefaultProperties(DrawSector drawSectorProperties)
Note: This method is intended for setting default attributes only and will effect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead.
drawSectorProperties
- properties that should be used as new defaults when instances of this class are created