Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Groovy
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p>Draws an arbitrary geometric path. Paths are described by a series of pathOperations:</p> <table class="confluenceTable"><tbody> <tr> <th class="confluenceTh"><p> Operation </p></th> <th class="confluenceTh"><p> Description </p></th> </tr> <tr> <td class="confluenceTd"><p> moveTo[x,y] </p></td> <td class="confluenceTd"><p> adds a point to the path by moving to the specified coordinates (x,y) </p></td> </tr> <tr> <td class="confluenceTd"><p> lineTo[x,y] </p></td> <td class="confluenceTd"><p> adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates (x,y) </p></td> </tr> <tr> <td class="confluenceTd"><p> curveTo[x1,y1,x2,y2,x3,y3] </p></td> <td class="confluenceTd"><p> adds a curved segment, defined by three new points, to the path by drawing a Bézier curve that intersects both the current coordinates and the specified coordinates (x3,y3), using the specified points (x1,y1) and (x2,y2) as Bézier control points </p></td> </tr> <tr> <td class="confluenceTd"><p> quadTo[x1,y1,x2,y2] </p></td> <td class="confluenceTd"><p> adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the specified coordinates (x2,y2), using the specified point (x1,y1) as a quadratic parametric control point </p></td> </tr> <tr> <td class="confluenceTd"><p> hline[x] </p></td> <td class="confluenceTd"><p> adds a point to the path by drawing an horizontal line to the specified coordinates (x,current.y) </p></td> </tr> <tr> <td class="confluenceTd"><p> vline[y] </p></td> <td class="confluenceTd"><p> adds a point to the path by drawing a vertical line to the specified coordinates (current.x,y) </p></td> </tr> <tr> <td class="confluenceTd"><p> shapeTo[shape,connect] </p></td> <td class="confluenceTd"><p> appends the geometry of the specified Shape, shape operation or outline operation to the path, possibly connecting the new geometry to the existing path segments with a line segment </p></td> </tr> <tr> <td class="confluenceTd"><p> close </p></td> <td class="confluenceTd"><p> closes the current subpath by drawing a straight line back to the coordinates of the last moveTo </p></td> </tr> </tbody></table> <p>The first operation must be a <code>moveTo</code>.</p> <h3>Example</h3> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> path( borderColor: 'darkBlue', fill: 'blue', borderWidth: 4 ){ moveTo( x: 50, y: 50 ) quadTo( x1: -30, y1: 100, x2: 50, y2: 150 ) quadTo( x1: 100, y1: 230, x2: 150, y2: 150 ) quadTo( x1: 230, y1: 100, x2: 150, y2: 50 ) quadTo( x1: 100, y1: -30, x2: 50, y2: 50 ) } </pre></td></tr></table> <p><img class="confluence-embedded-image" src="/download/attachments/231082295/shapes-path.png?version=1&modificationDate=1371610781009" data-image-src="/download/attachments/231082295/shapes-path.png?version=1&modificationDate=1371610781009" data-linked-resource-id="231377011" data-linked-resource-type="attachment" data-linked-resource-default-alias="shapes-path.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082295" title="null > shapes-path.png"></p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced