public class ImageHFElement extends AbstractHFElement
| 构造器和说明 |
|---|
ImageHFElement()
Constructor
|
ImageHFElement(java.awt.Image image)
Constructor
|
ImageHFElement(java.awt.Image image,
int width,
int height)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getHeight()
Return the height of the image.
|
java.awt.Image |
getImage()
Return the image of the image.
|
java.awt.geom.Dimension2D |
getSize(int resolution)
Return the dimension of the image.
|
int |
getWidth()
Return the width of the image.
|
void |
setHeight(int height)
Set the height of the image.
|
void |
setImage(java.awt.Image image)
Set the image of the image.
|
void |
setWidth(int width)
Set the width of the image.
|
clonepublic ImageHFElement()
public ImageHFElement(java.awt.Image image)
public ImageHFElement(java.awt.Image image,
int width,
int height)
public java.awt.Image getImage()
public void setImage(java.awt.Image image)
image - the new image of the element.public int getWidth()
public void setWidth(int width)
width - the new width of the iamge.public int getHeight()
public void setHeight(int height)
height - the new height of the image.public java.awt.geom.Dimension2D getSize(int resolution)