public long getY() { if (size == null) { return y; } else { return size.getCy(); } } }
/** * get chart height * * @since POI 4.0.0 */ public long getChartHeight() { return ctInline.getExtent().getCy(); }
public int getDy2() { return (int)(getDy1() + t2d.getExt().getCy()); }
private CTMarker getCell2() { return cell2 != null ? cell2 : calcCell(getCell1(), size.getCx(), size.getCy()); }
@Override public Rectangle2D getAnchor(){ CTGroupTransform2D xfrm = getXfrm(); CTPoint2D off = xfrm.getOff(); double x = Units.toPoints(off.getX()); double y = Units.toPoints(off.getY()); CTPositiveSize2D ext = xfrm.getExt(); double cx = Units.toPoints(ext.getCx()); double cy = Units.toPoints(ext.getCy()); return new Rectangle2D.Double(x,y,cx,cy); }
@Override public Rectangle2D getAnchor() { CTTransform2D xfrm = getXfrm(false); if (xfrm == null) { return null; } CTPoint2D off = xfrm.getOff(); double x = Units.toPoints(off.getX()); double y = Units.toPoints(off.getY()); CTPositiveSize2D ext = xfrm.getExt(); double cx = Units.toPoints(ext.getCx()); double cy = Units.toPoints(ext.getCy()); return new Rectangle2D.Double(x, y, cx, cy); }
@Override public Rectangle2D getAnchor(){ CTTransform2D xfrm = ((CTGraphicalObjectFrame)getXmlObject()).getXfrm(); CTPoint2D off = xfrm.getOff(); double x = Units.toPoints(off.getX()); double y = Units.toPoints(off.getY()); CTPositiveSize2D ext = xfrm.getExt(); double cx = Units.toPoints(ext.getCx()); double cy = Units.toPoints(ext.getCy()); return new Rectangle2D.Double(x, y, cx, cy); }
/** * * @return the coordinates of the child extents rectangle * used for calculations of grouping, scaling, and rotation * behavior of shapes placed within a group. */ @Override public Rectangle2D getInteriorAnchor(){ CTGroupTransform2D xfrm = getXfrm(); CTPoint2D off = xfrm.getChOff(); double x = Units.toPoints(off.getX()); double y = Units.toPoints(off.getY()); CTPositiveSize2D ext = xfrm.getChExt(); double cx = Units.toPoints(ext.getCx()); double cy = Units.toPoints(ext.getCy()); return new Rectangle2D.Double(x, y, cx, cy); }
(xfrm.getOff().getX(), xfrm.getOff().getY(), xfrm.getExt().getCx(), xfrm.getExt().getCy());
public long getY() { if (size == null) { return y; } else { return size.getCy(); } } }
/** * get chart height * * @since POI 4.0.0 */ public long getChartHeight() { return ctInline.getExtent().getCy(); }
public int getDy2() { return (int)(getDy1() + t2d.getExt().getCy()); }
private CTMarker getCell2() { return cell2 != null ? cell2 : calcCell(getCell1(), size.getCx(), size.getCy()); }
public static StringBuilder getStyle( XWPFPicture picture ) { StringBuilder htmlStyle = new StringBuilder(); // Position CTPositiveSize2D ext = picture.getCTPicture().getSpPr().getXfrm().getExt(); long x = ext.getCx(); long y = ext.getCy(); float width = dxa2points( x ) / 635; float height = dxa2points( y ) / 635; XHTMLUtil.addHTMLStyle( htmlStyle, WIDTH, width + "pt" ); XHTMLUtil.addHTMLStyle( htmlStyle, HEIGHT, height + "pt" ); return htmlStyle; }
@Override public Rectangle2D getAnchor(){ CTGroupTransform2D xfrm = getXfrm(); CTPoint2D off = xfrm.getOff(); double x = Units.toPoints(off.getX()); double y = Units.toPoints(off.getY()); CTPositiveSize2D ext = xfrm.getExt(); double cx = Units.toPoints(ext.getCx()); double cy = Units.toPoints(ext.getCy()); return new Rectangle2D.Double(x,y,cx,cy); }
public Rectangle2D getAnchor(){ CTTransform2D xfrm = _shape.getXfrm(); CTPoint2D off = xfrm.getOff(); long x = off.getX(); long y = off.getY(); CTPositiveSize2D ext = xfrm.getExt(); long cx = ext.getCx(); long cy = ext.getCy(); return new Rectangle2D.Double( Units.toPoints(x), Units.toPoints(y), Units.toPoints(cx), Units.toPoints(cy)); }
@Override public Rectangle2D getAnchor() { CTTransform2D xfrm = getXfrm(); CTPoint2D off = xfrm.getOff(); long x = off.getX(); long y = off.getY(); CTPositiveSize2D ext = xfrm.getExt(); long cx = ext.getCx(); long cy = ext.getCy(); return new Rectangle2D.Double( Units.toPoints(x), Units.toPoints(y), Units.toPoints(cx), Units.toPoints(cy)); }
@Override public Rectangle2D getAnchor(){ CTGroupTransform2D xfrm = _spPr.getXfrm(); CTPoint2D off = xfrm.getOff(); long x = off.getX(); long y = off.getY(); CTPositiveSize2D ext = xfrm.getExt(); long cx = ext.getCx(); long cy = ext.getCy(); return new Rectangle2D.Double( Units.toPoints(x), Units.toPoints(y), Units.toPoints(cx), Units.toPoints(cy)); }
@Override public Rectangle2D getAnchor() { CTTransform2D xfrm = getXfrm(false); if (xfrm == null) { return null; } CTPoint2D off = xfrm.getOff(); double x = Units.toPoints(off.getX()); double y = Units.toPoints(off.getY()); CTPositiveSize2D ext = xfrm.getExt(); double cx = Units.toPoints(ext.getCx()); double cy = Units.toPoints(ext.getCy()); return new Rectangle2D.Double(x, y, cx, cy); }
@Override public Rectangle2D getAnchor(){ CTTransform2D xfrm = ((CTGraphicalObjectFrame)getXmlObject()).getXfrm(); CTPoint2D off = xfrm.getOff(); double x = Units.toPoints(off.getX()); double y = Units.toPoints(off.getY()); CTPositiveSize2D ext = xfrm.getExt(); double cx = Units.toPoints(ext.getCx()); double cy = Units.toPoints(ext.getCy()); return new Rectangle2D.Double(x, y, cx, cy); }