public class DrawPolygon extends DrawPath
config, configOnly, factoryCreated, factoryProperties, id, scClassName| Constructor and Description |
|---|
DrawPolygon() |
DrawPolygon(com.google.gwt.core.client.JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.core.client.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(com.google.gwt.core.client.JavaScriptObject jsObj) |
Point[] |
getPoints()
Array of points of the polygon, specified in the
local coordinate
system. |
boolean |
getShowTitleLabelBackground()
If the
titleLabel is showing, should the titleLabelBackground be created and placed behind
the titleLabel? |
TitleRotationMode |
getTitleRotationMode()
The mode in which the
titleLabel (if shown) is
rotated with this draw item. |
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, specified in the
local coordinate
system. |
void |
setShowTitleLabelBackground(boolean showTitleLabelBackground)
If the
titleLabel is showing, should the titleLabelBackground be created and placed behind
the titleLabel? |
void |
setTitleRotationMode(TitleRotationMode titleRotationMode)
The mode in which the
titleLabel (if shown) is
rotated with this draw item. |
getCenter, moveBy, moveFirstPointTo, resizeBy, resizeTo, setDefaultPropertiesaddClickHandler, 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, getTitle, getTitleLabel, getTitleLabelBackground, getTitleLabelPadding, 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, setShapeData, setShowHover, setShowResizeOutline, setStartArrow, setTitle, setTitleLabelPadding, setTranslate, setXShearFactor, setYShearFactor, show, showAllKnobs, showKnobs, showKnobs, supportsEndArrow, supportsStartArrowapplyFactoryProperties, 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, isConfigOnly, isCreated, isFactoryCreated, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setFactoryCreated, setID, setJavaScriptObject, setProperty, setProperty, setProperty, setProperty, setScClassNamepublic DrawPolygon()
public DrawPolygon(com.google.gwt.core.client.JavaScriptObject jsObj)
public static DrawPolygon getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public com.google.gwt.core.client.JavaScriptObject create()
public void setKnobs(KnobType... knobs) throws java.lang.IllegalStateException
KnobType.MOVE knob type.setKnobs in class DrawPathknobs - Default value is nulljava.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdDrawItem.setKnobs(com.smartgwt.client.types.KnobType...)public KnobType[] getKnobs()
KnobType.MOVE knob type.getKnobs in class DrawPathDrawItem.getKnobs()public void setLineCap(LineCap lineCap)
setLineCap in class DrawItemlineCap - Default value is "butt"public LineCap getLineCap()
getLineCap in class DrawItempublic void setPoints(Point... points)
local coordinate
system.public Point[] getPoints()
local coordinate
system.public void setShowTitleLabelBackground(boolean showTitleLabelBackground)
throws java.lang.IllegalStateException
titleLabel is showing, should the titleLabelBackground be created and placed behind
the titleLabel? This defaults to true for DrawSectors and
shapes that are not commonly filled (e.g. DrawLines).
Note : This is an advanced setting
setShowTitleLabelBackground in class DrawPathshowTitleLabelBackground - Default value is falsejava.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic boolean getShowTitleLabelBackground()
titleLabel is showing, should the titleLabelBackground be created and placed behind
the titleLabel? This defaults to true for DrawSectors and
shapes that are not commonly filled (e.g. DrawLines).
getShowTitleLabelBackground in class DrawPathpublic void setTitleRotationMode(TitleRotationMode titleRotationMode) throws java.lang.IllegalStateException
titleLabel (if shown) is
rotated with this draw item.
Note : This is an advanced setting
setTitleRotationMode in class DrawItemtitleRotationMode - Default value is "withItemAlwaysUp"java.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdDrawItem.setTitle(java.lang.String)public TitleRotationMode getTitleRotationMode()
titleLabel (if shown) is
rotated with this draw item.getTitleRotationMode in class DrawItemDrawItem.getTitle()