Defines the appearance of the cells in a graph.
More...
|
| mxStylesheet () |
| Constructs a new stylesheet and assigns default styles. More...
|
|
void | PutCellStyle (string name, Dictionary< string, Object > style) |
| Stores the specified style under the given name. More...
|
|
Dictionary< string, Object > | GetCellStyle (string name, Dictionary< string, Object > defaultStyle) |
| Returns the cell style for the specified cell or the given defaultStyle if no style can be found for the given stylename. More...
|
|
|
static Dictionary< string, Object > | EMPTY_STYLE = new Dictionary<string, Object>() |
| Shared immutable empty dictionary (for undefined cell styles). More...
|
|
|
Dictionary< string, Dictionary
< string, Object > > | styles |
| Maps from names to styles. More...
|
|
|
Dictionary< string, Dictionary
< string, Object > > | Styles [get, set] |
| Sets or returns the map that contains the styles. More...
|
|
Dictionary< string, Object > | DefaultVertexStyle [get, set] |
| Sets or returns the default style for vertices. More...
|
|
Dictionary< string, Object > | DefaultEdgeStyle [get, set] |
| Sets or returns the default style for edges. More...
|
|
Defines the appearance of the cells in a graph.
com.mxgraph.mxStylesheet.mxStylesheet |
( |
| ) |
|
|
inline |
Constructs a new stylesheet and assigns default styles.
Dictionary<string, Object> com.mxgraph.mxStylesheet.CreateDefaultEdgeStyle |
( |
| ) |
|
|
inlineprotected |
Creates and returns the default edge style.
- Returns
- Returns the default edge style.
Dictionary<string, Object> com.mxgraph.mxStylesheet.CreateDefaultVertexStyle |
( |
| ) |
|
|
inlineprotected |
Creates and returns the default vertex style.
- Returns
- Returns the default vertex style.
Dictionary<string, Object> com.mxgraph.mxStylesheet.GetCellStyle |
( |
string |
name, |
|
|
Dictionary< string, Object > |
defaultStyle |
|
) |
| |
|
inline |
Returns the cell style for the specified cell or the given defaultStyle if no style can be found for the given stylename.
- Parameters
-
name | String of the form [(stylename|key=value);] that represents the style. |
defaultStyle | Default style to be returned if no style can be found. |
- Returns
- Returns the style for the given formatted cell style.
References com.mxgraph.mxConstants.NONE.
void com.mxgraph.mxStylesheet.PutCellStyle |
( |
string |
name, |
|
|
Dictionary< string, Object > |
style |
|
) |
| |
|
inline |
Stores the specified style under the given name.
- Parameters
-
name | Name for the style to be stored. |
style | Key, value pairs that define the style. |
Dictionary<string, Object> com.mxgraph.mxStylesheet.EMPTY_STYLE = new Dictionary<string, Object>() |
|
static |
Shared immutable empty dictionary (for undefined cell styles).
Dictionary<string, Dictionary<string, Object> > com.mxgraph.mxStylesheet.styles |
|
protected |
Initial value:=
new Dictionary<string, Dictionary<string, Object>>()
Maps from names to styles.
Dictionary<string, Object> com.mxgraph.mxStylesheet.DefaultEdgeStyle |
|
getset |
Sets or returns the default style for edges.
Dictionary<string, Object> com.mxgraph.mxStylesheet.DefaultVertexStyle |
|
getset |
Sets or returns the default style for vertices.
Dictionary<string, Dictionary<string, Object> > com.mxgraph.mxStylesheet.Styles |
|
getset |
Sets or returns the map that contains the styles.
The documentation for this class was generated from the following file: