mxGraph
|
Defines the appearance of the cells in a graph. More...
Public Member Functions | |
mxStylesheet () | |
Constructs a new stylesheet and assigns default styles. | |
void | PutCellStyle (string name, Dictionary< string, Object > style) |
Stores the specified style under the given name. | |
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. | |
Static Public Attributes | |
static Dictionary< string, Object > | EMPTY_STYLE = new Dictionary<string, Object>() |
Shared immutable empty dictionary (for undefined cell styles). | |
Protected Member Functions | |
Dictionary< string, Object > | CreateDefaultVertexStyle () |
Creates and returns the default vertex style. | |
Dictionary< string, Object > | CreateDefaultEdgeStyle () |
Creates and returns the default edge style. | |
Protected Attributes | |
Dictionary< string, Dictionary < string, Object > > | styles |
Maps from names to styles. | |
Properties | |
Dictionary< string, Dictionary < string, Object > > | Styles [get, set] |
Sets or returns the map that contains the styles. | |
Dictionary< string, Object > | DefaultVertexStyle [get, set] |
Sets or returns the default style for vertices. | |
Dictionary< string, Object > | DefaultEdgeStyle [get, set] |
Sets or returns the default style for edges. |
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 | ( | ) | [inline, protected] |
Creates and returns the default edge style.
Dictionary<string, Object> com.mxgraph.mxStylesheet.CreateDefaultVertexStyle | ( | ) | [inline, protected] |
Creates and 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.
name | String of the form [(stylename|key=value);] that represents the style. |
defaultStyle | Default style to be returned if no style can be found. |
void com.mxgraph.mxStylesheet.PutCellStyle | ( | string | name, |
Dictionary< string, Object > | style | ||
) | [inline] |
Stores the specified style under the given name.
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] |
new Dictionary<string, Dictionary<string, Object>>()
Maps from names to styles.
Dictionary<string, Object> com.mxgraph.mxStylesheet.DefaultEdgeStyle [get, set] |
Sets or returns the default style for edges.
Dictionary<string, Object> com.mxgraph.mxStylesheet.DefaultVertexStyle [get, set] |
Sets or returns the default style for vertices.
Dictionary<string, Dictionary<string, Object> > com.mxgraph.mxStylesheet.Styles [get, set] |
Sets or returns the map that contains the styles.