public class ImageReplacedElement extends Object implements ReplacedElement
<img> tags.| Constructor and Description |
|---|
ImageReplacedElement(SWTFSImage img,
int targetWidth,
int targetHeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
detach(LayoutContext c) |
int |
getBaseline() |
SWTFSImage |
getImage() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
Point |
getLocation() |
boolean |
hasBaseline() |
boolean |
isRequiresInteractivePaint() |
void |
setLocation(int x,
int y) |
public ImageReplacedElement(SWTFSImage img, int targetWidth, int targetHeight)
public SWTFSImage getImage()
public void detach(LayoutContext c)
detach in interface ReplacedElementpublic int getIntrinsicHeight()
getIntrinsicHeight in interface ReplacedElementpublic int getIntrinsicWidth()
getIntrinsicWidth in interface ReplacedElementpublic Point getLocation()
getLocation in interface ReplacedElementpublic void setLocation(int x,
int y)
setLocation in interface ReplacedElementpublic boolean isRequiresInteractivePaint()
isRequiresInteractivePaint in interface ReplacedElementpublic int getBaseline()
getBaseline in interface ReplacedElementpublic boolean hasBaseline()
hasBaseline in interface ReplacedElementCopyright © 2019. All rights reserved.