com.smartgwt.client.widgets.drawing

## Class DrawShapeCommand

- java.lang.Object
- - com.smartgwt.client.core.JsObject
  - - com.smartgwt.client.core.DataClass
    - - com.smartgwt.client.widgets.drawing.DrawShapeCommand

- Direct Known Subclasses:
    CircleToCommand, CloseCommand, LineToCommand, MoveToCommand

      public class DrawShapeCommand
      extends DataClass

  Holds the information of a drawing command.

- - ### Field Summary

    - ### Fields inherited from class com.smartgwt.client.core.JsObject

      `jsObj`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DrawShapeCommand()`
    `DrawShapeCommand(com.google.gwt.core.client.JavaScriptObject jsObj)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static DrawShapeCommand` | `getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)`
    `DrawShapeCommandType` | `getType()` The command type.
    `protected void` | `setArgs(com.google.gwt.core.client.JavaScriptObject args)`
    `void` | `setType(DrawShapeCommandType type)` The command type.

    - ### Methods inherited from class com.smartgwt.client.core.DataClass

      `doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject`

    - ### Methods inherited from class com.smartgwt.client.core.JsObject

      `equals, getJsObj, hashCode, isCreated, setJavaScriptObject, setJsObj`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DrawShapeCommand

          public DrawShapeCommand()

    - #### DrawShapeCommand

          public DrawShapeCommand(com.google.gwt.core.client.JavaScriptObject jsObj)

  - ### Method Detail

    - #### getOrCreateRef

          public static DrawShapeCommand getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)

    - #### setType

          public void setType(DrawShapeCommandType type)

      The command type.
      Parameters:
        `type` - Default value is null

    - #### getType

          public DrawShapeCommandType getType()

      The command type.
      Returns:
        DrawShapeCommandType

    - #### setArgs

          protected void setArgs(com.google.gwt.core.client.JavaScriptObject args)