Sparksee 6.1.0
STSEdgeExport Class Reference

Stores edge exporting values. More...

#include <Sparksee.h>

Inheritance diagram for STSEdgeExport:
Inheritance graph
Collaboration diagram for STSEdgeExport:
Collaboration graph

Instance Methods

(id) - init
 Creates a new instance.
(void) - setDefaults
 Sets to default values.
(void) - copyDefaults:
 Sets the default values using a refrerence EdgeExport.
(NSString *) - getLabel
 Gets the edge label.
(void) - setLabel:
 Sets the edge label.
(NSString *) - getTitle
 Gets the edge title.
(void) - setTitle:
 Sets the edge title.
(BOOL) - asDirected
 Gets if the edge should be managed as directed.
(void) - setAsDirected:
 Sets if the edge should be managed as directed.
(int) - getColorRGB
 Gets the edge color.
(void) - setColorRGB:
 Sets the edge color.
(int) - getLabelColorRGB
 Gets the edge label color.
(void) - setLabelColorRGB:
 Sets the edge label color.
(int) - getWidth
 Gets the edge width.
(void) - setWidth:
 Sets the edge width.
(int) - getFontSize
 Gets the edge label font size.
(void) - setFontSize:
 Sets the edge label font size.
(void) - getColorRed:green:blue:alpha:
 Get the edge color separated in RGBA.
(void) - setColorRed:green:blue:alpha:
 Set the edge color with separated RGBA components.
(void) - getLabelColorRed:green:blue:alpha:
 Get the edge label color separated in RGBA.
(void) - setLabelColorRed:green:blue:alpha:
 Set the edge label color with separated RGBA components.

Detailed Description

Stores edge exporting values.

Some properties may be ignored depending on the exportation type.

Default values are:

Label: "" (empty string).

As directed: TRUE.

Color: 13882323 (OxD3D3D3, Light gray).

Label color: 0 (Ox000000, Black).

Width: 5px.

Font size: 10.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Method Documentation

◆ asDirected

- (BOOL) asDirected

Gets if the edge should be managed as directed.

TRUE is the default value. If TRUE, use as directed, otherwise use as undirected.

Returns
The edge direction.

References asDirected.

Referenced by asDirected.

◆ copyDefaults:

- (void) copyDefaults: (STSEdgeExport *) source

Sets the default values using a refrerence EdgeExport.

Parameters
sourcenull

◆ getColorRed:green:blue:alpha:

- (void) getColorRed: (double *) red
green: (double *) green
blue: (double *) blue
alpha: (double *) alpha 

Get the edge color separated in RGBA.

Parameters
red[out] The red color component ([0..1]).
green[out] The green color component ([0..1]).
blue[out] The blue color component ([0..1]).
alpha[out] The alpha component ([0..1]).

◆ getColorRGB

- (int) getColorRGB

Gets the edge color.

Returns
The edge color.

References getColorRGB.

Referenced by getColorRGB.

◆ getFontSize

- (int) getFontSize

Gets the edge label font size.

Returns
The edge label font size.

References getFontSize.

Referenced by getFontSize.

◆ getLabel

- (NSString *) getLabel

Gets the edge label.

Returns
The edge label.

References getLabel.

Referenced by getLabel.

◆ getLabelColorRed:green:blue:alpha:

- (void) getLabelColorRed: (double *) red
green: (double *) green
blue: (double *) blue
alpha: (double *) alpha 

Get the edge label color separated in RGBA.

Parameters
red[out] The red color component ([0..1]).
green[out] The green color component ([0..1]).
blue[out] The blue color component ([0..1]).
alpha[out] The alpha component ([0..1]).

◆ getLabelColorRGB

- (int) getLabelColorRGB

Gets the edge label color.

Returns
The edge label color.

References getLabelColorRGB.

Referenced by getLabelColorRGB.

◆ getTitle

- (NSString *) getTitle

Gets the edge title.

Returns
The edge title.

References getTitle.

Referenced by getTitle.

◆ getWidth

- (int) getWidth

Gets the edge width.

Returns
The edge width.

References getWidth.

Referenced by getWidth.

◆ setAsDirected:

- (void) setAsDirected: (BOOL) directed

Sets if the edge should be managed as directed.

Parameters
directed[in] If TRUE, use as directed, otherwise use as undirected.

◆ setColorRed:green:blue:alpha:

- (void) setColorRed: (double) red
green: (double) green
blue: (double) blue
alpha: (double) alpha 

Set the edge color with separated RGBA components.

Parameters
red[in] The red color component ([0..1]).
green[in] The green color component ([0..1]).
blue[in] The blue color component ([0..1]).
alpha[in] The alpha component ([0..1]).

◆ setColorRGB:

- (void) setColorRGB: (int) color

Sets the edge color.

Parameters
color[in] The edge color.

◆ setFontSize:

- (void) setFontSize: (int) size

Sets the edge label font size.

Parameters
size[in] The edge label font size.

◆ setLabel:

- (void) setLabel: (NSString *) label

Sets the edge label.

Parameters
label[in] The edge label.

◆ setLabelColorRed:green:blue:alpha:

- (void) setLabelColorRed: (double) red
green: (double) green
blue: (double) blue
alpha: (double) alpha 

Set the edge label color with separated RGBA components.

Parameters
red[in] The red color component ([0..1]).
green[in] The green color component ([0..1]).
blue[in] The blue color component ([0..1]).
alpha[in] The alpha component ([0..1]).

◆ setLabelColorRGB:

- (void) setLabelColorRGB: (int) color

Sets the edge label color.

Parameters
color[in] The edge label color.

◆ setTitle:

- (void) setTitle: (NSString *) title

Sets the edge title.

Parameters
title[in] The edge title.

◆ setWidth:

- (void) setWidth: (int) width

Sets the edge width.

Parameters
width[in] The edge width.

The documentation for this class was generated from the following file:
  • Sparksee.h