/** * There's no real anchor for table cells - this method is used to * temporarily store the location of the cell for a later retrieval, e.g. * for rendering * * @since POI 3.15-beta2 */ @Override public void setAnchor(Rectangle2D anchor) { if (this.anchor == null) { this.anchor = (Rectangle2D) anchor.clone(); } else { this.anchor.setRect(anchor); } }
/** Returns a clone of the specified rectangle. */ public Rectangle2D createIntersection(Rectangle2D rect) { return (Rectangle2D) rect.clone(); }
Rectangle2D bounds = (Rectangle2D) getLabelBounds().clone();
/** * Returns this filter's bounds */ public Rectangle2D getBounds2D(){ return (Rectangle2D)tiledRegion.clone(); }
/** * Get the turbulence region */ public Rectangle2D getTurbulenceRegion() { return (Rectangle2D)region.clone(); }
/** * Get the turbulence region */ public Rectangle2D getBounds2D() { return (Rectangle2D)region.clone(); }
/** * Pass-through: returns the source's bounds */ public Rectangle2D getBounds2D(){ return (Rectangle2D)filterRegion.clone(); }
/** * Returns a new rectangle containing the bounds for this page (as supplied * to the constructor). * * @return The page bounds. */ public Rectangle2D getBounds() { return (Rectangle2D) this.bounds.clone(); }
/** * Get the turbulence region */ public Rectangle2D getTurbulenceRegion() { return (Rectangle2D)region.clone(); }
/** * Get the turbulence region */ public Rectangle2D getBounds2D() { return (Rectangle2D)region.clone(); }
/** * The region to which this mask applies */ public Rectangle2D getFilterRegion(){ return (Rectangle2D)filterRegion.clone(); }
/** * Returns this filter's bounds */ public Rectangle2D getBounds2D(){ return (Rectangle2D)filterRegion.clone(); }
/** * Get the current rectangle for padding * @return Rectangle currently in use for pad. */ public Rectangle2D getPadRect() { return (Rectangle2D)padRect.clone(); }
/** * Returns this filter's bounds */ public Rectangle2D getBounds2D(){ return (Rectangle2D)(litRegion.clone()); }
/** * Returns the flood region */ public Rectangle2D getFloodRegion(){ return (Rectangle2D)floodRegion.clone(); }
/** * Get the current rectangle for padding * @return Rectangle currently in use for pad. */ public Rectangle2D getPadRect() { return (Rectangle2D)padRect.clone(); }
/** * Returns this filter's bounds */ public Rectangle2D getBounds2D(){ return (Rectangle2D)(litRegion.clone()); }
/** * Initialize a graphics context for wmf rendering * * @param graphicsCtx the graphics context to delegate drawing calls * @param bbox the bounding box of the wmf (taken from the placeable header) */ public HwmfGraphics(Graphics2D graphicsCtx, Rectangle2D bbox) { this.graphicsCtx = graphicsCtx; this.bbox = (Rectangle2D)bbox.clone(); this.initialAT = graphicsCtx.getTransform(); DrawFactory.getInstance(graphicsCtx).fixFonts(graphicsCtx); }
/** * Returns a <code>Rectangle2D</code> whose width and height are defined by * this instance's size and aspect ratio functions for this vertex. */ public Rectangle2D getRectangle(V v) { float width = vsf.transform(v); float height = width * varf.transform(v); float h_offset = -(width / 2); float v_offset = -(height / 2); theRectangle.setFrame(h_offset, v_offset, width, height); return (Rectangle2D) theRectangle.clone(); }
protected void paintPort(Graphics g, CellView p) { boolean offset = (GraphConstants.getOffset(p.getAllAttributes()) != null); Rectangle2D r = (offset) ? p.getBounds() : p.getParentView() .getBounds(); r = graph.toScreen((Rectangle2D) r.clone()); int s = 3; r.setFrame(r.getX() - s, r.getY() - s, r.getWidth() + 2 * s, r .getHeight() + 2 * s); graph.getUI().paintCell(g, p, r, true); }