Base aspect for all graphic shapes.<q ref="core.svg:Graphic">Graphic</q>(c) SAP AG 2003-2006. All rights reserved.
Gets or sets the shape's rotation angle.The <code>angle</code> should be normalized to an even multiple of 90 degrees, according to:
<table class="SIMPLE"><tr><td class="H V">Angle </td><td class=H>Description </td></tr><tr><td class=V>0 </td><td>Left-to-right orientation (default) </td></tr><tr><td class=V>90 </td><td>Top-to-bottom orientation </td></tr><tr><td class=V>180 </td><td>Right-to-left orientation </td></tr><tr><td class=V>270 </td><td>Bottom-to-top orientation </td></tr></table>
Gets or sets the shape's fill color.
Gets or sets the shape's flip state.The <code>flip</code> state is a bitwise combination of the following flags:
<table class="SIMPLE"><tr><td class="H V">Flag </td><td class=H>Description </td></tr><tr><td class=V>SVG_FLIPX </td><td>The shape is flipped horizontally </td></tr><tr><td class=V>SVG_FLIPY </td><td>The shape is flipped vertically </td></tr></table>
Gets the shape's geometry constraints.The <code>geometry</code> property defines the shape's geometrical constraints using the following structure:
<table class="BOTH"><tr><td class="H V">Name </td><td class=H>Description </td></tr><tr><td class=V>resizeMode </td><td>Shape resizing mode (see <q ref="core.svg:Shape!RESIZE_MODES">RESIZE_MODES</q>) </td></tr><tr><td class=V>rotateMode </td><td>Shape rotating mode (see <q ref="core.svg:Shape!ROTATE_MODES">ROTATE_MODES</q>) </td></tr><tr><td class=V> </td><td> </td></tr><tr><td class=V>defWidth </td><td>Default shape width </td></tr><tr><td class=V>minWidth </td><td>Minimum shape width </td></tr><tr><td class=V>maxWidth </td><td>Maximum shape width </td></tr><tr><td class=V> </td><td> </td></tr><tr><td class=V>defHeight </td><td>Default shape height </td></tr><tr><td class=V>minHeight </td><td>Minimum shape height </td></tr><tr><td class=V>maxHeight </td><td>Maximum shape height </td></tr><tr><td class=V> </td><td> </td></tr><tr><td class=V>padding </td><td>An array of four numbers <code>[top,right,bottom,left]</code> specifying the distances to use for padding between the top, right, bottom, and left frame edges and the corresponding body content boundaries. Padding is ignored on fixed-size shapes. </td></tr></table>
Aspects derived from the Shape aspect may extend the <code>geometry</code> property by adding their specific constraints.
Gets or sets the shape's hilight color.
Gets or sets the shape's center position (x y).<ul><li>The <code>pos</code> property defines the shape's center point (around which the shape is rotated). </li><li>The <code>pos</code> property is relative to the shape's coordinates system (the coordinates system of the innermost group that contains the shape, or the diagram's coordinate system if the shape is not contained in any group). </li><li>The property value is a string containing the center position's x and y coordinates concatenated with a space. </li><li>The x and y coordinate values should be rounded to the nearest half of a grid unit so that the shape itself is maintained aligned to whole grid units. </li></ul>
Gets or sets the shape's protection mode.The shape protection mode is a bitwise combination of the following flags:
<table class="BOTH"><tr><td class="H V">Name </td><td class=H>Description </td></tr><tr><td class=V>SVG_NONE </td><td>Do not protect the shape from any user interaction (default) </td></tr><tr><td class=V>SVG_PROTECT_MOVE </td><td>Protect the shape from moving </td></tr><tr><td class=V>SVG_PROTECT_RESIZE </td><td>Protect the shape from resizing </td></tr><tr><td class=V>SVG_PROTECT_ROTATE </td><td>Protect the shape from rotating </td></tr><tr><td class=V>SVG_PROTECT_FLIP </td><td>Protect the shape from flipping </td></tr><tr><td class=V>SVG_PROTECT_TRANSFORM </td><td>Protect the shape from all transformations (move, resize, rotate, or flip) </td></tr><tr><td class=V>SVG_PROTECT_SELECT </td><td>Protect the shape from selection </td></tr></table>
Gets or sets the shape's size (w h).<ul><li>The <code>size</code> property defines the shape's width and height (prior to any rotation that may be applied on the shape). </li><li>The <code>size</code> property is relative to the shape's coordinates system (the coordinates system of the innermost group that contains the shape, or the diagram's coordinate system if the shape is not contained in any group). </li><li>The property value is a string containing the width and height values concatenated with a space. </li><li>The width and height values should be rounded to the nearest grid unit. </li></ul>
Gets or sets the shape's stroke color.
Gets or sets the shape's text color.
An enumeration of the available shape resize modes.The resize mode is a bitwise combination of the following groups of flags:
<table class="BOTH"><tr><td class="H V">Name </td><td class=H>Description </td></tr><tr><td class=V>SVG_FREE_SIZE </td><td>Shape's size can be freely changed (while still honoring the other constraints) </td></tr><tr><td class=V>SVG_FIXED_SIZE </td><td>Both the width and the height are fixed </td></tr><tr><td class=V>SVG_AUTO_SIZE </td><td>Both the width and the height are set automatically </td></tr><tr><td class=V>SVG_KEEP_SIZE </td><td>Both the width and the height are kept greater or equal to the shape's body size </td></tr><tr><td class=V> </td><td> </td></tr><tr><td class=V>SVG_FIXED_WIDTH </td><td>Width is fixed to <code>defWidth</code> </td></tr><tr><td class=V>SVG_AUTO_WIDTH </td><td>Width is automatically set equal to the shape's body width </td></tr><tr><td class=V>SVG_KEEP_WIDTH </td><td>Width is kept greater or equal to the shape's body width </td></tr><tr><td class=V> </td><td> </td></tr><tr><td class=V>SVG_FIXED_HEIGHT </td><td>Height is fixed to <code>defHeight</code> </td></tr><tr><td class=V>SVG_AUTO_HEIGHT </td><td>Height is automatically set equal to the shape's body height </td></tr><tr><td class=V>SVG_KEEP_HEIGHT </td><td>Height is kept greater or equal to the shape's body height </td></tr></table>
An enumeration of the available shape rotating modes.The rotate mode is a bitwise combination of the following groups of flags:
<table class="BOTH"><tr><td class="H V">Name </td><td class=H>Description </td></tr><tr><td class=V>SVG_ROTATE_FULL </td><td>The shape can be freely rotated and flipped in all directions </td></tr><tr><td class=V> </td><td> </td></tr><tr><td class=V>SVG_ROTATE_0 </td><td>The shape can be rotated to 0 degrees (left-to-right) </td></tr><tr><td class=V>SVG_ROTATE_90 </td><td>The shape can be rotated to 90 degrees (top-to-bottom) </td></tr><tr><td class=V>SVG_ROTATE_180 </td><td>The shape can be rotated to 180 degrees (right-to-left) </td></tr><tr><td class=V>SVG_ROTATE_270 </td><td>The shape can be rotated to 270 degrees (bottom-to-top) </td></tr><tr><td class=V> </td><td> </td></tr><tr><td class=V>SVG_FLIPX </td><td>The shape can be flipped horizontally </td></tr><tr><td class=V>SVG_FLIPY </td><td>The shape can be flipped vertically </td></tr><tr><td class=V> </td><td> </td></tr><tr><td class=V>SVG_FLIP_BODY </td><td>Flips the body contents together with the shape </td></tr><tr><td class=V>SVG_FLIP_VBODY </td><td>Flips the body contents together with the shape, but only if the shape is oriented vertically (angle equals 90 or 270) </td></tr><tr><td class=V>SVG_FLIP_UPSIDE </td><td>Flips or rotates the body contents to ensure they are always oriented upside, regardless of the shape's orientation </td></tr></table>