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.RECT);
    map.putMapValue(CySBMLConstants.NODETYPE_REACTION, NodeShape.RECT);
    map.putMapValue(CySBMLConstants.NODETYPE_QUAL_SPECIES, NodeShape.RECT);
    map.putMapValue(CySBMLConstants.NODETYPE_QUAL_TRANSITION, NodeShape.RECT);
View Full Code Here

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue(CySBMLConstants.NODETYPE_QUAL_TRANSITION, NodeShape.RECT);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }

  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

Examples of cytoscape.visual.VisualPropertyType

    PassThroughMapping map = new PassThroughMapping(Double.class, NetworkLayout.ATT_LAYOUT_HEIGHT);
    return new BasicCalculator(createCalculatorName(style, pType), map, pType)
  }
 
  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

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_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

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue("SBO:0000250", NodeShape.ELLIPSE);   //GENE
    map.putMapValue("SBO:0000252", NodeShape.DIAMOND);   //TF
    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_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

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, 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

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue("SBO:0000020", ArrowShape.T);     //INHIBITOR
    map.putMapValue("SBO:0000019", ArrowShape.DIAMOND); //MODIFIER
    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, 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

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue("SBO:0000020", ArrowShape.CIRCLE);     //INHIBITOR
    map.putMapValue("SBO:0000019", ArrowShape.CIRCLE);       //MODIFIER
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
  public static Calculator createEdgeLineStyleCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.EDGE_LINE_STYLE;
    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);
View Full Code Here

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue("SBO:0000019", LineStyle.DASH_DOT);   //MODIFIER
    map.putMapValue(CySBMLConstants.EDGETYPE_REACTION_PRODUCT, LineStyle.SOLID);
    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, 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

Examples of cytoscape.visual.VisualPropertyType

    map.putMapValue("SBO:0000020", Color.RED);     //INHIBITOR
    map.putMapValue("SBO:0000019", Color.BLUE);   //MODIFIER
    return new BasicCalculator(createCalculatorName(style, pType), map, pType);
  }
  public static Calculator createEdgeLineWidthCalculator(CustomStyle style){
    VisualPropertyType pType = VisualPropertyType.EDGE_LINE_WIDTH;
    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
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.