public class Image extends AbstractMarker
Image
class is a type of marker that can be used
to use bitmap images as Markers.Modifier and Type | Field and Description |
---|---|
protected org.faceless.graph2.Point |
centroid |
box, matrix
Constructor and Description |
---|
Image(BufferedImage image)
Create a new immge from the specified
BufferedImage |
Image(InputStream image)
Create a new image.
|
Image(String filename)
Create a new image from the specified filename.
|
Image(URL url)
Create a new image from the specified URL.
|
Modifier and Type | Method and Description |
---|---|
void |
setPaddingBottom(double padding)
Set the padding to the bottom of the image
|
void |
setPaddingLeft(double padding)
Set the padding to the left of the text
|
void |
setPaddingRight(double padding)
Set the padding to the right of the image
|
void |
setPaddingTop(double padding)
Set the padding to the top of the image
|
setName
public Image(InputStream image) throws IOException
ImageIO.read(InputStream)
method.
The InputStream is not closed after use.image
- the InputStream containing the imageIOException
- if the image cannot be loadedpublic Image(String filename)
filename
- the filename of the imageIllegalArgumentException
- if the image cannot be loadedpublic Image(URL url)
url
- the URL of the imageIllegalArgumentException
- if the image cannot be loadedpublic Image(BufferedImage image)
BufferedImage
public void setPaddingLeft(double padding)
padding
- the padding to use, in pixels or whatever units are use by your Output
classpublic void setPaddingRight(double padding)
padding
- the padding to use, in pixels or whatever units are use by your Output
classpublic void setPaddingBottom(double padding)
padding
- the padding to use, in pixels or whatever units are use by your Output
classpublic void setPaddingTop(double padding)
padding
- the padding to use, in pixels or whatever units are use by your Output
classCopyright © 2001-2016 Big Faceless Organization