Struct dotavious::dot::NodeBuilder[][src]

pub struct NodeBuilder<'a> { /* fields omitted */ }

Implementations

Trait Implementations

Add multiple attributes to the edge.

Add an attribute to the node.

Indicates the preferred area for a node or empty cluster when laid out by patchwork. default: 1.0, minimum: > 0 Read more

Classnames to attach to the node’s SVG element. Combine with stylesheet for styling SVG output using CSS classnames. Multiple space-separated classes are supported. Read more

Basic drawing color for graphics, not text. For the latter, use the fontcolor attribute.

This attribute specifies a color scheme namespace: the context for interpreting color names. In particular, if a color value has form “xxx” or “//xxx”, then the color xxx will be evaluated according to the current color scheme. If no color scheme is set, the standard X11 naming is used. For example, if colorscheme=bugn9, then color=7 is interpreted as color=“/bugn9/7”. Read more

Comments are inserted into output. Device-dependent

Distortion factor for shape=polygon. Positive values cause top part to be larger than bottom; negative values do the opposite. Read more

Color used to fill the background of a node or cluster assuming style=filled, or a filled arrowhead.

Color used to fill the background, with a gradient, of a node or cluster assuming style=filled, or a filled arrowhead. Read more

Color used to fill the background, with a gradient, of a node or cluster assuming style=filled, or a filled arrowhead. TODO: example Read more

If true, the node size is specified by the values of the width and height attributes only and is not expanded to contain the text label. There will be a warning if the label (with margin) cannot fit within these limits. If false, the size of a node is determined by smallest width and height needed to contain its label and image, if any, with a margin specified by the margin attribute. Read more

Color used for text.

Font used for text.

Font size, in points, used for text. default: 14.0, minimum: 1.0 Read more

If a gradient fill is being used, this determines the angle of the fill.

If the end points of an edge belong to the same group, i.e., have the same group attribute, parameters are set to avoid crossings and keep the edges straight. Read more

Height of node, in inches. default: 0.5, minimum: 0.02 Read more

Gives the name of a file containing an image to be displayed inside a node. The image file must be in one of the recognized formats, typically JPEG, PNG, GIF, BMP, SVG, or Postscript, and be able to be converted into the desired output format. Read more

Controls how an image is positioned within its containing node. Only has an effect when the image is smaller than the containing node. Read more

Controls how an image fills its containing node.

Controls how an image fills its containing node.

Text label attached to objects.

Specifies layers in which the node, edge or cluster is present.

Sets x and y margins of canvas, in inches. Both margins are set equal to the given value. See crate::attributes::NodeAttributes::margin_point Read more

Sets x and y margins of canvas, in inches. Specifies space left around the node’s label. Note that the margin is not part of the drawing but just empty space left around the drawing. The margin basically corresponds to a translation of drawing, as would be necessary to center a drawing on a page. Nothing is actually drawn in the margin. To actually extend the background of a drawing, see the pad attribute. Whilst it is possible to create a Point value with either a third co-ordinate or a forced position, these are ignored for printing. By default, the value is 0.11,0.055. Read more

By default, the justification of multi-line labels is done within the largest context that makes sense. Thus, in the label of a polygonal node, a left-justified line will align with the left side of the node (shifted by the prescribed margin). In record nodes, left-justified line will line up with the left side of the enclosing column of fields. If nojustify=true, multi-line labels will be justified in the context of itself. For example, if nojustify is set, the first label line is long, and the second is shorter and left-justified, the second will align with the left-most character in the first line, regardless of how large the node might be. Read more

If ordering=“out”, then the outedges of a node, that is, edges with the node as its tail node, must appear left-to-right in the same order in which they are defined in the input. Read more

Angle, in degrees, to rotate polygon node shapes. For any number of polygon sides, 0 degrees rotation results in a flat base. Used only if rotate is not defined. Default: 0.0 and minimum: 360.0 Read more

Specifies the width of the pen, in points, used to draw lines and curves, including the boundaries of edges and clusters. default: 1.0, minimum: 0.0 Read more

Set number of peripheries used in polygonal shapes and cluster boundaries.

Position of node, or spline control points. the position indicates the center of the node. On output, the coordinates are in points. Read more

Rectangles for fields of records, in points.

If true, force polygon to be regular, i.e., the vertices of the polygon will lie on a circle whose center is the center of the node. Read more

Gives the number of points used for a circle/ellipse node.

Sets the shape of a node.

Print guide boxes in PostScript at the beginning of routesplines if showboxes=1, or at the end if showboxes=2. (Debugging, TB mode only!) default: 0, minimum: 0 Read more

Number of sides when shape=polygon.

Skew factor for shape=polygon. Positive values skew top of polygon to right; negative to left. default: 0.0, minimum: -100.0 Read more

If packmode indicates an array packing, sortv specifies an insertion order among the components, with smaller values inserted first. default: 0, minimum: 0 Read more

Set style information for components of the graph.

If the object has a URL, this attribute determines which window of the browser is used for the URL. Read more

Tooltip annotation attached to the node or edge. If unset, Graphviz will use the object’s label if defined. Note that if the label is a record specification or an HTML-like label, the resulting tooltip may be unhelpful. In this case, if tooltips will be generated, the user should set a tooltip attribute explicitly. Read more

Hyperlinks incorporated into device-dependent output.

Sets the coordinates of the vertices of the node’s polygon, in inches. A list of points, separated by spaces. Read more

Width of node, in inches. This is taken as the initial, minimum width of the node. If fixedsize is true, this will be the final width of the node. Otherwise, if the node label requires more width to fit, the node’s width will be increased to contain the label. Read more

External label for a node or edge. The label will be placed outside of the node but near it. These labels are added after all nodes and edges have been placed. The labels will be placed so that they do not overlap any node or label. This means it may not be possible to place all of them. To force placing all of them, set forcelabels=true. Read more

Position of an exterior label, in points. The position indicates the center of the label. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.