public class DrawPolygon extends DrawPath
config, factoryCreated, factoryProperties, id, scClassName
Constructor and Description |
---|
DrawPolygon() |
DrawPolygon(JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
JavaScriptObject |
create() |
KnobType[] |
getKnobs()
DrawPolygon only supports the
KnobType.MOVE knob type. |
LineCap |
getLineCap()
Style of drawing the corners of the polygon.
|
static DrawPolygon |
getOrCreateRef(JavaScriptObject jsObj) |
Point[] |
getPoints()
Array of points of the polygon.
|
void |
setKnobs(KnobType... knobs)
DrawPolygon only supports the
KnobType.MOVE knob type. |
void |
setLineCap(LineCap lineCap)
Style of drawing the corners of the polygon.
|
void |
setPoints(Point... points)
Array of points of the polygon.
|
getCenter, moveBy, moveFirstPointTo, resizeBy, resizeTo, setDefaultProperties
addClickHandler, addDragMoveHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMovedHandler, addResizedHandler, addShowContextMenuHandler, changeAutoChildDefaults, changeAutoChildDefaults, changeAutoChildDefaults, computeAngle, computeAngleAsDouble, dragResizeMove, draw, erase, getAttributeAsIntArray, getBoundingBox, getBoundingBoxAsDouble, getCanDrag, getCanHover, getCanvasAutoChild, getContextMenu, getCornerResizeKnob, getCursor, getDestroyed, getDestroying, getDragStartDistance, getDrawGroup, getDrawItemAutoChild, getDrawPane, getEditProxyConstructor, getEndArrow, getEndKnob, getEventOpaque, getFillColor, getFillGradient, getFillGradientAsString, getFillOpacity, getFormItemAutoChild, getHoverDelay, getHoverHTML, getKeepInParentRect, getLineColor, getLineOpacity, getLinePattern, getLineWidth, getMoveKnob, getMoveKnobOffset, getMoveKnobPoint, getPageLeft, getPageTop, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getRef, getResizeBoundingBox, getResizeBoundingBoxAsDouble, getResizeKnobPoints, getResizeOutline, getResizeViaLocalTransformOnly, getRotation, getRotationAsDouble, getScale, getShadow, getShowHover, getShowResizeOutline, getSideResizeKnob, getStartArrow, getStartKnob, getSvgString, getTranslate, getXShearFactor, getYShearFactor, hide, hideAllKnobs, hideKnobs, hideKnobs, hover, isInBounds, isPointInPath, moveTo, rotateBy, rotateTo, scaleBy, scaleTo, setAttribute, setAttribute, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setCanDrag, setCanHover, setCenterPoint, setContextMenu, setCursor, setDefaultProperties, setDragStartDistance, setDrawGroup, setDrawPane, setEditProxyConstructor, setEndArrow, setEventOpaque, setFillColor, setFillGradient, setFillGradient, setFillOpacity, setHoverDelay, setKeepInParentRect, setKeepInParentRect, setLineColor, setLineOpacity, setLinePattern, setLineWidth, setMoveKnobOffset, setMoveKnobPoint, setPrompt, setPropertyValue, setProportionalResizeModifiers, setProportionalResizing, setResizeKnobPoints, setResizeViaLocalTransformOnly, setRotation, setRotation, setScale, setShadow, setShowHover, setShowResizeOutline, setStartArrow, setTranslate, setXShearFactor, setYShearFactor, show, showAllKnobs, showKnobs, showKnobs, supportsEndArrow, supportsStartArrow
applyFactoryProperties, asSGWTComponent, createJsObj, 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, getTestInstance, hasAutoAssignedID, internalSetID, internalSetID, isCreated, isFactoryCreated, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setFactoryCreated, setID, setJavaScriptObject, setProperty, setProperty, setProperty, setProperty, setScClassName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fireEvent
public DrawPolygon()
public DrawPolygon(JavaScriptObject jsObj)
public static DrawPolygon getOrCreateRef(JavaScriptObject jsObj)
public JavaScriptObject create()
public void setKnobs(KnobType... knobs) throws java.lang.IllegalStateException
KnobType.MOVE
knob type.setKnobs
in class DrawPath
knobs
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdDrawItem.setKnobs(com.smartgwt.client.types.KnobType...)
,
Diagramming Examplepublic KnobType[] getKnobs()
KnobType.MOVE
knob type.getKnobs
in class DrawPath
DrawItem.getKnobs()
,
Diagramming Examplepublic void setLineCap(LineCap lineCap)
setLineCap
in class DrawItem
lineCap
- Default value is "butt"public LineCap getLineCap()
getLineCap
in class DrawItem
public void setPoints(Point... points)