/** * Constructs a new stylesheet and assigns default styles. */ public mxStylesheet() { setDefaultVertexStyle(createDefaultVertexStyle()); setDefaultEdgeStyle(createDefaultEdgeStyle()); }
/** * Constructs a new stylesheet and assigns default styles. */ public mxStylesheet() { setDefaultVertexStyle(createDefaultVertexStyle()); setDefaultEdgeStyle(createDefaultEdgeStyle()); }
public TrackSchemeStylist(final JGraphXAdapter graphx, final TrackColorGenerator colorGenerator) { this.graphx = graphx; this.colorGenerator = colorGenerator; // Prepare styles final mxStylesheet styleSheet = graphx.getStylesheet(); styleSheet.setDefaultEdgeStyle(BASIC_EDGE_STYLE); styleSheet.setDefaultVertexStyle(SIMPLE_VERTEX_STYLE); styleSheet.putCellStyle(FULL_STYLE_NAME, FULL_VERTEX_STYLE); styleSheet.putCellStyle(SIMPLE_STYLE_NAME, SIMPLE_VERTEX_STYLE); }
public TrackSchemeStylist(final JGraphXAdapter graphx, final TrackColorGenerator colorGenerator) { this.graphx = graphx; this.colorGenerator = colorGenerator; // Prepare styles final mxStylesheet styleSheet = graphx.getStylesheet(); styleSheet.setDefaultEdgeStyle(BASIC_EDGE_STYLE); styleSheet.setDefaultVertexStyle(SIMPLE_VERTEX_STYLE); styleSheet.putCellStyle(FULL_STYLE_NAME, FULL_VERTEX_STYLE); styleSheet.putCellStyle(SIMPLE_STYLE_NAME, SIMPLE_VERTEX_STYLE); }
stylesheet.setDefaultVertexStyle(nodeStyle);
stylesheet.setDefaultVertexStyle(nodeStyle);