|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--voji.report.ReportComponent | +--voji.report.ReportImage
This report component draws an image
Field Summary | |
double |
height
The height where to scale the image to |
java.awt.Image |
image
The current image |
double |
width
The width where to scale the image to |
double |
x
The X-coordinate of the upper left of the image |
double |
y
The Y-coordinate of the upper left of the image |
Fields inherited from class voji.report.ReportComponent |
position |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
ReportImage(java.awt.Image image,
double x,
double y,
double width,
double height)
Constructs a new ReportImage instance
representing the given image |
|
ReportImage(javax.swing.ImageIcon icon,
double x,
double y,
double width,
double height)
Constructs a new ReportImage instance
representing the given icon |
Method Summary | |
void |
draw(PageGraphics g)
Draws this component |
protected int |
getOwnHeight(PageGraphics g)
Returns the local height of this component |
Methods inherited from class voji.report.ReportComponent |
add, add, draw, getHeight, iterator, remove |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.awt.Image image
public double x
public double y
public double width
public double height
Constructor Detail |
public ReportImage(java.awt.Image image, double x, double y, double width, double height)
ReportImage
instance
representing the given image
image
- the image to drawx
- the X-coordinate of the upper left of the imagey
- the Y-coordinate of the upper left of the imagewidth
- the width where to scale the image toheight
- the height where to scale the image topublic ReportImage(javax.swing.ImageIcon icon, double x, double y, double width, double height)
ReportImage
instance
representing the given icon
icon
- the ImageIcon to drawx
- the X-coordinate of the upper left of the imagey
- the Y-coordinate of the upper left of the imagewidth
- the width where to scale the image toheight
- the height where to scale the image toMethod Detail |
protected int getOwnHeight(PageGraphics g)
getOwnHeight
in class ReportComponent
g
- a graphical context to determine font sizes etc.ReportComponent.getHeight(PageGraphics)
public void draw(PageGraphics g)
draw
in class ReportComponent
g
- the graphical context where to draw toReportComponent.getHeight(PageGraphics)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |