/** * Gets the horizontal projector of this tiled view. * The returned horizontal projector is a reference to that for the tile * that contains this tiled view or null, if this tiled view is not in a * tile. * @return the horizontal projector; null, if none. */ public Projector getHorizontalProjector() { return (_tile!=null)?_tile.getHorizontalProjector():null; }
Tile tile = (Tile)source; Container frame = tile.getTopLevelAncestor(); Projector hp = tile.getHorizontalProjector(); Projector vp = tile.getVerticalProjector(); DRectangle r = tile.getViewRectangle();
private Point complexToPoint(Cdouble z) { Transcaler ts = _tile.getTranscaler(); Projector hp = _tile.getHorizontalProjector(); Projector vp = _tile.getVerticalProjector(); double xu = hp.u(z.r); double yu = vp.u(z.i); int xp = ts.x(xu); int yp = ts.y(yu); return new Point(xp,yp); }
tile.getHorizontalProjector() : tile.getVerticalProjector(); Transcaler t = tile.getTranscaler(w,h);
private Cdouble pointToComplex(int x, int y) { Transcaler ts = _tile.getTranscaler(); Projector hp = _tile.getHorizontalProjector(); Projector vp = _tile.getVerticalProjector(); double xu = ts.x(x); double yu = ts.y(y); double xv = hp.v(xu); double yv = vp.v(yu); return roundToReal(new Cdouble(xv,yv)); }
tile.getHorizontalProjector() : tile.getVerticalProjector(); Transcaler t = tile.getTranscaler(w,h);