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.ELLIPSE);
    map.putMapValue(CySBMLConstants.NODETYPE_REACTION, NodeShape.DIAMOND);
    map.putMapValue(CySBMLConstants.NODETYPE_QUAL_SPECIES, NodeShape.ELLIPSE);
    map.putMapValue(CySBMLConstants.NODETYPE_QUAL_TRANSITION, NodeShape.DIAMOND);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here


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

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

  }
 
  public static Calculator createNodeLabelCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.NODE_LABEL;
    PassThroughMapping map = new PassThroughMapping(String.class , CySBMLConstants.ATT_NAME);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here

    DiscreteMapping map = new DiscreteMapping(Color.class, CySBMLConstants.ATT_REVERSIBLE);
    Color gray = new Color(204,204,204)
    Color red = new Color(255,102,102);
    map.putMapValue(true, gray);
    map.putMapValue(false, red);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here

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

      } else {
        map.putMapValue(colorClass, Color.LIGHT_GRAY);
      }
      k++;
    }
    return new BasicCalculator(createCalculatorName(style, pType), map, pType)
  }
View Full Code Here

    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_PRODUCT, ArrowShape.ARROW);
    map.putMapValue(CySBMLConstants.EDGETYPE_TRANSITION_OUTPUT, ArrowShape.ARROW);
    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_REACTANT, ArrowShape.NONE);
    map.putMapValue(CySBMLConstants.EDGETYPE_TRANSITION_INPUT, ArrowShape.NONE);
    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_MODIFIER, ArrowShape.DIAMOND);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here

    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_PRODUCT, ArrowShape.NONE);
    map.putMapValue(CySBMLConstants.EDGETYPE_TRANSITION_OUTPUT, ArrowShape.NONE)
    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_REACTANT, ArrowShape.NONE);
    map.putMapValue(CySBMLConstants.EDGETYPE_TRANSITION_INPUT, ArrowShape.NONE);
    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_MODIFIER, ArrowShape.CIRCLE);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
View Full Code Here

    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_PRODUCT, Color.BLACK);
    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_REACTANT, Color.BLACK);
    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_MODIFIER, Color.BLUE);
    map.putMapValue(CySBMLConstants.EDGETYPE_TRANSITION_OUTPUT, Color.BLACK);
    map.putMapValue(CySBMLConstants.EDGETYPE_TRANSITION_INPUT, Color.BLACK);
    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.