Package com.mxgraph.util

Examples of com.mxgraph.util.mxRectangle.grow()


      currentAngle = ((pt.getX() > cx) ? -1 : 1) * Math.acos(dy / c)
          + PI4 + initialAngle;

      dirty.add(mxUtils.getBoundingBox(currentState, currentAngle
          * mxConstants.DEG_PER_RAD));
      dirty.grow(1);

      // TODO: Compute dirty rectangle and repaint
      graphComponent.getGraphControl().repaint(dirty.getRectangle());
      e.consume();
    }
View Full Code Here


    if (currentState != null && first != null)
    {
      dirty = mxUtils.getBoundingBox(currentState, currentAngle
          * mxConstants.DEG_PER_RAD);
      dirty.grow(1);
    }

    currentState = null;
    currentAngle = 0;
    first = null;
View Full Code Here

  {
    mxRectangle bounds = new mxRectangle(getRectangle());

    if (border != 0)
    {
      bounds.grow(border);
    }

    return bounds;
  }
View Full Code Here

      {
        ms = (int) Math.round(mxConstants.DEFAULT_MARKERSIZE * scale);
      }

      // Adds the strokewidth
      rect.grow(ms + strokeWidth);

      // Adds worst case border for an arrow shape
      if (mxUtils.getString(style, mxConstants.STYLE_SHAPE, "").equals(
          mxConstants.SHAPE_ARROW))
      {
View Full Code Here

      // Adds worst case border for an arrow shape
      if (mxUtils.getString(style, mxConstants.STYLE_SHAPE, "").equals(
          mxConstants.SHAPE_ARROW))
      {
        rect.grow(mxConstants.ARROW_WIDTH / 2);
      }
    }
    else
    {
      rect.grow(strokeWidth);
View Full Code Here

        rect.grow(mxConstants.ARROW_WIDTH / 2);
      }
    }
    else
    {
      rect.grow(strokeWidth);
    }

    // Adds extra pixels for the shadow
    if (mxUtils.isTrue(style, mxConstants.STYLE_SHADOW))
    {
View Full Code Here

      // Adds scaled stroke width
      int border = (int) Math
          .ceil(mxUtils.getDouble(state.getStyle(),
              mxConstants.STYLE_STROKEWIDTH)
              * graph.getView().getScale()) + 1;
      tmp.grow(border);

      if (mxUtils.isTrue(state.getStyle(), mxConstants.STYLE_SHADOW))
      {
        tmp.setWidth(tmp.getWidth() + mxConstants.SHADOW_OFFSETX);
        tmp.setHeight(tmp.getHeight() + mxConstants.SHADOW_OFFSETX);
View Full Code Here

      currentAngle = ((pt.getX() > cx) ? -1 : 1) * Math.acos(dy / c)
          + PI4 + initialAngle;

      dirty.add(mxUtils.getBoundingBox(currentState, currentAngle
          * mxConstants.DEG_PER_RAD));
      dirty.grow(1);

      // TODO: Compute dirty rectangle and repaint
      graphComponent.getGraphControl().repaint(dirty.getRectangle());
      e.consume();
    }
View Full Code Here

    if (currentState != null && first != null)
    {
      dirty = mxUtils.getBoundingBox(currentState, currentAngle
          * mxConstants.DEG_PER_RAD);
      dirty.grow(1);
    }

    currentState = null;
    currentAngle = 0;
    first = null;
View Full Code Here

      {
        ms = (int) Math.round(mxConstants.DEFAULT_MARKERSIZE * scale);
      }

      // Adds the strokewidth
      rect.grow(ms + strokeWidth);

      // Adds worst case border for an arrow shape
      if (mxUtils.getString(style, mxConstants.STYLE_SHAPE, "").equals(
          mxConstants.SHAPE_ARROW))
      {
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.