Package cytoscape.visual.calculators

Examples of cytoscape.visual.calculators.BasicCalculator


    DiscreteMapping map = new DiscreteMapping(NodeShape.class, CySBMLConstants.ATT_TYPE);
    map.putMapValue(CySBMLConstants.NODETYPE_SPECIES, NodeShape.RECT);
    map.putMapValue(CySBMLConstants.NODETYPE_REACTION, NodeShape.RECT);
    map.putMapValue(CySBMLConstants.NODETYPE_QUAL_SPECIES, NodeShape.RECT);
    map.putMapValue(CySBMLConstants.NODETYPE_QUAL_TRANSITION, NodeShape.RECT);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here


  }

  public static Calculator createNodeHeightCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.NODE_HEIGHT;
    PassThroughMapping map = new PassThroughMapping(Double.class, NetworkLayout.ATT_LAYOUT_HEIGHT);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType)
  }
View Full Code Here

  }
 
  public static Calculator createNodeWidthCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.NODE_WIDTH;
    PassThroughMapping map = new PassThroughMapping(Double.class, NetworkLayout.ATT_LAYOUT_WIDTH);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType)
  }
View Full Code Here

    VisualPropertyType pType = VisualPropertyType.NODE_SHAPE;
    DiscreteMapping map = new DiscreteMapping(NodeShape.class, CySBMLConstants.ATT_SBOTERM);
    map.putMapValue("SBO:0000405", NodeShape.VEE);       //INPUT
    map.putMapValue("SBO:0000250", NodeShape.ELLIPSE);   //GENE
    map.putMapValue("SBO:0000252", NodeShape.DIAMOND);   //TF
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here

    VisualPropertyType pType = VisualPropertyType.NODE_FILL_COLOR;
    DiscreteMapping map = new DiscreteMapping(Color.class, CySBMLConstants.ATT_SBOTERM);
    map.putMapValue("SBO:0000405", Color.GRAY);     //INPUT
    map.putMapValue("SBO:0000250", Color.WHITE);     //GENE
    map.putMapValue("SBO:0000252", Color.GRAY);      //TF
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here

    VisualPropertyType pType = VisualPropertyType.EDGE_TGTARROW_SHAPE;
    DiscreteMapping map = new DiscreteMapping(ArrowShape.class, CySBMLConstants.ATT_SBOTERM);   
    map.putMapValue("SBO:0000459", ArrowShape.ARROW);   //STIMULATOR
    map.putMapValue("SBO:0000020", ArrowShape.T);     //INHIBITOR
    map.putMapValue("SBO:0000019", ArrowShape.DIAMOND); //MODIFIER
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here

    VisualPropertyType pType = VisualPropertyType.EDGE_SRCARROW_SHAPE;
    DiscreteMapping map = new DiscreteMapping(ArrowShape.class, CySBMLConstants.ATT_SBOTERM);
    map.putMapValue("SBO:0000459", ArrowShape.NONE);       //STIMULATOR
    map.putMapValue("SBO:0000020", ArrowShape.CIRCLE);     //INHIBITOR
    map.putMapValue("SBO:0000019", ArrowShape.CIRCLE);       //MODIFIER
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here

    DiscreteMapping map = new DiscreteMapping(LineStyle.class, CySBMLConstants.ATT_SBOTERM);
    map.putMapValue("SBO:0000459", LineStyle.SOLID);       //STIMULATOR
    map.putMapValue("SBO:0000020", LineStyle.DASH_DOT);   //INHIBITOR
    map.putMapValue("SBO:0000019", LineStyle.DASH_DOT);   //MODIFIER
    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_PRODUCT, LineStyle.SOLID);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here

    VisualPropertyType pType = VisualPropertyType.EDGE_COLOR;
    DiscreteMapping map = new DiscreteMapping(Color.class, CySBMLConstants.ATT_SBOTERM);
    map.putMapValue("SBO:0000459", Color.BLACK);   //STIMULATOR
    map.putMapValue("SBO:0000020", Color.RED);     //INHIBITOR
    map.putMapValue("SBO:0000019", Color.BLUE);   //MODIFIER
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here

    DiscreteMapping map = new DiscreteMapping(Integer.class, CySBMLConstants.ATT_SBOTERM);
    Integer width = 5;
    map.putMapValue("SBO:0000459", width);       //STIMULATOR
    map.putMapValue("SBO:0000020", width);     //INHIBITOR
    map.putMapValue("SBO:0000019", width);       //MODIFIER
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
 
View Full Code Here

TOP

Related Classes of cytoscape.visual.calculators.BasicCalculator

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.