Struct dotavious::attributes::GraphAttributeStatementBuilder[][src]

pub struct GraphAttributeStatementBuilder<'a> {
    pub attributes: IndexMap<String, AttributeText<'a>>,
    // some fields omitted
}

Fields

attributes: IndexMap<String, AttributeText<'a>>

Implementations

Trait Implementations

Add multiple attributes to the node.

Add an attribute to the node.

The color used as the background for entire canvas.

The color used as the background for entire canvas with a gradient fill. A colon-separated list of weighted color values: WC(:WC)* where each WC has the form C(;F)? with C a color value and the optional F a floating-point number, 0 ≤ F ≤ 1. The sum of the floating-point numbers in a colorList must sum to at most 1. Read more

Type: rect which is “%f,%f,%f,%f” The rectangle llx,lly,urx,ury gives the coordinates, in points, of the lower-left corner (llx,lly) and the upper-right corner (urx,ury). Read more

If true, the drawing is centered in the output canvas.

Specifies the character encoding used when interpreting string input as a text label.

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

Mode used for handling clusters. If clusterrank=local, a subgraph whose name begins with cluster is given special treatment. The subgraph is laid out separately, and then integrated as a unit into its parent graph, with a bounding rectangle drawn about it. If the cluster has a label parameter, this label is displayed within the rectangle. Note also that there can be clusters within clusters. The modes clusterrank=global and clusterrank=none appear to be identical, both turning off the special cluster processing. Read more

Basic drawing color for graphics, not text. For the latter, use the fontcolor attribute. If any fraction is used, the colors are drawn in series, with each color being given roughly its specified fraction of the edge. Read more

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

Specifies the expected number of pixels per inch on a display device. Also known as resolution 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 crate::attributes::GraphAttributes::dpi 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.

An escString or an HTML label.

If labeljust=r, the label is right-justified within bounding rectangle If labeljust=l, left-justified Else the label is centered. Read more

Specifies the separator characters used to split an attribute of type layerRange into a list of ranges. Read more

Specifies a linearly ordered list of layer names attached to the graph The graph is then output in separate layers. Only those components belonging to the current output layer appear. Read more

Selects a list of layers to be emitted.

Specifies the separator characters used to split the layers attribute into a list of layer names. default: “:\t “ Read more

Height of graph or cluster label, in inches.

Label position The position indicates the center of the label. Read more

Width of graph or cluster label, in inches.

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

Sets x and y margins of canvas, in inches. 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

Multiplicative scale factor used to alter the MinQuit (default = 8) and MaxIter (default = 24) parameters used during crossing minimization. These correspond to the number of tries without improvement before quitting and the maximum number of iterations in each pass. Read more

Specifies the minimum separation between all nodes.

Whether to use a single global ranking, ignoring clusters. The original ranking algorithm in dot is recursive on clusters. This can produce fewer ranks and a more compact layout, but sometimes at the cost of a head node being place on a higher rank than the tail node. It also assumes that a node is not constrained in separate, incompatible subgraphs. For example, a node cannot be in a cluster and also be constrained by rank=same with a node not in the cluster. This allows nodes to be subject to multiple constraints. Rank constraints will usually take precedence over edge constraints. Read more

specifies the minimum space between two adjacent nodes in the same rank, in inches. default: 0.25, minimum: 0.02 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

Sets number of iterations in network simplex applications. nslimit is used in computing node x coordinates. If defined, # iterations = nslimit * # nodes; otherwise, # iterations = MAXINT. 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

Used only if rotate is not defined. Default: 0.0 and minimum: 360.0 Read more

Specify order in which nodes and edges are drawn. default: breadthfirst Read more

Whether each connected component of the graph should be laid out separately, and then the graphs packed together. If false, the entire graph is laid out together. The granularity and method of packing is influenced by the packmode attribute. Read more

Whether each connected component of the graph should be laid out separately, and then the graphs packed together. This is used as the size, in points,of a margin around each part; otherwise, a default margin of 8 is used. pack is treated as true if the value of pack iso a non-negative integer. Read more

This indicates how connected components should be packed (cf. packMode). Note that defining packmode will automatically turn on packing as though one had set pack=true. Read more

Specifies how much, in inches, to extend the drawing area around the minimal area needed to draw the graph. Both the x and y pad values are set equal to the given value. See crate::attributes::GraphAttributes::pad_point Read more

Specifies how much, in inches, to extend the drawing area around the minimal area needed to draw the graph. This area is part of the drawing and will be filled with the background color, if appropriate. default: 0.0555 Read more

Width and height of output pages, in inches. Value given is used for both the width and height. Read more

Width and height of output pages, in inches.

The order in which pages are emitted. Used only if page is set and applicable. Limited to one of the 8 row or column major orders. Read more

If quantum > 0.0, node label dimensions will be rounded to integral multiples of the quantum. default: 0.0, minimum: 0.0 Read more

Sets direction of graph layout. For example, if rankdir=“LR”, and barring cycles, an edge T -> H; will go from left to right. By default, graphs are laid out from top to bottom. This attribute also has a side-effect in determining how record nodes are interpreted. See record shapes. Read more

sets the desired rank separation, in inches. This is the minimum vertical distance between the bottom of the nodes in one rank and the tops of nodes in the next. If the value contains equally, the centers of all ranks are spaced equally apart. Note that both settings are possible, e.g., ranksep=“1.2 equally”. Read more

Sets the aspect ratio (drawing height/drawing width) for the drawing. Note that this is adjusted before the size attribute constraints are enforced. Read more

If true and there are multiple clusters, run crossing minimization a second time.

If rotate=90, sets drawing orientation to landscape.

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

Maximum width and height of drawing, in inches. Value used for both the width and the height. If defined and the drawing is larger than the given size, the drawing is uniformly scaled down so that it fits within the given size. If desired_min is true, and both both dimensions of the drawing are less than size, the drawing is scaled up uniformly until at least one dimension equals its dimension in size. See crate::attributes::GraphAttributes::size_point Read more

Maximum width and height of drawing, in inches. If defined and the drawing is larger than the given size, the drawing is uniformly scaled down so that it fits within the given size. If desired_min is true, and both both dimensions of the drawing are less than size, the drawing is scaled up uniformly until at least one dimension equals its dimension in size. 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

Controls how, and if, edges are represented.

Set style information for components of the graph.

A URL or pathname specifying an XML style sheet, used in SVG output. Combine with class to style elements using CSS selectors. Read more

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

Whether internal bitmap rendering relies on a truecolor color model or uses a color palette. If truecolor is unset, truecolor is not used unless there is a shapefile property for some node in the graph. The output model will use the input model when possible. Read more

Hyperlinks incorporated into device-dependent output.

Clipping window on final drawing. viewport supersedes any size attribute. The width and height of the viewport specify precisely the final size of the output. The viewPort W,H,Z,x,y or W,H,Z,N specifies a viewport for the final image. The pair (W,H) gives the dimensions (width and height) of the final image, in points. The optional Z is the zoom factor, i.e., the image in the original layout will be W/Z by H/Z points in size. By default, Z is 1. The optional last part is either a pair (x,y) giving a position in the original layout of the graph, in points, of the center of the viewport, or the name N of a node whose center should used as the focus. 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.