|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.painter.ImagePainter
public class ImagePainter
The ImagePainter paints an image. It's used internally to handling the painting of images in documents.
| Constructor Summary | |
|---|---|
ImagePainter(Image image)
Create a painter for the specified image. |
|
ImagePainter(Image image,
boolean fit)
Create a painter for the specified image. |
|
| Method Summary | |
|---|---|
Color |
getBackground()
Get background Color |
Image |
getImage()
Get the image in the painter. |
Dimension |
getPreferredSize()
Return the preferred size of this painter. |
boolean |
isFit()
If fit is true, the image is resized to the area assigned to it. |
boolean |
isScalable()
Image can be scaled. |
boolean |
isSVGImage()
Is the painting image an svg image. |
void |
paint(Graphics g,
int x,
int y,
int w,
int h)
Paint contents at the specified location. |
void |
setBackground(Color bg)
Set background Color |
void |
setImage(Image image)
Set the image in the painter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImagePainter(Image image)
image - image to paint.
public ImagePainter(Image image,
boolean fit)
image - image to paint.fit - true to resize the image to the paint area, false
to paint image as is.| Method Detail |
|---|
public Dimension getPreferredSize()
getPreferredSize in interface Painterpublic void setBackground(Color bg)
public Color getBackground()
public void paint(Graphics g,
int x,
int y,
int w,
int h)
paint in interface Painterg - graphical context.x - x coordinate of the left edge of the paint area.y - y coordinate of the upper edge of the paint area.w - area width.h - area height.public boolean isScalable()
isScalable in interface Painterpublic Image getImage()
public void setImage(Image image)
image - image icon.public boolean isFit()
public boolean isSVGImage()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||