@Override public void paint(OutputDevice outputDevice, RenderingContext ctx, double x, double y, final double width, final double height) { drawer.drawObject(e, x, y, width, height, outputDevice, ctx, dotsPerPixel); } }
/** * Gets the hover attribute of the StandardAttributeResolver object * * @param e PARAM * @return The hover value */ public boolean isHover(Object e) { return ui.isHover((Element) e); }
/** * Gets the attributeValue attribute of the StandardAttributeResolver object * * @param e PARAM * @param attrName PARAM * @return The attributeValue value */ public String getAttributeValue(Object e, String attrName) { return nsh.getAttributeValue((Element) e, attrName); }
@Override public void drawSVG(OutputDevice outputDevice, RenderingContext ctx, double x, double y) { outputDevice.drawWithGraphics((float) x, (float) y, (float) this._scaledWidthInOutputDeviceDots, (float) this._scaledHeightInOutputDeviceDots, new OutputDeviceGraphicsDrawer() { @Override public void render(Graphics2D g2d) { g2d.scale(_sx, _sy); _view.draw(g2d, 0, _view.getAscentHeight()); } }); }
/** * Gets the visited attribute of the StandardAttributeResolver object * * @param e PARAM * @return The visited value */ public boolean isVisited(Object e) { return isLink(e) && uac.isVisited(nsh.getLinkUri((Element) e)); }
@Override public int getIntrinsicHeight() { return this._svgImage.getIntrinsicHeight(); }
/** * Gets the link attribute of the StandardAttributeResolver object * * @param e PARAM * @return The link value */ public boolean isLink(Object e) { return nsh.getLinkUri((Element) e) != null; }
@Override public void paint(OutputDevice outputDevice, RenderingContext ctx, double x, double y, double width, double height) { this._svgImage.drawSVG(outputDevice, ctx, x, y); }
public Java2DSVGReplacedElement(Element e, SVGDrawer svgImpl, int width, int height, Box box, CssContext c) { super(width, height); this._svgImage = svgImpl.buildSVGImage(e, box, c, width, height, /* dots-per-pixel */ 1); }
/** * Gets the baseURL attribute of the RenderingContext object * * @return The baseURL value */ public String getBaseURL() { return uac.getBaseURL(); }
/** * Gets the class attribute of the StandardAttributeResolver object * * @param e PARAM * @return The class value */ public String getClass(Object e) { return nsh.getClass((Element) e); }
/** * Gets the focus attribute of the StandardAttributeResolver object * * @param e PARAM * @return The focus value */ public boolean isFocus(Object e) { return ui.isFocus((Element) e); } }
/** * Sets the baseURL attribute of the RenderingContext object * * @param url The new baseURL value */ public void setBaseURL(String url) { uac.setBaseURL(url); }
/** * Gets the iD attribute of the StandardAttributeResolver object * * @param e PARAM * @return The iD value */ public String getID(Object e) { return nsh.getID((Element) e); }
/** * Gets the elementStyling attribute of the StandardAttributeResolver object * * @param e PARAM * @return The elementStyling value */ public String getElementStyling(Object e) { return nsh.getElementStyling((Element) e); }
/** * Gets the lang attribute of the StandardAttributeResolver object * * @param e PARAM * @return The lang value */ public String getLang(Object e) { return nsh.getLang((Element) e); }
/** * Gets the active attribute of the StandardAttributeResolver object * * @param e PARAM * @return The active value */ public boolean isActive(Object e) { return ui.isActive((Element) e); }
@Override public String resolveUri(String baseUri, String uri) { return _resolver.resolveURI(baseUri, uri); } }
@Override public void drawSVG(OutputDevice outputDevice, RenderingContext ctx, double x, double y) { outputDevice.drawWithGraphics((float) x, (float) y, (float) this._scaledWidthInOutputDeviceDots, (float) this._scaledHeightInOutputDeviceDots, new OutputDeviceGraphicsDrawer() { @Override public void render(Graphics2D g2d) { g2d.scale(_sx, _sy); _view.draw(g2d, 0, _view.getAscentHeight()); } }); }
@Override public int getIntrinsicHeight() { return this.svgImage.getIntrinsicHeight(); }