multivalent.node
public class LeafImage extends Leaf implements ImageObserver
Version: $Revision: 1.6 $ $Date: 2002/05/08 09:57:32 $
Field Summary | |
---|---|
protected static Image | Broken_ |
protected static Map<URI,SoftReference<Image>> | cache_ |
Constructor Summary | |
---|---|
LeafImage(String name, Map<String,Object> attr, INode parent, Image img) Take Image from passed parameter. | |
LeafImage(String name, Map<String,Object> attr, INode parent, URI uri) Take Image from passed URI. |
Method Summary | |
---|---|
void | clipboardNode(StringBuffer sb) |
boolean | eventNode(AWTEvent e, Point rel) |
boolean | formatNodeContent(Context cx, int start, int end) |
Image | getImage() |
boolean | imageUpdate(Image img, int infoflags, int x, int y, int width, int height) |
boolean | paintNodeContent(Context cx, int start, int end)
Contract violation: painting an image does not paint the background color in place of any transparent pixels,
because that might clear out essential existing background. |
void | reformat(Node dirty) For images, just mark dirty and batch to next repaint.
|
void | setImage(Image img) |
void | setImage(URI uri) |
void | setSize(int width, int height) Scale image as necessary to width x height , or to natural dimension of parameter is -1 . |
int | subelementHit(Point rel) |
width
x height
, or to natural dimension of parameter is -1
.