Table Of Contents

Graph IDEProgramming ► Multiple Coordinate Graph

The following shows how to script a Multiple Coordinate Graph.

/* Declarations */

@@class() MultipleCoordinateGraph:Object

@@method(public, class) (id)stored;
@@method(public, instance) (void)updateXTitleToUFT8String:(const char *)aUTF8String;
@@method(public, instance) (void)updateYTitleAtAxisIndex:(unsigned)axisIndex toUFT8String:(const char *)aUTF8String;

@@end

/* Execution block */

{
id aGraph;

aGraph = [MultipleCoordinateGraph append];

[aGraph updateXTitleToUFT8String:"My X Title"];
[aGraph updateYTitleAtAxisIndex:1U toUFT8String:"My Y Title"];

}

The general API is define in the section Graphic. The following is API description specific to the Multiple Coordinate Graph graphic.

@@method(public, instance) (void)autoscale;
  Call like this:

[aGraph autoscale];

Autoscales the receiver.

@@method(public, instance) (void)focus;
  Call like this:

[aGraph focus];

Sets the focused layer to the receiver's foreground data layer. After this call any graphics that are inserted or appended are done so to the graph's foreground data layer.

@@method(public, instance) (void)unfocus;
  Call like this:

[aGraph unfocus];

Sets the focused layer to the layer that the receiver is in. After this call any graphics that are inserted or appended are done so to the same layer as the graph.

@@method(public, instance) (void)updateMainTitleToUFT8String:(const char *)aUTF8String;
  Call like this:

[aGraph updateMainTitleToUFT8String:"My Title"];

Sets the main title of the graph.

@@method(public, instance) (void)updateXTitleToUFT8String:(const char *)aUTF8String;
  Call like this:

[aGraph updateXTitleToUFT8String:"My X Title"];

Sets the x-axis title of the graph.

@@method(public, instance) (void)updateYTitleAtAxisIndex:(unsigned)axisIndex toUFT8String:(const char *)aUTF8String;
  Call like this:

[aGraph updateYTitleAtAxisIndex:1U toUFT8String:"My Y Title"];

Sets the first y-axis title of the graph.

@@method(public, instance) (void)updateYTitleToUFT8String:(const char *)aUTF8String;
  Call like this:

[aGraph updateYTitleToUFT8String:"My Y Title"];

Sets the first y-axis title of the graph.




© Copyright 1993-2022 by VVimaging, Inc. (VVI); All Rights Reserved. Please email support@vvi.com with any comments you have concerning this documentation. See Legal for trademark and legal information.