Method Name |
Description |
||||||||||
moveto( |
Moves the pen cursor to the point specified by x and y. |
||||||||||
lineto( |
Moves the pen cursor to the point specified by x and y. |
||||||||||
rectangle( |
Draws a rectangle with extents at left, top, right, bottom. |
||||||||||
roundrect( |
Draws a rectangle with rounded corners, with extents defined by left, top, right and bottom. The size for the corners is defined by abs_cornerwidth and abs_cornerheight; these values do not scale with the shape. |
||||||||||
ellipse( |
Draws an ellipse with extents defined by left, top, right and bottom. |
||||||||||
arc( |
Draws an elliptical arc with the ellipse having extents at left, top, right and bottom. The start point of the arc is defined by the intersection of the ellipse and the line from the center of the ellipse and the point (startingpointx, startingpointy). The end of the arc is similarly defined by (endingpointx, endingpointy). |
||||||||||
bezierto( |
Draws a bezier curve and updates the pen position. |
||||||||||
polygon( |
Draws a regular polygon with center at the point (centerx, centery), and numberofsides number of sides. |
||||||||||
image( |
Draws the image that has the name imageId in the Image Manager. |
||||||||||
startpath() |
|
||||||||||
startcloudpath( |
Parameters:
Similar to StartPath, except that it draws the path with cloud-like curved segments ("puffs"). |
||||||||||
endpath() |
Ends the sequence of drawing commands that define a path. |
||||||||||
fillpath() |
Fills the previously defined path with the current fill color. |
||||||||||
strokepath() |
Draws the outline of the previously defined path with the current pen. |
||||||||||
fillandstrokepath() |
Fills the previously defined path with the current fill color, then draws its outline with the current pen. |
||||||||||
drawnativeshape() |
Causes Enterprise Architect to render the shape using its usual, non-shapescript notation. Subsequent drawing commands are super-imposed over the native notation. This method is only enabled for element shape scripts; line shape scripts are not supported. |
||||||||||
setpen( |
Sets the pen to the color and optionally the pen width. |
||||||||||
setlinestyle( |
Parameters: string linestyle: the following styles are valid:
Changes the stroke pattern for commands that use the pen. |
||||||||||
setpenwidth( |
Sets the width of the pen. Pen width should be between 1 and 5. |
||||||||||
setfillcolor( |
Sets the fill color. |
||||||||||
setpencolor( |
Sets the pen color. |
||||||||||
setdefaultcolors() |
Returns the brush and pen color to the default settings, or to the user-defined colors if available. See Color Queries. |
||||||||||
addsubshape( |
Adds a sub shape with the name shapename that must be defined with in the current shape definition. |
||||||||||
hidelabel( |
Hides the label. |
||||||||||
showlabel( |
Reveals a hidden label. |
||||||||||
println( |
Appends a line of text to the shape and a line break. |
||||||||||
print( |
Prints the specified text string. |