<@program name="Board" exec="STUDIO" mode="FRAME" hide="yes"> The drawing board program implements the standard graphical designer for GML diagrams. It uses the drawing aspects defined in this package to actually draw the various GML objects. The drawing board program supports the following signals (see the @lib:Global!SIGNAL macro for more details): Signal | Description actualSize | Set the zoom scale to 100% (actual size) annotate | Inserts an annotation into the diagram autoLayout | Automatically rearrange the diagram layout autoReroute | Automatically reroute the diagram lines cancel | Cancel any pending interaction captureSnapshot | Captures a snapshot of the current diagram view createShape(type, values, pos, group) | Creates a new diagram element and its corresponding shape based on the given parameters copy | Copy the current selection to the clipboard cut | Cut the current selection to the clipboard delete | Delete the current selection duplicate | Duplicate the current selection fitWindow | Set the zoom scale so that the diagram exactly fits the display window flipX | Flips the current selection horizontally flipY | Flips the current selection vertically goBackward | Navigate backward through history goForward | Navigate forward through history goDownward | Navigate downward to the nested diagram goUpward | Navigate upward to the parent diagram goHome | Navigate to the home (model root) diagram optimizeSpeed | Optimize the diagram drawing for speed (draft view) optimizeQuality | Optimize the diagram drawing for quality (proof view) paste(pos) | Paste the clipboard contents at the specified position print | Open a printer-friendly version of the diagram in a new window redo | Redo the last undone change reload | Reload the board scrollBy(dx,dy) | Scroll the canvas by a specified offset selectAll | Select all elements in the diagram (or in the currently selected container) selectByArea(rect) | Select all elements that are contained in the given rectangle selectNone | Clear the current selection rename | Start the rename operation for the element in focus restoreSnapshot(data) | Restores the diagram view to a previously captured snapshot rotate(dir) | Rotate the current selection clockwise (dir=1) or counter-clockwise (dir=-1) undo | Undo the last change zoomArea(rect) | Zoom the viewport to exatly fit the given rectangle zoomIn | Increase the zoom scale by a small factor zoomOut | Decrease the zoom scale by a small factor (c) SAP AG 2003-2006. All rights reserved. #USING[lib:Global.js] #USING[lib:ColorMgr.js] #USING[lib:EnumMgr.js] #USING[drawing.board.Board.js]