Class DrawGroup
- All Implemented Interfaces:
- HasAttachHandlers,- HasHandlers,- EventListener,- HasVisibility,- IsWidget,- LogicalStructure,- HasClickHandlers,- HasDoubleClickHandlers,- HasDragMoveHandlers,- HasDragResizeMoveHandlers,- HasDragResizeStartHandlers,- HasDragResizeStopHandlers,- HasDragStartHandlers,- HasDragStopHandlers,- HasDrawEndHandlers,- HasDrawStartHandlers,- HasMouseDownHandlers,- HasMouseMoveHandlers,- HasMouseOutHandlers,- HasMouseOverHandlers,- HasMouseUpHandlers,- HasMovedHandlers,- HasResizedHandlers,- HasShowContextMenuHandlers
A DrawGroup has no local visual representation other than that of its drawItems. Adding items to a drawGroup allows for central event handling, and allows them to be manipulated (drawn, scaled, etc) together.
 DrawItems are added to a DrawGroup by creating the DrawItems with DrawItem.drawGroup set to the DrawGroup, or by creating a
 DrawGroup with drawItems. 
 DrawGroups handle
 events by having an explicitly specified group rectangle  (see getGroupRect()). This rectangle has no visual representation
 within the draw pane (is not visible) but any user-interactions within the specified coordinates will trigger group
 level events. 
DrawGroups may contain other DrawGroups.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObjectUIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
- 
Field SummaryFields inherited from class com.smartgwt.client.widgets.BaseWidgetconfig, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassNameFields inherited from class com.google.gwt.user.client.ui.UIObjectDEBUG_ID_PREFIX
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidchangeAutoChildDefaults(String autoChildName, Canvas defaults) Changes the defaults for Canvas AutoChildren namedautoChildName.static voidchangeAutoChildDefaults(String autoChildName, DrawItem defaults) Changes the defaults for DrawItem AutoChildren namedautoChildName.static voidchangeAutoChildDefaults(String autoChildName, FormItem defaults) Changes the defaults for FormItem AutoChildren namedautoChildName.click()Notification fired when the user clicks on this DrawGroup.protected JavaScriptObjectcreate()booleandragMove()Notification fired for every mouseMove event triggered while the user is dragging this DrawGroup.booleanNotification fired when the user starts to drag this DrawGroup.booleandragStop()Notification fired when the user stops dragging this DrawGroup.voiderase()Erases all DrawItems in the DrawGroup.Get the center point of thegroup rectangle.DrawItem[]Initial list of DrawItems for this DrawGroup.This method will return an array of integers mapping out the coordinates (left, top, width, height) of the "group rectangle" for the group.If this group is showing aKnobType.MOVEcontrol knob, thegroupRectOutlineis aDrawRectAutoChild that identifies the group's group rect (seeuseGroupRect).intHeight of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").doubleHeight of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").KnobType[]getKnobs()DrawGroup only supports theKnobType.MOVEknob type.intgetLeft()Left coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").doubleLeft coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").Getter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.Should dragging the group (whencanDragis true) or dragging the move knob also move the items within thisDrawGroup?static DrawGroupgetOrCreateRef(JavaScriptObject jsObj) If theKnobType.MOVEcontrol knobis shown for this group anduseGroupRectis true, should thegroupRectOutlinebe shown?intgetTop()Top coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").doubleTop coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").booleanWhen should this drawGroup receive event notifications? If set totrue, the developer can specify an explicitset of coordinates.intgetWidth()Width of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").doubleWidth of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").Notification fired when the user presses the left mouse button on this DrawGroup.Notification fired when the user moves the mouse over this DrawGroup.mouseOut()Notification fired when the mouse leaves this DrawGroup.Notification fired when the mouse enters this DrawGroup.mouseUp()Notification fired when the user releases the left mouse button on this DrawGroup.voidmoveBy(int dX, int dY) Updates theDrawGroup's left coordinate bydXand the top coordinate bydY.voidSets both the left and top coordinates of thisDrawGroup'sgroup rectangle.voidRotate the group by degrees.voidRotate the group to degrees.voidscaleBy(double x, double y) Scale all drawItem[] shapes by the x, y multipliersvoidscaleBy(float x, float y) Deprecated.voidscaleTo(double x, double y) Scale the each item in the drawGroup by the x, y multipliersvoidscaleTo(float x, float y) Deprecated.static voidsetDefaultProperties(DrawGroup drawGroupProperties) Class level method to set the default properties of this class.voidsetDrawItems(DrawItem... drawItems) Initial list of DrawItems for this DrawGroup.setHeight(int height) Height of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").DrawGroup only supports theKnobType.MOVEknob type.setLeft(int left) Left coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").Setter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.setMoveItemsWithGroup(Boolean moveItemsWithGroup) Should dragging the group (whencanDragis true) or dragging the move knob also move the items within thisDrawGroup?setShowGroupRectOutline(Boolean showGroupRectOutline) If theKnobType.MOVEcontrol knobis shown for this group anduseGroupRectis true, should thegroupRectOutlinebe shown?setTop(int top) Top coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").setUseGroupRect(boolean useGroupRect) When should this drawGroup receive event notifications? If set totrue, the developer can specify an explicitset of coordinates.setWidth(int width) Width of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").Methods inherited from class com.smartgwt.client.widgets.drawing.DrawItemaddClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDrawEndHandler, addDrawStartHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMovedHandler, addResizedHandler, addShowContextMenuHandler, bringToFront, computeAngle, computeAngleAsDouble, dragResizeMove, draw, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getBoundingBox, getBoundingBoxAsDouble, getById, getByJSObject, getCanDrag, getCanHover, getCanvasAutoChild, getContextMenu, getCornerResizeKnob, getCursor, getDestroyed, getDestroying, getDragStartDistance, getDrawGroup, getDrawItemAutoChild, getDrawPane, getDrawPaneAsString, getEditProxyConstructor, getEndArrow, getEndKnob, getEventOpaque, getFillColor, getFillGradient, getFillGradientAsString, getFillOpacity, getFormItemAutoChild, getHoverDelay, getHoverHTML, getKeepInParentRect, getLineCap, getLineColor, getLineOpacity, getLinePattern, getLineWidth, getMoveKnob, getMoveKnobOffset, getMoveKnobPoint, getPageLeft, getPageTop, getPaletteDefaults, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getRef, getResizeBoundingBox, getResizeBoundingBoxAsDouble, getResizeKnobPoints, getResizeOutline, getResizeViaLocalTransformOnly, getRotateKnob, getRotation, getRotationAsDouble, getScale, getShadow, getShowHover, getShowResizeOutline, getShowTitleLabelBackground, getSideResizeKnob, getStartArrow, getStartKnob, getSvgString, getTitle, getTitleAutoFit, getTitleAutoFitMargin, getTitleAutoFitRotationMode, getTitleLabel, getTitleLabelBackground, getTitleLabelPadding, getTitleRotationMode, getTranslate, getUnderlyingGWTCanvas, getUseSimpleTransform, getXShearFactor, getYShearFactor, getZIndex, hide, hideAllKnobs, hideKnobs, hideKnobs, hover, isInBounds, isPointInPath, resizeBy, resizeTo, rotateBy, rotateTo, sendToBack, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setCanDrag, setCanHover, setCenterPoint, setContextMenu, setCursor, setDefaultProperties, setDragStartDistance, setDrawGroup, setDrawPane, setDrawPane, setEditProxyConstructor, setEndArrow, setEventOpaque, setFillColor, setFillGradient, setFillGradient, setFillOpacity, setHoverDelay, setKeepInParentRect, setKeepInParentRect, setLineCap, setLineColor, setLineOpacity, setLinePattern, setLineWidth, setLogicalStructure, setMoveKnobOffset, setMoveKnobPoint, setPrompt, setPropertyValue, setProportionalResizeModifiers, setProportionalResizing, setResizeKnobPoints, setResizeViaLocalTransformOnly, setRotation, setRotation, setScale, setShadow, setShapeData, setShowHover, setShowResizeOutline, setShowTitleLabelBackground, setStartArrow, setTitle, setTitleAutoFit, setTitleAutoFitMargin, setTitleAutoFitRotationMode, setTitleLabelPadding, setTitleRotationMode, setTranslate, setUseSimpleTransform, setXShearFactor, setYShearFactor, setZIndex, show, showAllKnobs, showKnobs, showKnobs, supportsEndArrow, supportsStartArrowMethods inherited from class com.smartgwt.client.widgets.BaseWidgetaddDrawHandler, addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, clearDynamicProperty, completeCreation, destroy, doAddHandler, doInit, doOnRender, equals, error, errorIfNotCreated, getAttribute, getAttributeAsDateArray, getAttributeAsFloatArray, getAttributeAsIntArray, getAttributeAsObject, getAttributeAsRecord, getAttributeAsStringArray, getClassName, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getScClassName, hasAutoAssignedID, hasDynamicProperty, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, isDrawn, isFactoryCreated, onBind, onDestroy, onDraw, onInit, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDefaultProperties, setDragTracker, setFactoryCreated, setHtmlElement, setID, setJavaScriptObject, setLogicalStructure, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toStringMethods inherited from class com.google.gwt.user.client.ui.WidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObjectaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, setWidth, sinkBitlessEventMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlersfireEvent
- 
Constructor Details- 
DrawGrouppublic DrawGroup()
- 
DrawGroup
 
- 
- 
Method Details- 
getOrCreateRef
- 
changeAutoChildDefaultsChanges the defaults for Canvas AutoChildren namedautoChildName.- Parameters:
- autoChildName- name of an AutoChild to customize the defaults for.
- defaults- Canvas defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see- SGWTProperties.
- See Also:
 
- 
changeAutoChildDefaultsChanges the defaults for FormItem AutoChildren namedautoChildName.- Parameters:
- autoChildName- name of an AutoChild to customize the defaults for.
- defaults- FormItem defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see- SGWTProperties.
- See Also:
 
- 
changeAutoChildDefaultsChanges the defaults for DrawItem AutoChildren namedautoChildName.- Parameters:
- autoChildName- name of an AutoChild to customize the defaults for.
- defaults- DrawItem defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see- SGWTProperties.
- See Also:
 
- 
create
- 
getGroupRectOutlineIf this group is showing aKnobType.MOVEcontrol knob, thegroupRectOutlineis aDrawRectAutoChild that identifies the group's group rect (seeuseGroupRect).useGroupRectmust be true and theKnobType.MOVEcontrol knob must be showing for thegroupRectOutlineAutoChild to be created and shown.This component is an AutoChild named "groupRectOutline". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current groupRectOutline value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setHeightHeight of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").
 If this method is called after the component has been drawn/initialized: Sets the height of thisDrawGroup'sgroup rectangle. Note that setting the height will not move or resize the items in thisDrawGroup.- Parameters:
- height- new height for the group rectangle. Default value is 1
- Returns:
- DrawGroupinstance, for chaining setter calls
 
- 
getHeightpublic int getHeight()Height of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").- Returns:
- Current height value. Default value is 1
 
- 
getHeightAsDoublepublic double getHeightAsDouble()Height of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").- Returns:
- Current height value. Default value is 1
 
- 
setKnobsDrawGroup only supports theKnobType.MOVEknob type.- Overrides:
- setKnobsin class- DrawItem
- Parameters:
- knobs- New knobs value. Default value is null
- Returns:
- DrawGroupinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getKnobsDrawGroup only supports theKnobType.MOVEknob type.
- 
setLeftLeft coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").
 If this method is called after the component has been drawn/initialized: Sets the left coordinate of thisDrawGroup'sgroup rectangle. Note that setting the left coordinate will not move the items in thisDrawGroup.- Parameters:
- left- new left coordinate. Default value is 0
- Returns:
- DrawGroupinstance, for chaining setter calls
 
- 
getLeftpublic int getLeft()Left coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").- Returns:
- Current left value. Default value is 0
 
- 
getLeftAsDoublepublic double getLeftAsDouble()Left coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").- Returns:
- Current left value. Default value is 0
 
- 
setMoveItemsWithGroupShould dragging the group (whencanDragis true) or dragging the move knob also move the items within thisDrawGroup?Note : This is an advanced setting - Parameters:
- moveItemsWithGroup- New moveItemsWithGroup value. Default value is true
- Returns:
- DrawGroupinstance, for chaining setter calls
 
- 
getMoveItemsWithGroupShould dragging the group (whencanDragis true) or dragging the move knob also move the items within thisDrawGroup?- Returns:
- Current moveItemsWithGroup value. Default value is true
 
- 
setShowGroupRectOutlineIf theKnobType.MOVEcontrol knobis shown for this group anduseGroupRectis true, should thegroupRectOutlinebe shown?Set to false to disable showing the groupRectOutline.- Parameters:
- showGroupRectOutline- New showGroupRectOutline value. Default value is null
- Returns:
- DrawGroupinstance, for chaining setter calls
 
- 
getShowGroupRectOutlineIf theKnobType.MOVEcontrol knobis shown for this group anduseGroupRectis true, should thegroupRectOutlinebe shown?Set to false to disable showing the groupRectOutline.- Returns:
- Current showGroupRectOutline value. Default value is null
 
- 
setTopTop coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").
 If this method is called after the component has been drawn/initialized: Sets the top coordinate of thisDrawGroup'sgroup rectangle. Note that setting the top coordinate will not move the items in thisDrawGroup.- Parameters:
- top- new top coordinate in pixels. Default value is 0
- Returns:
- DrawGroupinstance, for chaining setter calls
 
- 
getToppublic int getTop()Top coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").- Returns:
- Current top value. Default value is 0
 
- 
getTopAsDoublepublic double getTopAsDouble()Top coordinate of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").- Returns:
- Current top value. Default value is 0
 
- 
setUseGroupRectWhen should this drawGroup receive event notifications? If set totrue, the developer can specify an explicitset of coordinates. Whenever the user interacts with this rectangle, the drawGroup will be notified and the appropriate event handlers will be fired. Note that rectangle need not contain all DrawItems within the group, and is manually managed by the developer.
 If set tofalse, theevent rectanglecoordinates are unused - instead as a user interacts with specific drawItems within this group, the appropriate event handler would be fired on the item, then the event would "bubble" to the drawGroup, firing the appropriate event handler at the group level as well.- Parameters:
- useGroupRect- New useGroupRect value. Default value is false
- Returns:
- DrawGroupinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getUseGroupRectpublic boolean getUseGroupRect()When should this drawGroup receive event notifications? If set totrue, the developer can specify an explicitset of coordinates. Whenever the user interacts with this rectangle, the drawGroup will be notified and the appropriate event handlers will be fired. Note that rectangle need not contain all DrawItems within the group, and is manually managed by the developer.
 If set tofalse, theevent rectanglecoordinates are unused - instead as a user interacts with specific drawItems within this group, the appropriate event handler would be fired on the item, then the event would "bubble" to the drawGroup, firing the appropriate event handler at the group level as well.- Returns:
- Current useGroupRect value. Default value is false
 
- 
setWidthWidth of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").
 If this method is called after the component has been drawn/initialized: Sets the width of thisDrawGroup'sgroup rectangle. Note that setting the width will not move or resize the items in thisDrawGroup.- Parameters:
- width- new width for the group rectangle. Default value is 1
- Returns:
- DrawGroupinstance, for chaining setter calls
 
- 
getWidthpublic int getWidth()Width of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").- Returns:
- Current width value. Default value is 1
 
- 
getWidthAsDoublepublic double getWidthAsDouble()Width of thegroup rectanglein pixels relative to theDrawPane(the "drawing coordinate system").- Returns:
- Current width value. Default value is 1
 
- 
clickNotification fired when the user clicks on this DrawGroup.Note that if useGroupRectis true, this notification will be triggered by the user interacting with the specifiedgroup rectanglefor the group. IfuseGroupRectis false, the notification will bubble up from interactions with individual items within the group.- Returns:
- false to prevent this event from bubbling to this widget's parent, true or undefined to bubble.
- See Also:
 
- 
dragMovepublic boolean dragMove()Notification fired for every mouseMove event triggered while the user is dragging this DrawGroup. Will only fire ifcanDragis true for this group.Note that if useGroupRectis true, this notification will be triggered by the user interacting with the specifiedgroup rectanglefor the group. IfuseGroupRectis false, the notification will bubble up from interactions with individual items within the group.Default drag behavior will be to reposition all items in the group (and update the group rectangle). - Returns:
- false to cancel drag interaction.
- See Also:
 
- 
dragStartpublic boolean dragStart()Notification fired when the user starts to drag this DrawGroup. Will only fire ifcanDragis true for this group.Note that if useGroupRectis true, this notification will be triggered by the user interacting with the specifiedgroup rectanglefor the group. IfuseGroupRectis false, the notification will bubble up from interactions with individual items within the group.Default drag behavior will be to reposition all items in the group (and update the group rectangle). - Returns:
- false to cancel drag action.
- See Also:
 
- 
dragStoppublic boolean dragStop()Notification fired when the user stops dragging this DrawGroup. Will only fire ifcanDragis true for this group.Note that if useGroupRectis true, this notification will be triggered by the user interacting with the specifiedgroup rectanglefor the group. IfuseGroupRectis false, the notification will bubble up from interactions with individual items within the group.- Returns:
- false to cancel drag interaction.
- See Also:
 
- 
erasepublic void erase()Erases all DrawItems in the DrawGroup.
- 
getCenterGet the center point of thegroup rectangle.
- 
mouseDownNotification fired when the user presses the left mouse button on this DrawGroup.Note that if useGroupRectis true, this notification will be triggered by the user interacting with the specifiedgroup rectanglefor the group. IfuseGroupRectis false, the notification will bubble up from interactions with individual items within the group.- Returns:
- false to prevent this event from bubbling to this widget's parent, true or undefined to bubble.
- See Also:
 
- 
mouseMoveNotification fired when the user moves the mouse over this DrawGroup.Note that if useGroupRectis true, this notification will be triggered by the user interacting with the specifiedgroup rectanglefor the group. IfuseGroupRectis false, the notification will bubble up from interactions with individual items within the group.- Returns:
- false to prevent this event from bubbling to this widget's parent, true or undefined to bubble.
- See Also:
 
- 
mouseOutNotification fired when the mouse leaves this DrawGroup.Note that if useGroupRectis true, this notification will be triggered by the user interacting with the specifiedgroup rectanglefor the group. IfuseGroupRectis false, the notification will bubble up from interactions with individual items within the group.- Returns:
- false to prevent this event from bubbling to this widget's parent, true or undefined to bubble.
- See Also:
 
- 
mouseOverNotification fired when the mouse enters this DrawGroup.Note that if useGroupRectis true, this notification will be triggered by the user interacting with the specifiedgroup rectanglefor the group. IfuseGroupRectis false, the notification will bubble up from interactions with individual items within the group.- Returns:
- false to prevent this event from bubbling to this widget's parent, true or undefined to bubble.
- See Also:
 
- 
mouseUpNotification fired when the user releases the left mouse button on this DrawGroup.Note that if useGroupRectis true, this notification will be triggered by the user interacting with the specifiedgroup rectanglefor the group. IfuseGroupRectis false, the notification will bubble up from interactions with individual items within the group.- Returns:
- false to prevent this event from bubbling to this widget's parent, true or undefined to bubble.
- See Also:
 
- 
moveBypublic void moveBy(int dX, int dY) Updates theDrawGroup's left coordinate bydXand the top coordinate bydY. Note that this does not move or resize the items in thisDrawGroup.
- 
moveToSets both the left and top coordinates of thisDrawGroup'sgroup rectangle. Note that this does not move or resize the items in thisDrawGroup.
- 
scaleBypublic void scaleBy(float x, float y) Deprecated.Scale all drawItem[] shapes by the x, y multipliers- Parameters:
- x- scale in the x direction
- y- scale in the y direction
 
- 
scaleBypublic void scaleBy(double x, double y) Scale all drawItem[] shapes by the x, y multipliers
- 
scaleTopublic void scaleTo(float x, float y) Deprecated.Scale the each item in the drawGroup by the x, y multipliers- Parameters:
- x- scale in the x direction
- y- scale in the y direction
 
- 
scaleTopublic void scaleTo(double x, double y) Scale the each item in the drawGroup by the x, y multipliers
- 
setDefaultPropertiesClass level method to set the default properties of this class. If set, then all existing and subsequently created instances of this class will automatically have default properties corresponding to the properties set on the SmartGWT class instance passed to this function before its underlying SmartClient JS object was created. This is a powerful feature that eliminates the need for users to create a separate hierarchy of subclasses that only alter the default properties of this class. Can also be used for skinning / styling purposes.Note: This method is intended for setting default attributes only and will affect 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. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route. - Parameters:
- drawGroupProperties- properties that should be used as new defaults when instances of this class are created
- See Also:
 
- 
rotateByRotate the group by degrees. This is a relative rotation based on any current rotation- Parameters:
- degrees-
 
- 
rotateToRotate the group to degrees. This is an absolute rotation and does not consider any existing rotation- Parameters:
- degrees-
 
- 
setDrawItemsInitial list of DrawItems for this DrawGroup.DrawItems can be added to a DrawGroup after initialization by setting drawGroup.- Parameters:
- drawItems- drawItems Default value is null
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getDrawItemsInitial list of DrawItems for this DrawGroup.DrawItems can be added to a DrawGroup after initialization by setting drawGroup.- Returns:
- DrawItem
 
- 
getGroupRectThis method will return an array of integers mapping out the coordinates (left, top, width, height) of the "group rectangle" for the group. This is the area of the drawPane where user interactions will fire event notifications on this drawGroup.Developers may also use left,top,widthandheightto manage each coordinate directly.- Returns:
- 4 element array containing left, top, width, height of the group rectangle.
 
- 
setLogicalStructureSetter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.
- 
getLogicalStructureGetter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.- Specified by:
- getLogicalStructurein interface- LogicalStructure
- Overrides:
- getLogicalStructurein class- DrawItem
 
 
- 
GwtFloatVsDouble