Package com.mxgraph.view

Examples of com.mxgraph.view.mxStylesheet


  /**
   * Constructs a new model codec.
   */
  public mxStylesheetCodec()
  {
    this(new mxStylesheet());
  }
View Full Code Here


  {
    Element node = enc.document.createElement(getName());

    if (obj instanceof mxStylesheet)
    {
      mxStylesheet stylesheet = (mxStylesheet) obj;
      Iterator<Map.Entry<String, Map<String, Object>>> it = stylesheet
          .getStyles().entrySet().iterator();

      while (it.hasNext())
      {
        Map.Entry<String, Map<String, Object>> entry = it.next();
View Full Code Here

  private Controller controller;
 
  SkeletonTreeBuilder(Controller controller, mxGraph graph, mxCell parent) {
    super();
    this.graph = graph;
    mxStylesheet stylesheet = graph.getStylesheet();
    Hashtable<String, Object> style = new Hashtable<String, Object>();
    style.put(mxConstants.STYLE_ENDARROW, "none");
    style.put(mxConstants.STYLE_DASHED, true);
    style.put(mxConstants.STYLE_EDGE, mxConstants.EDGESTYLE_TOPTOBOTTOM);
    stylesheet.putCellStyle("MYEDGE", style);

    this.parent = parent;
   
    this.strace = new Stack<Skeleton<?, ?>>();
    this.controller = controller;
View Full Code Here

        }
    }

    @Override
    protected mxStylesheet createStylesheet() {
        mxStylesheet s = new mxStylesheet();

        Map<String, Object> style = new HashMap<String, Object>();
        style.put(mxConstants.STYLE_SHAPE, SVNRevisionGraph.LINK_SHAPE);
        style.put(mxConstants.STYLE_ENDARROW, "no arrow");
        s.putCellStyle(SVNRevisionGraph.IN_BRANCH_LINK_STYLE, new HashMap<String, Object>(style));

        style.put(mxConstants.STYLE_SHAPE, SVNRevisionGraph.LINK_SHAPE);
        style.put(mxConstants.STYLE_ENDARROW, mxConstants.ARROW_CLASSIC);
        s.putCellStyle(SVNRevisionGraph.COPY_OR_MERGE_LINK_STYLE, new HashMap<String, Object>(style));

        style.clear();
        style.put(mxConstants.STYLE_SHAPE, SVNRevisionGraph.REVISION_SHAPE);
        style.put(mxConstants.STYLE_FONTCOLOR, "black");
        style.put(mxConstants.STYLE_SPACING, 1);
        style.put(mxConstants.STYLE_SPACING_TOP, 2);
        style.put(mxConstants.STYLE_SPACING_LEFT, 1);
        s.putCellStyle(SVNRevisionGraph.REVISION_STYLE, new HashMap<String, Object>(style));

        return s;
    }
View Full Code Here

  /**
   * Constructs a new model codec.
   */
  public mxStylesheetCodec()
  {
    this(new mxStylesheet());
  }
View Full Code Here

  {
    Element node = enc.document.createElement(getName());

    if (obj instanceof mxStylesheet)
    {
      mxStylesheet stylesheet = (mxStylesheet) obj;
      Iterator<Map.Entry<String, Map<String, Object>>> it = stylesheet
          .getStyles().entrySet().iterator();

      while (it.hasNext())
      {
        Map.Entry<String, Map<String, Object>> entry = it.next();
View Full Code Here

  /**
   * Constructs a new model codec.
   */
  public mxStylesheetCodec()
  {
    this(new mxStylesheet());
  }
View Full Code Here

  {
    Element node = enc.document.createElement(getName());

    if (obj instanceof mxStylesheet)
    {
      mxStylesheet stylesheet = (mxStylesheet) obj;
      Iterator<Map.Entry<String, Map<String, Object>>> it = stylesheet
          .getStyles().entrySet().iterator();

      while (it.hasNext())
      {
        Map.Entry<String, Map<String, Object>> entry = it.next();
View Full Code Here

TOP

Related Classes of com.mxgraph.view.mxStylesheet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.