| Search Locate Previous Next | Contents |
Description
Interfaces to the RainPro Graphics Interpreter. Use this to display a pre-cooked chart which has been stored in the workspace as a character vector of PostScript code.
Will keep the aspect ratio of the original chart, so the shape of the field should roughly match the shape of the graph. An aspect of 3 high by 4 wide is normal.
Right-mouse on the chart offers options such as zoom to full-screen, and printing; left-mouse drags a locator which queues a DSL (Drag-select) event on the object when released. This gives a 2×2 table (x1y1 x2y2) of the lower-left and upper-right corners in the co-ordinate system of the chart.
It also queues a ZM (Zoom) event which can be used as the argument to Rescale to zoom the view in place. The arrow keys can then be used to walk around the view.
Class Property Table
| Name | Type | Default | Description |
| Hint | String | ||
| Tooltip | String | ||
| Page No | Runtime | Page number (integer) | |
| PostScript | Runtime | Graphic to draw (PostScript vector) | |
| Dragable | StringList | Names of editable data series | |
| Tracking | Bool | 1 | Fire events as data is dragged |
| PSPath | txt | #.PostScrp | Path to PostScript namespace |
| LeafPath | txt | #.leaf | Path to NewLeaf namespace (optional) |
Class-specific Events
| DSL | Drag Selection |
| ZM | Zoom |
| RS | Chart resized |
| RMM | Right-mouse menu |
| COBJ | Chart Object clicked |
| CDATA | Chart Data clicked |
| CHINT | Data hint |
| CDXY | XY co-ordinates |
| CDSTART | Chart drag start |
| CDTRACK | Chart drag in progress |
| CDEND | Chart drag ended |
| CDOVER | Mouse over dragable series |
Class-specific Functions
| Where | returns current (posn)(size) in pixels |
| Rescale | redraws the chart so the selected region (x1 y1 x2 y2) is drawn full-screen |
| Clipboard | Copy chart to clipboard |
| Print chart to default Printer | |
| SetSeries | Update list of editable series |
| WriteEPS | Save chart as Encapsulated PostScript file |