Search Locate Previous Next Contents

PostScript Graphics (PS)


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
NameTypeDefaultDescription
HintString
TooltipString
Page NoRuntimePage number (integer)
PostScriptRuntimeGraphic to draw (PostScript vector)
DragableStringListNames of editable data series
TrackingBool1Fire events as data is dragged
PSPathtxt‘#.PostScrp’Path to PostScript namespace
LeafPathtxt‘#.leaf’Path to NewLeaf namespace (optional)

Class-specific Events
DSLDrag Selection
ZMZoom
RSChart resized
RMMRight-mouse menu
COBJChart Object clicked
CDATAChart Data clicked
CHINTData hint
CDXYXY co-ordinates
CDSTARTChart drag start
CDTRACKChart drag in progress
CDENDChart drag ended
CDOVERMouse over dragable series

Class-specific Functions
Wherereturns current (posn)(size) in pixels
Rescaleredraws the chart so the selected region (x1 y1 x2 y2) is drawn full-screen
ClipboardCopy chart to clipboard
PrintPrint chart to default Printer
SetSeriesUpdate list of editable series
WriteEPSSave chart as Encapsulated PostScript file


Continue to: PostScript Graphics – DSL Event
© Copyright Causeway Graphical Systems Ltd 2003