com.sibvisions.rad.ui.qt.impl.component
Class QtIcon
java.lang.Object
com.sibvisions.rad.ui.qt.impl.QtResource<C>
com.sibvisions.rad.ui.qt.impl.QtComponentBase<C>
com.sibvisions.rad.ui.qt.impl.QtComponent<QVxIcon>
com.sibvisions.rad.ui.qt.impl.component.QtIcon
- All Implemented Interfaces:
- IIcon, IAlignmentConstants, IComponent, IResource
public class QtIcon
- extends QtComponent<QVxIcon>
- implements IIcon
The QtIcon is the IIcon
implementation for QT. It displays an area for an icon.
A QtIcon does not react to input events. As a
result, it cannot get the keyboard focus.
- See Also:
QLabel,
IIcon
|
Constructor Summary |
QtIcon()
Creates a new instance of QtIcon. |
|
Method Summary |
IImage |
getImage()
Returns the default image. |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment.
Possible values are defined in AlignmentConstants. |
void |
setImage(IImage pImage)
Sets the default image. |
void |
setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment.
Possible values are defined in AlignmentConstants. |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponent |
addStyle, capture, getBackground, getBounds, getCursor, getFont, getForeground, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getStyleSheet, getToolTipText, getVerticalAlignment, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setResourceVisible, setSize, setToolTipText |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponentBase |
eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getFactory, isVisible, setFactory, setVisible |
| Methods inherited from interface javax.rad.ui.IComponent |
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible |
QtIcon
public QtIcon()
- Creates a new instance of
QtIcon.
setImage
public void setImage(IImage pImage)
- Sets the default image.
- Specified by:
setImage in interface IIcon
- Parameters:
pImage - the image- See Also:
IIcon.getImage()
getImage
public IImage getImage()
- Returns the default image.
- Specified by:
getImage in interface IIcon
- Returns:
- the default image
- See Also:
IIcon.setImage(IImage)
setHorizontalAlignment
public void setHorizontalAlignment(int pHorizontalAlignment)
- Sets the horizontal alignment.
Possible values are defined in AlignmentConstants.
- Specified by:
setHorizontalAlignment in interface IAlignmentConstants- Overrides:
setHorizontalAlignment in class QtComponent<QVxIcon>
- Parameters:
pHorizontalAlignment - the new vertical alignment
setVerticalAlignment
public void setVerticalAlignment(int pVerticalAlignment)
- Sets the vertical alignment.
Possible values are defined in AlignmentConstants.
- Specified by:
setVerticalAlignment in interface IAlignmentConstants- Overrides:
setVerticalAlignment in class QtComponent<QVxIcon>
- Parameters:
pVerticalAlignment - the new vertical alignment
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.