|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faceless.graph2.AbstractMarker
org.faceless.graph2.Image
public class Image
The Image class is a type of marker that can be used
to use bitmap images as Markers.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.faceless.graph2.AbstractMarker |
|---|
setName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Image(InputStream image)
throws IOException
ImageIO.read(InputStream) method.
The InputStream is not closed after use.
image - the InputStream containing the image
IOException - if the image cannot be loadedpublic Image(String filename)
filename - the filename of the image
IllegalArgumentException - if the image cannot be loadedpublic Image(URL url)
url - the URL of the image
IllegalArgumentException - if the image cannot be loadedpublic Image(BufferedImage image)
BufferedImage
| Method Detail |
|---|
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 class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||