public class ImageComponent extends Component
| Constructor and Description |
|---|
ImageComponent()
Initializes a new instance of the
ImageComponent class. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(RenderContext context)
Draws this component in specified
RenderContext. |
boolean |
getAutoSize()
Gets a value indicating whether the component
should auto-size to match the dimensions of its Image.
|
java.awt.Image |
getImage()
Gets the image contained by this component.
|
ImageAlign |
getImageAlign()
Gets the image alignment relative to the component.
|
java.lang.String |
getLocation()
Gets Image by its file location.
|
void |
measure(double maxWidth,
double maxHeight,
RenderContext context)
Measures the desired size of this component.
|
void |
setAutoSize(boolean value)
Sets a value indicating whether the component
should auto-size to match the dimensions of its Image.
|
void |
setImage(java.awt.Image value)
Sets the image contained by this component.
|
void |
setImageAlign(ImageAlign value)
Sets the image alignment relative to the component.
|
void |
setLocation(java.lang.String value)
Sets Image by its file location.
|
add, arrange, associateJComponent, createController, dissociateJComponent, effectiveMeasuredHeight, effectiveMeasuredWidth, getActualHeight, getActualWidth, getDesiredHeight, getDesiredWidth, getGridColumn, getGridRow, getHeight, getHitTestVisibility, getHorizontalAlignment, getMargin, getParent, getRectInParent, getToolTip, getVerticalAlignment, getVisibility, getWidth, getXInParent, getYInParent, hitTest, invalidate, invalidate, invalidate, invalidateLayout, invalidateLayout, localToRoot, rootToLocal, setActualHeight, setActualWidth, setDesiredHeight, setDesiredWidth, setGridColumn, setGridRow, setHeight, setHitTestVisibility, setHorizontalAlignment, setMargin, setParent, setToolTip, setVerticalAlignment, setVisibility, setWidth, setXInParent, setYInParent, visitpublic ImageComponent()
ImageComponent class.public void measure(double maxWidth,
double maxHeight,
RenderContext context)
measure in class ComponentmaxWidth - The maximum width provided by parent component.maxHeight - The maximum height provided by parent component.context - A RenderContext instance.public void draw(RenderContext context)
RenderContext.draw in class Componentcontext - A RenderContext instance.public java.awt.Image getImage()
public void setImage(java.awt.Image value)
public java.lang.String getLocation()
public void setLocation(java.lang.String value)
public boolean getAutoSize()
public void setAutoSize(boolean value)
public ImageAlign getImageAlign()
public void setImageAlign(ImageAlign value)