Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::LayoutStandards Class Reference

Standard values for graphical attributes and layouts. More...

#include <ogdf/basic/LayoutStandards.h>

Static Public Member Functions

Global default node attributes

These attribute values are used by GraphAttributes as default graphical representation of nodes.

static double defaultNodeWidth ()
 Returns the global default width for nodes.
 
static void setDefaultNodeWidth (double w)
 Sets the global default width for nodes to w.
 
static double defaultNodeHeight ()
 Returns the global default height for nodes.
 
static void setDefaultNodeHeight (double h)
 Sets the global default height for nodes to h.
 
static Shape defaultNodeShape ()
 Returns the global default shape for nodes.
 
static void setDefaultNodeShape (Shape s)
 Sets the global default shape for nodes to s.
 
static Stroke defaultNodeStroke ()
 Returns the global default stroke for nodes.
 
static Color defaultNodeStrokeColor ()
 Returns the global default stroke color for nodes.
 
static float defaultNodeStrokeWidth ()
 Returns the global default stroke width for nodes.
 
static void setDefaultNodeStroke (Stroke stroke)
 Sets the global default stroke for nodes to stroke.
 
static Fill defaultNodeFill ()
 Returns the global default fill for nodes.
 
static Color defaultNodeFillColor ()
 Returns the global default fill color for nodes.
 
static void setDefaultNodeFill (Fill fill)
 Sets the global default fill for nodes to fill.
 
Global default edge attributes

These attribute values are used by GraphAttributes as default graphical representation of edges.

static Stroke defaultEdgeStroke ()
 Returns the global default stroke for edges.
 
static Color defaultEdgeStrokeColor ()
 Returns the global default stroke color for edges.
 
static float defaultEdgeStrokeWidth ()
 Returns the global default stroke width for edges.
 
static void setDefaultEdgeStroke (Stroke stroke)
 Sets the global default stroke for edges to stroke.
 
static EdgeArrow defaultEdgeArrow ()
 Returns the global default arrow type for edges.
 
static void setDefaultEdgeArrow (EdgeArrow arrow)
 Sets the global default arrow type for edges to arrow.
 
Global default cluster attributes

These attribute values are used by ClusterGraphAttributes as default graphical representation of clusters.

static Stroke defaultClusterStroke ()
 Returns the global default stroke for clusters.
 
static Color defaultClusterStrokeColor ()
 Returns the global default stroke color for clusters.
 
static float defaultClusterStrokeWidth ()
 Returns the global default stroke width for clusters.
 
static void setDefaultClusterStroke (Stroke stroke)
 Sets the global default stroke for cluster to stroke.
 
static Fill defaultClusterFill ()
 Returns the global default fill for clusters.
 
static Color defaultClusterFillColor ()
 Returns the global default fill color for clusters.
 
static void setDefaultClusterFill (Fill fill)
 Sets the global default fill for clusters to fill.
 
Global default separation parameters

These values can be used by layout algorithms as useful settings for separation parameters.

static double defaultNodeSeparation ()
 Returns the global default node separation.
 
static void setDefaultNodeSeparation (double d)
 Sets the global default node separation to d.
 
static double defaultCCSeparation ()
 Returns the global default separation between connected components.
 
static void setDefaultCCSeparation (double d)
 Sets the global default separation between connected components to d.
 

Static Private Attributes

static double s_defCCSeparation
 the default separation between connected components (for layout algorithms) (must be positive).
 
static Fill s_defClusterFill
 the default cluster fill.
 
static Stroke s_defClusterStroke
 the default cluster stroke.
 
static EdgeArrow s_defEdgeArrow
 the default arrow type of an edge .
 
static Stroke s_defEdgeStroke
 the default stroke of an edge.
 
static Fill s_defNodeFill
 the default fill of a node.
 
static double s_defNodeHeight
 the default height of a node (must be positive).
 
static double s_defNodeSeparation
 the default node separation (for layout algorithms) (must be positive).
 
static Shape s_defNodeShape
 the default shape of a node.
 
static Stroke s_defNodeStroke
 the default stroke of a node.
 
static double s_defNodeWidth
 the default width of a node (must be positive).
 

Detailed Description

Standard values for graphical attributes and layouts.

Definition at line 43 of file LayoutStandards.h.

Member Function Documentation

◆ defaultCCSeparation()

static double ogdf::LayoutStandards::defaultCCSeparation ( )
inlinestatic

Returns the global default separation between connected components.

Definition at line 193 of file LayoutStandards.h.

◆ defaultClusterFill()

static Fill ogdf::LayoutStandards::defaultClusterFill ( )
inlinestatic

Returns the global default fill for clusters.

Definition at line 164 of file LayoutStandards.h.

◆ defaultClusterFillColor()

static Color ogdf::LayoutStandards::defaultClusterFillColor ( )
inlinestatic

Returns the global default fill color for clusters.

Definition at line 167 of file LayoutStandards.h.

◆ defaultClusterStroke()

static Stroke ogdf::LayoutStandards::defaultClusterStroke ( )
inlinestatic

Returns the global default stroke for clusters.

Definition at line 152 of file LayoutStandards.h.

◆ defaultClusterStrokeColor()

static Color ogdf::LayoutStandards::defaultClusterStrokeColor ( )
inlinestatic

Returns the global default stroke color for clusters.

Definition at line 155 of file LayoutStandards.h.

◆ defaultClusterStrokeWidth()

static float ogdf::LayoutStandards::defaultClusterStrokeWidth ( )
inlinestatic

Returns the global default stroke width for clusters.

Definition at line 158 of file LayoutStandards.h.

◆ defaultEdgeArrow()

static EdgeArrow ogdf::LayoutStandards::defaultEdgeArrow ( )
inlinestatic

Returns the global default arrow type for edges.

Definition at line 139 of file LayoutStandards.h.

◆ defaultEdgeStroke()

static Stroke ogdf::LayoutStandards::defaultEdgeStroke ( )
inlinestatic

Returns the global default stroke for edges.

Definition at line 127 of file LayoutStandards.h.

◆ defaultEdgeStrokeColor()

static Color ogdf::LayoutStandards::defaultEdgeStrokeColor ( )
inlinestatic

Returns the global default stroke color for edges.

Definition at line 130 of file LayoutStandards.h.

◆ defaultEdgeStrokeWidth()

static float ogdf::LayoutStandards::defaultEdgeStrokeWidth ( )
inlinestatic

Returns the global default stroke width for edges.

Definition at line 133 of file LayoutStandards.h.

◆ defaultNodeFill()

static Fill ogdf::LayoutStandards::defaultNodeFill ( )
inlinestatic

Returns the global default fill for nodes.

Definition at line 111 of file LayoutStandards.h.

◆ defaultNodeFillColor()

static Color ogdf::LayoutStandards::defaultNodeFillColor ( )
inlinestatic

Returns the global default fill color for nodes.

Definition at line 114 of file LayoutStandards.h.

◆ defaultNodeHeight()

static double ogdf::LayoutStandards::defaultNodeHeight ( )
inlinestatic

Returns the global default height for nodes.

Definition at line 80 of file LayoutStandards.h.

◆ defaultNodeSeparation()

static double ogdf::LayoutStandards::defaultNodeSeparation ( )
inlinestatic

Returns the global default node separation.

Definition at line 180 of file LayoutStandards.h.

◆ defaultNodeShape()

static Shape ogdf::LayoutStandards::defaultNodeShape ( )
inlinestatic

Returns the global default shape for nodes.

Definition at line 93 of file LayoutStandards.h.

◆ defaultNodeStroke()

static Stroke ogdf::LayoutStandards::defaultNodeStroke ( )
inlinestatic

Returns the global default stroke for nodes.

Definition at line 99 of file LayoutStandards.h.

◆ defaultNodeStrokeColor()

static Color ogdf::LayoutStandards::defaultNodeStrokeColor ( )
inlinestatic

Returns the global default stroke color for nodes.

Definition at line 102 of file LayoutStandards.h.

◆ defaultNodeStrokeWidth()

static float ogdf::LayoutStandards::defaultNodeStrokeWidth ( )
inlinestatic

Returns the global default stroke width for nodes.

Definition at line 105 of file LayoutStandards.h.

◆ defaultNodeWidth()

static double ogdf::LayoutStandards::defaultNodeWidth ( )
inlinestatic

Returns the global default width for nodes.

Definition at line 67 of file LayoutStandards.h.

◆ setDefaultCCSeparation()

static void ogdf::LayoutStandards::setDefaultCCSeparation ( double  d)
inlinestatic

Sets the global default separation between connected components to d.

Parameters
dmust be a positive value and is set as new default separation between connected components.

Definition at line 199 of file LayoutStandards.h.

◆ setDefaultClusterFill()

static void ogdf::LayoutStandards::setDefaultClusterFill ( Fill  fill)
inlinestatic

Sets the global default fill for clusters to fill.

Definition at line 170 of file LayoutStandards.h.

◆ setDefaultClusterStroke()

static void ogdf::LayoutStandards::setDefaultClusterStroke ( Stroke  stroke)
inlinestatic

Sets the global default stroke for cluster to stroke.

Definition at line 161 of file LayoutStandards.h.

◆ setDefaultEdgeArrow()

static void ogdf::LayoutStandards::setDefaultEdgeArrow ( EdgeArrow  arrow)
inlinestatic

Sets the global default arrow type for edges to arrow.

Definition at line 142 of file LayoutStandards.h.

◆ setDefaultEdgeStroke()

static void ogdf::LayoutStandards::setDefaultEdgeStroke ( Stroke  stroke)
inlinestatic

Sets the global default stroke for edges to stroke.

Definition at line 136 of file LayoutStandards.h.

◆ setDefaultNodeFill()

static void ogdf::LayoutStandards::setDefaultNodeFill ( Fill  fill)
inlinestatic

Sets the global default fill for nodes to fill.

Definition at line 117 of file LayoutStandards.h.

◆ setDefaultNodeHeight()

static void ogdf::LayoutStandards::setDefaultNodeHeight ( double  h)
inlinestatic

Sets the global default height for nodes to h.

Parameters
hmust be a positive value and is set as new default node height.

Definition at line 86 of file LayoutStandards.h.

◆ setDefaultNodeSeparation()

static void ogdf::LayoutStandards::setDefaultNodeSeparation ( double  d)
inlinestatic

Sets the global default node separation to d.

Parameters
dmust be a positive value and is set as new default node separation.

Definition at line 186 of file LayoutStandards.h.

◆ setDefaultNodeShape()

static void ogdf::LayoutStandards::setDefaultNodeShape ( Shape  s)
inlinestatic

Sets the global default shape for nodes to s.

Definition at line 96 of file LayoutStandards.h.

◆ setDefaultNodeStroke()

static void ogdf::LayoutStandards::setDefaultNodeStroke ( Stroke  stroke)
inlinestatic

Sets the global default stroke for nodes to stroke.

Definition at line 108 of file LayoutStandards.h.

◆ setDefaultNodeWidth()

static void ogdf::LayoutStandards::setDefaultNodeWidth ( double  w)
inlinestatic

Sets the global default width for nodes to w.

Parameters
wmust be a positive value and is set as new default node width.

Definition at line 73 of file LayoutStandards.h.

Member Data Documentation

◆ s_defCCSeparation

double ogdf::LayoutStandards::s_defCCSeparation
staticprivate

the default separation between connected components (for layout algorithms) (must be positive).

Definition at line 57 of file LayoutStandards.h.

◆ s_defClusterFill

Fill ogdf::LayoutStandards::s_defClusterFill
staticprivate

the default cluster fill.

Definition at line 54 of file LayoutStandards.h.

◆ s_defClusterStroke

Stroke ogdf::LayoutStandards::s_defClusterStroke
staticprivate

the default cluster stroke.

Definition at line 53 of file LayoutStandards.h.

◆ s_defEdgeArrow

EdgeArrow ogdf::LayoutStandards::s_defEdgeArrow
staticprivate

the default arrow type of an edge .

Definition at line 51 of file LayoutStandards.h.

◆ s_defEdgeStroke

Stroke ogdf::LayoutStandards::s_defEdgeStroke
staticprivate

the default stroke of an edge.

Definition at line 50 of file LayoutStandards.h.

◆ s_defNodeFill

Fill ogdf::LayoutStandards::s_defNodeFill
staticprivate

the default fill of a node.

Definition at line 48 of file LayoutStandards.h.

◆ s_defNodeHeight

double ogdf::LayoutStandards::s_defNodeHeight
staticprivate

the default height of a node (must be positive).

Definition at line 45 of file LayoutStandards.h.

◆ s_defNodeSeparation

double ogdf::LayoutStandards::s_defNodeSeparation
staticprivate

the default node separation (for layout algorithms) (must be positive).

Definition at line 56 of file LayoutStandards.h.

◆ s_defNodeShape

Shape ogdf::LayoutStandards::s_defNodeShape
staticprivate

the default shape of a node.

Definition at line 46 of file LayoutStandards.h.

◆ s_defNodeStroke

Stroke ogdf::LayoutStandards::s_defNodeStroke
staticprivate

the default stroke of a node.

Definition at line 47 of file LayoutStandards.h.

◆ s_defNodeWidth

double ogdf::LayoutStandards::s_defNodeWidth
staticprivate

the default width of a node (must be positive).

Definition at line 44 of file LayoutStandards.h.


The documentation for this class was generated from the following file: