public final class ImageElement extends Object
(String, Image)
pair that links together a reference ID and
the source image. This is used internally by SVGGraphics2D
to track
images as they are rendered. This is important when images are not embedded
in the SVG output, in which case you may need to generate corresponding
image files for the images (see also SVGGraphics2D.getSVGImages()
).Constructor and Description |
---|
ImageElement(String href,
Image image)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getHref()
Returns the reference ID that was specified in the constructor.
|
Image |
getImage()
Returns the image that was specified in the constructor.
|
String |
toString()
Returns a string representation of this object, primarily for debugging
purposes.
|
public ImageElement(String href, Image image)
href
- the href (null
not permitted).image
- the image (null
not permitted).Copyright © 2021. All rights reserved.