Package com.mxgraph.model

Examples of com.mxgraph.model.mxGeometry.translate()


            {
              double dx = o2.getX() - o1.getX();
              double dy = o2.getY() - o1.getY();

              geo = (mxGeometry) geo.clone();
              geo.translate(dx, dy);

              if (!geo.isRelative() && model.isVertex(cells[i])
                  && !isAllowNegativeCoordinates())
              {
                geo.setX(Math.max(0, geo.getX()));
View Full Code Here


    mxGeometry geo = model.getGeometry(cell);

    if (geo != null)
    {
      geo = (mxGeometry) geo.clone();
      geo.translate(dx, dy);

      if (!geo.isRelative() && model.isVertex(cell)
          && !isAllowNegativeCoordinates())
      {
        geo.setX(Math.max(0, geo.getX()));
View Full Code Here

              {
                double dx = o2.getX() - o1.getX();
                double dy = o2.getY() - o1.getY();

                geo = (mxGeometry) geo.clone();
                geo.translate(dx, dy);

                if (!geo.isRelative()
                    && model.isVertex(cells[i])
                    && !isAllowNegativeCoordinates())
                {
View Full Code Here

    mxGeometry geo = model.getGeometry(cell);

    if (geo != null)
    {
      geo = (mxGeometry) geo.clone();
      geo.translate(dx, dy);

      if (!geo.isRelative() && model.isVertex(cell)
          && !isAllowNegativeCoordinates())
      {
        geo.setX(Math.max(0, geo.getX()));
View Full Code Here

          if (isShiftRightwards())
          {
            if (state.getX() >= right)
            {
              geo = (mxGeometry) geo.clone();
              geo.translate(-dx, 0);
            }
            else
            {
              double tmpDx = Math.max(0, state.getX() - x0);
              geo = (mxGeometry) geo.clone();
View Full Code Here

            }
            else
            {
              double tmpDx = Math.max(0, state.getX() - x0);
              geo = (mxGeometry) geo.clone();
              geo.translate(-fx * tmpDx, 0);
            }
          }

          if (isShiftDownwards())
          {
View Full Code Here

          if (isShiftDownwards())
          {
            if (state.getY() >= bottom)
            {
              geo = (mxGeometry) geo.clone();
              geo.translate(0, -dy);
            }
            else
            {
              double tmpDy = Math.max(0, state.getY() - y0);
              geo = (mxGeometry) geo.clone();
View Full Code Here

            }
            else
            {
              double tmpDy = Math.max(0, state.getY() - y0);
              geo = (mxGeometry) geo.clone();
              geo.translate(0, -fy * tmpDy);
            }

            if (geo != model.getGeometry(cell))
            {
              model.setGeometry(cell, geo);
View Full Code Here

    mxGeometry geo = model.getGeometry(cell);

    if (geo != null)
    {
      geo = (mxGeometry) geo.clone();
      geo.translate(dx, dy);

      if (!geo.isRelative() && model.isVertex(cell)
          && !isAllowNegativeCoordinates())
      {
        geo.setX(Math.max(0, geo.getX()));
View Full Code Here

            {
              double dx = o2.getX() - o1.getX();
              double dy = o2.getY() - o1.getY();

              geo = (mxGeometry) geo.clone();
              geo.translate(dx, dy);

              if (!geo.isRelative() && model.isVertex(cells[i])
                  && !isAllowNegativeCoordinates())
              {
                geo.setX(Math.max(0, geo.getX()));
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.