com.java4less.rreport
Class RPicture
java.lang.Object
|
+--com.java4less.rreport.RObject
|
+--com.java4less.rreport.RPicture
- All Implemented Interfaces:
- java.awt.image.ImageObserver
- Direct Known Subclasses:
- RCheck
- public class RPicture
- extends RObject
- implements java.awt.image.ImageObserver
Prints java.awt.Image objects or RImageFile. The second is recommended because it also contain information about the image file to be used in a HTML or PDF format
Field Summary |
RImageFile |
currentImage
currently loaded image |
java.lang.String |
ImageHTMLAddress
this string (URL) will be inserted in the HTML version of the report for locating the image. |
boolean |
scale
scale the image to fit in the size of the RPicture object? |
Fields inherited from class com.java4less.rreport.RObject |
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, constant, DHTMLLink, fieldName, height, name, selectable, tooltip, triggerAction, visible, width, x, y |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary |
boolean |
canHTML()
supports HTML? |
boolean |
imageUpdate(java.awt.Image I,
int infoflags,
int x,
int y,
int w,
int h)
method of java.awt.image.ImageObserver interface |
void |
importLine(java.lang.String key,
java.lang.String val)
see RObject |
void |
print(java.awt.Graphics g,
double px,
double py,
java.lang.Object Value)
see RObject |
java.lang.String |
toHTML(java.lang.Object Value)
convert value to HTML |
Methods inherited from class com.java4less.rreport.RObject |
convertColor, convertDoubleList, convertFont, convertList, convertToCM, convertToPixels, createFile, getActivateAction, getdefaultValue, getruntimeValue, isConstant, isVisible, setActivateAction, setConstant, setdefaultValue, setruntimeValue, setVisible |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageHTMLAddress
public java.lang.String ImageHTMLAddress
- this string (URL) will be inserted in the HTML version of the report for locating the image. Not needed if you use a RImage Object
currentImage
public RImageFile currentImage
- currently loaded image
scale
public boolean scale
- scale the image to fit in the size of the RPicture object?
RPicture
public RPicture()
canHTML
public boolean canHTML()
- supports HTML?
- Overrides:
canHTML
in class RObject
toHTML
public java.lang.String toHTML(java.lang.Object Value)
- convert value to HTML
- Overrides:
toHTML
in class RObject
importLine
public void importLine(java.lang.String key,
java.lang.String val)
- see RObject
- Overrides:
importLine
in class RObject
imageUpdate
public boolean imageUpdate(java.awt.Image I,
int infoflags,
int x,
int y,
int w,
int h)
- method of java.awt.image.ImageObserver interface
- Specified by:
imageUpdate
in interface java.awt.image.ImageObserver
print
public void print(java.awt.Graphics g,
double px,
double py,
java.lang.Object Value)
- see RObject
- Overrides:
print
in class RObject