Examples of VisualPropertyType


Examples of cytoscape.visual.VisualPropertyType

 
 
  /// NODE CALCULATORS ///
 
  public static Calculator createNodeShapeCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.NODE_SHAPE;
    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);
View Full Code Here

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue(CySBMLConstants.NODETYPE_QUAL_TRANSITION, NodeShape.DIAMOND);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
 
  public static Calculator createNodeLabelOpacityCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.NODE_LABEL_OPACITY;
    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));
View Full Code Here

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue(CySBMLConstants.NODETYPE_QUAL_TRANSITION, new Double(1.0));
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
 
  public static Calculator createNodeSizeCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.NODE_SIZE;
    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));
View Full Code Here

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue(CySBMLConstants.NODETYPE_QUAL_TRANSITION, new Double(30.0));
    return new BasicCalculator(createCalculatorName(style, pType), map, pType)
  }
 
  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

Examples of cytoscape.visual.VisualPropertyType

    PassThroughMapping map = new PassThroughMapping(String.class , CySBMLConstants.ATT_NAME);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
 
  public static Calculator createNodeFillColorCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.NODE_FILL_COLOR;
    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);
View Full Code Here

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue(false, red);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }

  public static Calculator createNodeLineWidthCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.NODE_LINE_WIDTH;
    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);
View Full Code Here

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue(CySBMLConstants.NODETYPE_QUAL_TRANSITION, 1.0);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType)
  }
 
  public static Calculator createNodeBorderColorCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.NODE_BORDER_COLOR;
    Set<Object> compartments = AttributeUtils.getValueSet(CySBMLConstants.ATT_COMPARTMENT);
    List<String> colorClasses = new LinkedList<String>();
    for (Object obj: compartments){
      colorClasses.add( (String) obj);
    }
View Full Code Here

Examples of cytoscape.visual.VisualPropertyType

  }
 
  /// EDGE CALCULATORS ///
   
  public static Calculator createEdgeTargetArrowCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.EDGE_TGTARROW_SHAPE;
    DiscreteMapping map = new DiscreteMapping(ArrowShape.class, Semantics.INTERACTION);
    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);
View Full Code Here

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_MODIFIER, ArrowShape.DIAMOND);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
 
  public static Calculator createEdgeSourceArrowCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.EDGE_SRCARROW_SHAPE;
    DiscreteMapping map = new DiscreteMapping(ArrowShape.class, Semantics.INTERACTION);
    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);
View Full Code Here

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_MODIFIER, ArrowShape.CIRCLE);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
 
  public static Calculator createEdgeColorCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.EDGE_COLOR;
    DiscreteMapping map = new DiscreteMapping(Color.class, Semantics.INTERACTION);
    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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.