mxGraph
|
Defines the appearance of the cells in a graph. More...
Public Member Functions | |
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 Public Attributes | |
static Dictionary< string, Object > | EMPTY_STYLE = new Dictionary<string, Object>() |
Shared immutable empty dictionary (for undefined cell styles). More... | |
Protected Member Functions | |
Dictionary< string, Object > | CreateDefaultVertexStyle () |
Creates and returns the default vertex style. More... | |
Dictionary< string, Object > | CreateDefaultEdgeStyle () |
Creates and returns the default edge style. More... | |
Protected Attributes | |
Dictionary< string, Dictionary< string, Object > > | styles |
Maps from names to styles. More... | |
Properties | |
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.
|
inline |
Constructs a new stylesheet and assigns default styles.
|
inlineprotected |
Creates and returns the default edge style.
References com.mxgraph.mxConstants.ALIGN_CENTER, com.mxgraph.mxConstants.ALIGN_MIDDLE, com.mxgraph.mxConstants.ARROW_CLASSIC, com.mxgraph.mxConstants.SHAPE_CONNECTOR, com.mxgraph.mxConstants.STYLE_ALIGN, com.mxgraph.mxConstants.STYLE_ENDARROW, com.mxgraph.mxConstants.STYLE_FONTCOLOR, com.mxgraph.mxConstants.STYLE_SHAPE, com.mxgraph.mxConstants.STYLE_STROKECOLOR, and com.mxgraph.mxConstants.STYLE_VERTICAL_ALIGN.
|
inlineprotected |
Creates and returns the default vertex style.
References com.mxgraph.mxConstants.ALIGN_CENTER, com.mxgraph.mxConstants.ALIGN_MIDDLE, com.mxgraph.mxPerimeter.RectanglePerimeter, com.mxgraph.mxConstants.SHAPE_RECTANGLE, com.mxgraph.mxConstants.STYLE_ALIGN, com.mxgraph.mxConstants.STYLE_FILLCOLOR, com.mxgraph.mxConstants.STYLE_FONTCOLOR, com.mxgraph.mxConstants.STYLE_PERIMETER, com.mxgraph.mxConstants.STYLE_SHAPE, com.mxgraph.mxConstants.STYLE_STROKECOLOR, and com.mxgraph.mxConstants.STYLE_VERTICAL_ALIGN.
|
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. |
References com.mxgraph.mxConstants.NONE.
Referenced by com.mxgraph.mxGraph.GetCellStyle().
|
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. |
|
static |
Shared immutable empty dictionary (for undefined cell styles).
Referenced by com.mxgraph.mxGraph.GetCellStyle().
|
protected |
Maps from names to styles.
|
getset |
Sets or returns the default style for edges.
Referenced by com.mxgraph.mxGraph.GetCellStyle().
|
getset |
Sets or returns the default style for vertices.
Referenced by com.mxgraph.mxGraph.GetCellStyle().
|
getset |
Sets or returns the map that contains the styles.