|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<IIcon>
javax.rad.genui.component.UIIcon
public class UIIcon
Platform and technology independent Icon. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
| Field Summary |
|---|
| Fields inherited from class javax.rad.genui.UIComponent |
|---|
bTranslate, lLastTranslationModified, parent, popupMenu |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
|
UIIcon()
Creates a new instance of UIIcon. |
protected |
UIIcon(IIcon pIcon)
Creates a new instance of UIIcon with the given
icon. |
|
UIIcon(IImage pImage)
Creates a new instance of UIIcon. |
|
UIIcon(IImage pImage,
int pHorizontalAlignment,
int pVerticalAlignment)
Creates a new instance of UIIcon. |
|
UIIcon(java.lang.String pImageName)
Creates a new instance of UIIcon. |
|
UIIcon(java.lang.String pImageName,
int pHorizontalAlignment,
int pVerticalAlignment)
Creates a new instance of UIIcon. |
| Method Summary | |
|---|---|
int |
getHorizontalAlignment()
Returns the alignment along the x axis. |
IImage |
getImage()
Returns the default image. |
int |
getVerticalAlignment()
Returns the alignment along the y axis. |
boolean |
isPreserveAspectRatio()
If the aspect ratio of the image should be preserved if it is stretched in any direction. |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. |
void |
setImage(IImage pImage)
Sets the default image. |
void |
setPreserveAspectRatio(boolean pPreserveAspectRatio)
Sets if the aspect ratio of the image should be preserved if it is stretched in any direction. |
void |
setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment. |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public UIIcon()
UIIcon.
IIconprotected UIIcon(IIcon pIcon)
UIIcon with the given
icon.
pIcon - the iconIIconpublic UIIcon(IImage pImage)
UIIcon.
pImage - the Image.IIconpublic UIIcon(java.lang.String pImageName)
UIIcon.
pImageName - the Image name.IIcon
public UIIcon(IImage pImage,
int pHorizontalAlignment,
int pVerticalAlignment)
UIIcon.
pImage - the Image.pHorizontalAlignment - the horizontal alignment.pVerticalAlignment - the vertical alignment.IIcon
public UIIcon(java.lang.String pImageName,
int pHorizontalAlignment,
int pVerticalAlignment)
UIIcon.
pImageName - the Image name.pHorizontalAlignment - the horizontal alignment.pVerticalAlignment - the vertical alignment.IIcon| Method Detail |
|---|
public IImage getImage()
getImage in interface IIconIIcon.setImage(IImage)public void setImage(IImage pImage)
setImage in interface IIconpImage - the imageIIcon.getImage()public int getHorizontalAlignment()
getHorizontalAlignment in interface IAlignmentConstantspublic void setHorizontalAlignment(int pHorizontalAlignment)
setHorizontalAlignment in interface IAlignmentConstantspHorizontalAlignment - the new vertical alignmentpublic int getVerticalAlignment()
getVerticalAlignment in interface IAlignmentConstantspublic void setVerticalAlignment(int pVerticalAlignment)
setVerticalAlignment in interface IAlignmentConstantspVerticalAlignment - the new vertical alignmentpublic boolean isPreserveAspectRatio()
isPreserveAspectRatio in interface IIcontrue if the aspect ratio of the image is preserved when stretched.public void setPreserveAspectRatio(boolean pPreserveAspectRatio)
setPreserveAspectRatio in interface IIconpPreserveAspectRatio - true if the aspect ratio of the image is preserved when stretched.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||