Package org.renjin.graphics.geom

Examples of org.renjin.graphics.geom.Point


  public static final int NPC = 17;

  @Internal
  @DataParallel
  public static double grconvertX(@Current Context context, @Recycle double x, int from, int to) {
    return grConvert(context, new Point(x, Double.NaN), from, to).getX();
  }
View Full Code Here


  }

  @Internal
  @DataParallel
  public static double grconvertY(@Current Context context, @Recycle double y, int from, int to) {
    return grConvert(context, new Point(Double.NaN, y), from, to).getY();
  }
View Full Code Here

    return grConvert(context, new Point(Double.NaN, y), from, to).getY();
  }
  private static Point grConvert(Context context, Point point, int from, int to) {
    GraphicsDevice active = context.getSession().getSingleton(GraphicsDevices.class).getActive();
    Point device = toDeviceCoordinates(active, point, from);
    return fromDeviceCoordinates(active, device, to);
  }
View Full Code Here

        (rect.getY1() - coordinates.getY1()) / coordinates.getHeight(),
        (rect.getY2() - coordinates.getY1()) / coordinates.getHeight());
  }
 
  public Point normalize(Point point) {
    return new Point(
        (point.getX() - coordinates.getX1()) / coordinates.getWidth(),
        (point.getY() - coordinates.getY1()) / coordinates.getHeight());
  }
View Full Code Here

        n = main.length();
        offset = 0.5 * (n - 1) + vpos;
        for (i = 0; i < n; i++) {
          String text = ((Vector)main).getElementAsString(i);
          if(!StringVector.isNA(text)) {
            dd.text(new Point(hpos, offset - i), where, text,
                new Point(adj, adjy), 0.0);
          }
        }
      }
    }
      //    if (sub != R_NilValue) {
View Full Code Here

TOP

Related Classes of org.renjin.graphics.geom.Point

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.