Exemplo n.º 1
0
 @Override
 public Rect getDisplayExtent(int doc, int gs) {
   final Floats box = new Floats(4);
   if (mView.coreView().getDisplayExtent(doc, gs, box)) {
     return new Rect(
         Math.round(box.get(0)),
         Math.round(box.get(1)),
         Math.round(box.get(2)),
         Math.round(box.get(3)));
   }
   return new Rect();
 }
Exemplo n.º 2
0
 @Override
 public Rect getBoundingBox() {
   final Floats box = new Floats(4);
   if (mView.coreView().getBoundingBox(box)) {
     return new Rect(
         Math.round(box.get(0)),
         Math.round(box.get(1)),
         Math.round(box.get(2)),
         Math.round(box.get(3)));
   }
   return new Rect();
 }
Exemplo n.º 3
0
 @Override
 public PointF displayToModel(float x, float y) {
   final Floats pt = new Floats(x, y);
   if (mView.coreView().displayToModel(pt)) return new PointF(pt.get(0), pt.get(1));
   return null;
 }