Package org.jgraph.graph

Examples of org.jgraph.graph.AttributeMap$SerializableRectangle2D


    protected GraphPortInterface createPortCell(String name, String type) {
        return new DefaultGraphPort(name, type);
    }

    protected Map initPortProperties(String type) {
        AttributeMap map = new AttributeMap();
        return map;
    }
View Full Code Here


   }

   @Override
   protected void updateStyle (GraphTransitionInterface gtra,Map propertyMap) {
      String style=GraphUtilities.getStyle((Transition)gtra.getUserObject());
      AttributeMap map = (AttributeMap)propertyMap.get(gtra);
      if (map==null) {
         map = new AttributeMap(gtra.getAttributes());
         propertyMap.put(gtra, map);
      }

      if (style.equals(GraphEAConstants.EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_NO_ROUTING_BEZIER)) {
          // fix for bezier no routing
View Full Code Here

    protected static Map renderers = new HashMap();

    public DefaultGraphPortView(Object cell) {
        super(cell);
        AttributeMap map = new AttributeMap();
        // CUSTOM: larger area for mouse cursor detection to improve usability when adding transitions, changed from 30,30 to 130,130
        GraphConstants.setSize(map, new Dimension(130, 130));
        // END CUSTOM
        super.setAttributes(map);
    }
View Full Code Here

     */
    public void setPortSize(Dimension d) {
        if (SIZE < 2) {
            SIZE = 2;
        }
        AttributeMap map = new AttributeMap();
        GraphConstants.setSize(map, d);
        super.setAttributes(map);
    }
View Full Code Here

        }
        return gprenderer;
    }

    public Rectangle2D getBounds() {
        AttributeMap map = new AttributeMap();
        Rectangle2D bounds = map.createRect(getLocation());
        bounds.setFrame(
                bounds.getX() - getGraphPortSize().width / 2,
                bounds.getY() - getGraphPortSize().height / 2,
                bounds.getWidth() + getGraphPortSize().width,
                bounds.getHeight() + getGraphPortSize().height);
View Full Code Here

TOP

Related Classes of org.jgraph.graph.AttributeMap$SerializableRectangle2D

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.