|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
org.havi.ui.HComponent
org.havi.ui.HVisible
org.havi.ui.HStaticIcon
public class HStaticIcon
The HStaticIcon is a user interface
component used to display static graphical content which does
not permit the user to navigate (focus) upon it. By default
it uses the HGraphicLook to render itself.
| Parameter | Description | Default value | Set method | Get method |
|---|---|---|---|---|
| x | x-coordinate of top left hand corner of this component in pixels, relative to its parent container (subject to layout management). | --- | java.awt.Component#setBounds | java.awt.Component#getBounds |
| y | y-coordinate of top left hand corner of this component in pixels, relative to its parent container (subject to layout management). | --- | java.awt.Component#setBounds | java.awt.Component#getBounds |
| width | width of this component in pixels (subject to layout management). | --- | java.awt.Component#setBounds | java.awt.Component#getBounds |
| height | height of this component in pixels (subject to layout management). | --- | java.awt.Component#setBounds | java.awt.Component#getBounds |
| imageNormal | The image to be used as the content for the HState.NORMAL_STATE state of
this component. |
null | setGraphicContent |
getGraphicContent |
| Field Summary |
|---|
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface org.havi.ui.HState |
|---|
ACTIONED_FOCUSED_STATE, ACTIONED_STATE, ACTIONED_STATE_BIT, ALL_STATES, DISABLED_ACTIONED_FOCUSED_STATE, DISABLED_ACTIONED_STATE, DISABLED_FOCUSED_STATE, DISABLED_STATE, DISABLED_STATE_BIT, FIRST_STATE, FOCUSED_STATE, FOCUSED_STATE_BIT, LAST_STATE, NORMAL_STATE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
HStaticIcon()
Creates an HStaticIcon
object. |
|
HStaticIcon(Image imageNormal)
Creates an HStaticIcon
object. |
|
HStaticIcon(Image imageNormal,
int x,
int y,
int width,
int height)
Creates an HStaticIcon
object. |
|
| Method Summary | |
|---|---|
static HGraphicLook |
getDefaultLook()
Returns the currently set default HLook for HStaticIcon
components. |
static void |
setDefaultLook(HGraphicLook hlook)
Sets the default HLook for further
HStaticIcon Components. |
void |
setLook(HLook hlook)
Sets the HLook for this component. |
| Methods inherited from class org.havi.ui.HComponent |
|---|
getMatte, isDoubleBuffered, isEnabled, processEvent, setMatte |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HStaticIcon()
HStaticIcon
object. See the class description for details of constructor
parameters and default values. For constructors which specify
content as parameters, see 'State-based content' in HVisible for
unspecified content associated with other HStates.
public HStaticIcon(Image imageNormal,
int x,
int y,
int width,
int height)
HStaticIcon
object. See the class description for details of constructor
parameters and default values. For constructors which specify
content as parameters, see 'State-based content' in HVisible for
unspecified content associated with other HStates.
public HStaticIcon(Image imageNormal)
HStaticIcon
object. See the class description for details of constructor
parameters and default values. For constructors which specify
content as parameters, see 'State-based content' in HVisible for
unspecified content associated with other HStates.
| Method Detail |
|---|
public void setLook(HLook hlook)
throws HInvalidLookException
HLook for this component.
setLook in class HVisiblehlook - The HLook that is to be
used for this component.
Note that this parameter may be null, in which case the
component will not draw itself until a look is set.
HInvalidLookException - If the HLook is not an HGraphicLook.public static void setDefaultLook(HGraphicLook hlook)
HLook for further
HStaticIcon Components.
hlook - The HLook that will be
used by default when creating a new HStaticIcon component.
Note that this parameter may be null, in which case newly
created components shall not draw themselves until a non-null
look is set using the setLook method.public static HGraphicLook getDefaultLook()
HLook for HStaticIcon
components.
HLook that is used by
default when creating a new HStaticIcon component.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||