AGText /AGTextObj


Synopsis

define text with arbitrary height and angle

AGGeometryPrimitive+AGTextParams AGText
{
font = "roman-simplex";
geometry+IPort2 = {0,0};
text+IPort2[] = {"text"};
AGFloat angle = 0.0;
AGDistance height = 3.0;
};

Description

AGText and AGTextObj specify text. If the text parameter includes newline characters ("\n"), the text appears on multiple lines. AGTextObj includes an AGDataObject for your convenience.

To plot more than one string, each string must have a corresponding XY pair in the geometry subobject.

Subobjects

visibility
priority

Inherited from AGPrimitive through AGGeometryPrimitive.

geometry

Inherited from AGGeometryPrimitive.

text
color
font
fillColor
frameColor
frameWidth
horizontalJustification
verticalJustification
multiLineJustification
multiLineSpacingFactor

Inherited from AGTextParams.

Angle

The angle of the text object. The angle is given in degrees, which is a floating-point value.

Height

The height of the text object. Height is specified as an AGDistance, which is a floating-point value. It specifies distance as a percentage of the smallest dimension of the viewport or window size, whichever has a reference connection to the object containing this parameter. Specifying a negative value produces a fixed height text object.

Examples

Libraries.Examples.Annotation_Graphing.contour1
examples/contour1.v

Libraries.Examples.Annotation_Graphing.contour2
examples/contour2.v

Libraries.Examples.Annotation_Graphing.graphChar
examples/gphChar.v

Libraries.Examples.Annotation_Graphing.graphUI
examples/gphUI.v

Libraries.Examples.Annotation_Graphing.rainfall
examples/rainfall.v

Libraries.Examples.Annotation_Graphing.simpleGraph
examples/simpGph.v

File

v/ag.v

See Also

Related modules

•      AGDataObject

•      AGGeometryPrimitive / AGRenderPrimitive

•      AGPrimitive

•      AGTextParams