libSBML C API
5.18.0
|
Local and global styles in the SBML Level 3 Render package have many attributes and methods in common. These have been implemented in the abstract base class Style_t.
A style is a graphical representation for certain layout objects. The assignment of styles to individual layout objects can either be done through layout object ids (local styles only), layout object types (SPECIES, COMPARTMENT, etc.) or layout object roles.
Public Member Functions | |
Style_t * | Style_clone (const Style_t *s) |
Creates and returns a deep copy of this Style_t object. More... | |
Style_t * | Style_createGlobalStyle (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new GlobalStyle_t (Style_t) using the given SBML Level, Version and “render” package version. More... | |
RenderGroup_t * | Style_createGroup (Style_t *s) |
Creates a new RenderGroup_t object, adds it to this Style_t object and returns the RenderGroup_t object created. More... | |
Style_t * | Style_createLocalStyle (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new LocalStyle_t (Style_t) using the given SBML Level, Version and “render” package version. More... | |
void | Style_free (Style_t *s) |
Frees this Style_t object. More... | |
const RenderGroup_t * | Style_getGroup (const Style_t *s) |
Returns the value of the "group" element of this Style_t. More... | |
char * | Style_getId (const Style_t *s) |
Returns the value of the "id" attribute of this Style_t. More... | |
char * | Style_getName (const Style_t *s) |
Returns the value of the "name" attribute of this Style_t. More... | |
int | Style_hasRequiredAttributes (const Style_t *s) |
Predicate returning 1 (true) if all the required attributes for this Style_t object have been set. More... | |
int | Style_isGlobalStyle (const Style_t *s) |
Predicate returning 1 if this Style_t is of type GlobalStyle_t. More... | |
int | Style_isLocalStyle (const Style_t *s) |
Predicate returning 1 if this Style_t is of type LocalStyle_t. More... | |
int | Style_isSetGroup (const Style_t *s) |
Predicate returning 1 (true) if this Style_t's "group" element is set. More... | |
int | Style_isSetId (const Style_t *s) |
Returns the value of the "roleList" attribute of this Style_t. More... | |
int | Style_isSetName (const Style_t *s) |
Predicate returning 1 (true) if this Style_t's "name" attribute is set. More... | |
int | Style_setGroup (Style_t *s, const RenderGroup_t *group) |
Sets the value of the "group" element of this Style_t. More... | |
int | Style_setId (Style_t *s, const char *id) |
Sets the value of the "id" attribute of this Style_t. More... | |
int | Style_setName (Style_t *s, const char *name) |
Sets the value of the "name" attribute of this Style_t. More... | |
int | Style_setRoleList (Style_t *s, const char *roleList) |
Sets the value of the "roleList" attribute of this Style_t. More... | |
int | Style_setTypeList (Style_t *s, const char *typeList) |
Sets the value of the "typeList" attribute of this Style_t. More... | |
int | Style_unsetGroup (Style_t *s) |
Unsets the value of the "group" element of this Style_t. More... | |
int | Style_unsetId (Style_t *s) |
Unsets the value of the "id" attribute of this Style_t. More... | |
int | Style_unsetName (Style_t *s) |
Unsets the value of the "name" attribute of this Style_t. More... | |
int | Style_unsetRoleList (Style_t *s) |
Unsets the value of the "roleList" attribute of this Style_t. More... | |
int | Style_unsetTypeList (Style_t *s) |
Unsets the value of the "typeList" attribute of this Style_t. More... | |
Creates and returns a deep copy of this Style_t object.
s | the Style_t structure. |
Style_t * Style_createGlobalStyle | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new GlobalStyle_t (Style_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Style_t. |
version | an unsigned int, the SBML Version to assign to this Style_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Style_t. |
RenderGroup_t * Style_createGroup | ( | Style_t * | s | ) |
Creates a new RenderGroup_t object, adds it to this Style_t object and returns the RenderGroup_t object created.
s | the Style_t structure to which the RenderGroup_t should be added. |
Style_t * Style_createLocalStyle | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new LocalStyle_t (Style_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Style_t. |
version | an unsigned int, the SBML Version to assign to this Style_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Style_t. |
const RenderGroup_t * Style_getGroup | ( | const Style_t * | s | ) |
Returns the value of the "group" element of this Style_t.
s | the Style_t structure whose group is sought. |
char * Style_getId | ( | const Style_t * | s | ) |
Returns the value of the "id" attribute of this Style_t.
s | the Style_t structure whose id is sought. |
char * Style_getName | ( | const Style_t * | s | ) |
Returns the value of the "name" attribute of this Style_t.
s | the Style_t structure whose name is sought. |
int Style_hasRequiredAttributes | ( | const Style_t * | s | ) |
int Style_isGlobalStyle | ( | const Style_t * | s | ) |
Predicate returning 1
if this Style_t is of type GlobalStyle_t.
s | the Style_t structure. |
1
if this Style_t is of type GlobalStyle_t, 0
otherwise int Style_isLocalStyle | ( | const Style_t * | s | ) |
Predicate returning 1
if this Style_t is of type LocalStyle_t.
s | the Style_t structure. |
1
if this Style_t is of type LocalStyle_t, 0
otherwise int Style_isSetGroup | ( | const Style_t * | s | ) |
int Style_isSetId | ( | const Style_t * | s | ) |
Returns the value of the "roleList" attribute of this Style_t.
s | the Style_t structure whose roleList is sought. |
s | the Style_t structure whose typeList is sought. |
1
(true) if this Style_t's "id" attribute is set.s | the Style_t structure. |
1
(true) if this Style_t's "id" attribute has been set, otherwise 0
(false) is returned. int Style_isSetName | ( | const Style_t * | s | ) |
int Style_setGroup | ( | Style_t * | s, |
const RenderGroup_t * | group | ||
) |
Sets the value of the "group" element of this Style_t.
s | the Style_t structure. |
group | RenderGroup_t value of the "group" element to be set. |
int Style_setId | ( | Style_t * | s, |
const char * | id | ||
) |
Sets the value of the "id" attribute of this Style_t.
s | the Style_t structure. |
id | const char * value of the "id" attribute to be set. |
id
= NULL
or an empty string is equivalent to calling Style_unsetId(). int Style_setName | ( | Style_t * | s, |
const char * | name | ||
) |
Sets the value of the "name" attribute of this Style_t.
s | the Style_t structure. |
name | const char * value of the "name" attribute to be set. |
name
= NULL
or an empty string is equivalent to calling Style_unsetName(). int Style_setRoleList | ( | Style_t * | s, |
const char * | roleList | ||
) |
Sets the value of the "roleList" attribute of this Style_t.
s | the Style_t structure. |
roleList | const char * value of the "roleList" attribute to be set. |
roleList
= NULL
or an empty string is equivalent to calling Style_unsetRoleList(). int Style_setTypeList | ( | Style_t * | s, |
const char * | typeList | ||
) |
Sets the value of the "typeList" attribute of this Style_t.
s | the Style_t structure. |
typeList | const char * value of the "typeList" attribute to be set. |
"COMPARTMENTGLYPH"
: The style is to be applied to all compartment glyphs.
"SPECIESGLYPH"
: The style is to be applied to all species glyphs.
"REACTIONGLYPH"
: The style is to be applied to all reaction glyphs.
"SPECIESREFERENCEGLYPH"
: The style is to be applied to all species reference glyphs.
"TEXTGLYPH"
: The style is to be applied to all text glyphs.
"GENERALGLYPH"
: The style is to be applied to all general glyphs.
"GRAPHICALOBJECT"
: The style is to be applied to all graphical objects.
"ANY"
: The style is to be applied to any and all glyphs and graphical objects. Equivalent to explicitly listing all other keywords.
typeList
= NULL
or an empty string is equivalent to calling Style_unsetTypeList(). int Style_unsetGroup | ( | Style_t * | s | ) |
Unsets the value of the "group" element of this Style_t.
s | the Style_t structure. |
int Style_unsetId | ( | Style_t * | s | ) |
Unsets the value of the "id" attribute of this Style_t.
s | the Style_t structure. |
int Style_unsetName | ( | Style_t * | s | ) |
Unsets the value of the "name" attribute of this Style_t.
s | the Style_t structure. |
int Style_unsetRoleList | ( | Style_t * | s | ) |
Unsets the value of the "roleList" attribute of this Style_t.
s | the Style_t structure. |
int Style_unsetTypeList | ( | Style_t * | s | ) |
Unsets the value of the "typeList" attribute of this Style_t.
s | the Style_t structure. |
"COMPARTMENTGLYPH"
: The style is to be applied to all compartment glyphs.
"SPECIESGLYPH"
: The style is to be applied to all species glyphs.
"REACTIONGLYPH"
: The style is to be applied to all reaction glyphs.
"SPECIESREFERENCEGLYPH"
: The style is to be applied to all species reference glyphs.
"TEXTGLYPH"
: The style is to be applied to all text glyphs.
"GENERALGLYPH"
: The style is to be applied to all general glyphs.
"GRAPHICALOBJECT"
: The style is to be applied to all graphical objects.
"ANY"
: The style is to be applied to any and all glyphs and graphical objects. Equivalent to explicitly listing all other keywords.